Skip to main content

Troubleshooting

This article covers issues you may run into while connecting an Oracle Cloud Infrastructure (OCI) tenancy to Upwind, and after the connection is in place.

tip

Most onboarding problems can be found before anything is created by running the readiness check. If you hit an issue below, resolve it and re-run upwindctl oracle onboarding preflight before you apply the module again.

Onboarding Issues​

Preflight Reports Failed Checks​

Symptom: upwindctl oracle onboarding preflight in Step 2.2 exits non-zero and lists failed checks.

Likely causes:

  • The check is running as a different identity than the one you intend to onboard with.
  • The identity is missing permissions the Terraform module needs.
  • Some policy statements are conditional, so the check can't evaluate them statically.

How to fix:

  1. Confirm you are authenticated as the intended identity. The check needs a user principal - an ~/.oci/config profile, or a session token profile with --oci-auth security_token. For a profile other than DEFAULT, add --oci-profile <profile-name>.
  2. Grant the missing permissions listed in the prerequisites. For each missing permission, the check reports the policy statement that would grant it.
  3. Verify any statements the check reports as conditional manually, then re-run the check.

Terraform Apply Fails on Users, Groups, or Policies​

Symptom: terraform apply fails when creating users, groups, dynamic groups, or policies.

Likely causes:

  • Terraform is running against a region other than the tenancy's home region.
  • The identity running Terraform can't manage users, groups, dynamic groups, or policies at the tenancy level.

How to fix:

  1. Check that oci_region is set to the tenancy's Home Region, and that the OCI provider targets the same region - either through the region in your provider block or the region in your ~/.oci/config profile. See Configure the OCI Provider.
  2. Check that the identity has the tenancy-level permissions listed in the prerequisites.
  3. Re-run terraform apply.

Terraform Reports a Sensitive Output Error​

Symptom: terraform plan or terraform apply fails with an error saying an output refers to sensitive values.

Likely cause: the confidential_app_client_secret output in main.tf isn't marked as sensitive. The module marks this value as sensitive, so the output that exposes it must be too.

How to fix: add sensitive = true to the confidential_app_client_secret output, as shown in Step 2.1, and re-run the command.

Terraform Apply Fails with a Name Conflict​

Symptom: terraform apply fails because a resource with the same name already exists.

Likely cause: resources from an earlier onboarding of the same Upwind organization already exist in the tenancy.

How to fix:

  • If you are re-applying with the original Terraform state, this is expected and the apply updates the existing resources.
  • Otherwise, offboard the earlier deployment, import the existing resources into your Terraform state, or set a different resource_suffix.

Terraform Apply Fails on an Existing Identity Domain​

Symptom: you chose an existing identity domain in Step 1.2, and terraform apply fails partway through with an authorization error.

Likely cause: the identity running Terraform can't administer that identity domain. This access is separate from OCI IAM policies.

How to fix: give the identity an administrator role in the domain, such as Identity Domain Administrator, and re-run terraform apply.

Terraform Apply Times Out​

Symptom: terraform apply fails with a timeout while creating the identity domain, its replicas, the Vault, or its keys.

Likely cause: these resources can take longer than usual to provision in some tenancies.

How to fix: add create_timeout to the module block with a longer value than the default 30m, such as create_timeout = "60m", and re-run terraform apply.

Authentication Fails Midway Through the Apply​

Symptom: you use a session token profile, and terraform apply or the readiness check fails with an authentication error after working at first.

Likely cause: the session token expired. Session tokens are short-lived.

How to fix: refresh the token with oci session refresh --profile <profile-name>, or authenticate again with oci session authenticate, then re-run the command. Terraform resumes from its state.

Saving the Federation Values Fails​

Symptom: clicking Save in Step 2.5 returns an error.

Likely causes:

  • A value was copied incompletely, or with extra characters.
  • Values were entered in the wrong fields.
  • terraform apply hasn't finished successfully.

How to fix:

  1. Confirm terraform apply completed without errors.
  2. Copy each value directly with terraform output -raw <output-name>.
  3. Make sure each value goes into the matching field: Identity Domain URL takes identity_domain_oidc_issuer_url, Confidential Application Client ID takes confidential_app_client_id, and Confidential Application Client Secret takes confidential_app_client_secret.

After Connecting​

No Resources Discovered​

Symptom: the integration is connected, but resources from your tenancy don't appear in Upwind.

Likely causes:

  • The initial discovery hasn't finished yet.
  • The compartments aren't included in the scope.

How to fix:

  1. Wait for the initial discovery to complete. It typically takes 30-60 minutes, depending on tenancy size.
  2. Check that Cloud API is enabled for the compartments in Step 3, and that Cloud Scanner is enabled where you expect scanning.
  3. If you changed the scope recently, allow up to 30 minutes for the change to reach the Cloud Scanner.

Getting Help​

If you can't resolve an issue, contact support@upwind.io. Include the output of upwindctl oracle onboarding preflight and the first error from terraform apply, if any.