Hi guys, looking some help. I was using Airbyte 1....
# replication-troubleshooting
a
Hi guys, looking some help. I was using Airbyte 1.6.0 OSS local, deployed with abctl, and had some issues related to the secrets configuration when tried update to lastest version (2.0.1). Probably because schema and/or defaults changes in values.yaml, so i tried to update my secrets accordingly, but still got multiple errors like "Error: couldn't find key AWS_ACCESS_KEY_ID in Secret airbyte-abctl/airbyte-config-secrets" and other related missing keys look into my values and secrets-template files showed below:
Copy code
abctl local uninstall

  INFO    Using Kubernetes provider:
            Provider: kind
            Kubeconfig: /home/residencia/.airbyte/abctl/abctl.kubeconfig
            Context: kind-airbyte-abctl
 SUCCESS  Found Docker installation: version 28.0.0
 SUCCESS  Existing cluster 'airbyte-abctl' found
 SUCCESS  Uninstallation of cluster 'airbyte-abctl' completed successfully
 SUCCESS  Airbyte uninstallation complete


kubectl version

Client Version: v1.32.1
Kustomize Version: v5.5.0
Error from server (NotFound): the server could not find the requested resource


abctl version

version: v0.30.3


cat values.yaml

global:
  edition: "community"
  secretName: "airbyte-config-secrets"
  local: true

  image:
    tag: "2.0.1"

  auth:
    enabled: true
    instanceAdmin:
      emailSecretKey: "instance-admin-email"
      passwordSecretKey: "instance-admin-password"
    security:
      cookieSecureSetting: false


cat secrets-template.yaml

apiVersion: v1
kind: Secret
metadata:
  name: airbyte-config-secrets
type: Opaque
stringData:
  instance-admin-email: "${AIRBYTE_USER}"
  instance-admin-password: "${AIRBYTE_PASSWORD}"


envsubst < secrets-template.yaml > secrets.yaml


abctl local install --values ./values.yaml --secret ./secrets.yaml

  INFO    Using Kubernetes provider:
            Provider: kind
            Kubeconfig: /home/residencia/.airbyte/abctl/abctl.kubeconfig
            Context: kind-airbyte-abctl
 SUCCESS  Found Docker installation: version 28.0.0
  INFO    No existing cluster found, cluster 'airbyte-abctl' will be created
 SUCCESS  Port 8000 appears to be available
 SUCCESS  Cluster 'airbyte-abctl' created
 WARNING  Found MinIO physical volume. Consider migrating it to local storage (see project docs)
 WARNING  PostgreSQL 13 detected. Consider upgrading to PostgreSQL 17
  INFO    Pulling image airbyte/async-profiler:2.0.1
  INFO    Pulling image airbyte/bootloader:2.0.1
  INFO    Pulling image airbyte/connector-builder-server:2.0.1
  INFO    Pulling image airbyte/connector-sidecar:2.0.1
  INFO    Pulling image airbyte/container-orchestrator:2.0.1
  INFO    Pulling image airbyte/cron:2.0.1
  INFO    Pulling image airbyte/db:2.0.1
  INFO    Pulling image airbyte/server:2.0.1
  INFO    Pulling image airbyte/utils:2.0.1
  INFO    Pulling image airbyte/worker:2.0.1
  INFO    Pulling image airbyte/workload-api-server:2.0.1
  INFO    Pulling image airbyte/workload-init-container:2.0.1
  INFO    Pulling image airbyte/workload-launcher:2.0.1
  INFO    Pulling image minio/minio:RELEASE.2023-11-20T22-40-07Z
  INFO    Pulling image temporalio/auto-setup:1.27.2
  INFO    Namespace 'airbyte-abctl' created
  INFO    Persistent volume 'airbyte-minio-pv' created
  INFO    Persistent volume claim 'airbyte-minio-pv-claim-airbyte-minio-0' created
  INFO    Persistent volume 'airbyte-volume-db' created
  INFO    Persistent volume claim 'airbyte-volume-db-airbyte-db-0' created
 SUCCESS  Secret from '/home/residencia/containers/elt/airbyte/airbyte-config/secrets.yaml' created or updated
  INFO    Starting Helm Chart installation of 'airbyte/airbyte' (version: 2.0.19)
 WARNING  Encountered an issue deploying Airbyte:
            Pod: airbyte-minio-0.1878d8db93f57520
            Reason: Failed
            Message: Error: couldn't find key AWS_ACCESS_KEY_ID in Secret airbyte-abctl/airbyte-config-secrets
            Count: 6
 WARNING  Encountered an issue deploying Airbyte:
            Pod: airbyte-abctl-bootloader.1878d8db8cac0600
            Reason: Failed
            Message: Error: couldn't find key AB_INSTANCE_ADMIN_CLIENT_ID in Secret airbyte-abctl/airbyte-config-secrets
            Count: 6
 WARNING  Encountered an issue deploying Airbyte:
            Pod: airbyte-minio-0.1878d8db93f57520
            Reason: Failed
            Message: Error: couldn't find key AWS_ACCESS_KEY_ID in Secret airbyte-abctl/airbyte-config-secrets
            Count: 7
 WARNING  Encountered an issue deploying Airbyte:
            Pod: airbyte-abctl-bootloader.1878d8db8cac0600
            Reason: Failed
            Message: Error: couldn't find key AB_INSTANCE_ADMIN_CLIENT_ID in Secret airbyte-abctl/airbyte-config-secrets
            Count: 7

...

ā–€  Installing 'airbyte/airbyte' (version: 2.0.19) Helm Chart (this may take several minutes) (27m39s)
k
Based on the error messages you're encountering, your Kubernetes secret is missing several required keys that Airbyte expects in version 2.0.1. The errors indicate missing keys like
AWS_ACCESS_KEY_ID
,
AWS_SECRET_ACCESS_KEY
, and
AB_INSTANCE_ADMIN_CLIENT_ID
. According to the [Preconfiguring Kubernetes Secrets](https://docs.airbyte.com/platform/deploying-airbyte/creating-secrets) documentation, Airbyte requires specific sensitive values to be pre-configured in a Kubernetes Secret before Helm installation begins. Your current
secrets-template.yaml
only includes: -
instance-admin-email
-
instance-admin-password
However, based on the errors and the knowledge sources, you need to add additional keys. Here's what your secrets file should include:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-config-secrets type: Opaque stringData:   instance-admin-email: "${AIRBYTE_USER}"   instance-admin-password: "${AIRBYTE_PASSWORD}"   AWS_ACCESS_KEY_ID: "your-aws-access-key-id"   AWS_SECRET_ACCESS_KEY: "your-aws-secret-access-key"   AB_INSTANCE_ADMIN_CLIENT_ID: "your-client-id"
The knowledge sources show that when using external storage (like S3) or secret managers, you need to provide the appropriate credentials. From the [GitHub issue #52091](https://github.com/airbytehq/airbyte/issues/52091), users encountered similar errors when secrets were missing required keys. Important notes: 1. If you're using MinIO (which appears to be the case based on your logs), you still need to provide AWS-compatible credentials for it to function 2. The
AB_INSTANCE_ADMIN_CLIENT_ID
is a new requirement in version 2.0.x that wasn't present in 1.6.0 3. Make sure all secret values are properly set (not empty or nil), as shown in [GitHub issue #52091](https://github.com/airbytehq/airbyte/issues/52091) where nil values caused similar errors After updating your secrets file with all required keys, run:
Copy code
bash envsubst < secrets-template.yaml > secrets.yaml abctl local install --values ./values.yaml --secret ./secrets.yaml
If you continue to experience issues, you may need to completely uninstall and reinstall Airbyte to ensure the secrets are properly initialized.
a
@kapa.ai need i set these aws vars even for a Airbyte OSS local instance? client_id is generated after/during install, no? so what should be the AB_INSTANCE_ADMIN_CLIENT_ID
k
A message from kapa.ai
Based on the knowledge sources, I need to clarify a few things about your local Airbyte OSS deployment: ## AWS Variables for Local Deployment For a local Airbyte OSS instance using
abctl
, you typically do not need to set AWS credentials if you're using the default MinIO storage that comes with the local deployment. However, the error you're seeing suggests that the Helm chart is expecting these keys to exist in the secret, even if they're empty. According to the [Configure Kubernetes Secrets](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configure-kubernetes-secrets) documentation, "If your Kubernetes cluster already has permissions to make requests to an external entity via an instance profile, credentials are not required." ## About the Client ID You're correct that the client ID is typically generated during installation. According to the [Authentication](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication) documentation, when you deploy Airbyte, authentication credentials are automatically generated. The documentation shows that you can view generated credentials after deployment by running:
Copy code
bash abctl local credentials
Which outputs something like:
Copy code
json {   "password": "password",   "client-id": "client_id",   "client-secret": "client_secret" }
## Setting a Password via Secrets According to the [Setting a Password via Secrets](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication#setting-a-password-via-secrets) section, you can control the default password by creating a secret with just the password:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-auth-secrets type: Opaque stringData:   instance-admin-password: # password      # Override these if you want to access the API with known credentials   #instance-admin-client-id: # my-client-id   #instance-admin-client-secret: # my-client-secret
Important: The knowledge sources show that the secret name for authentication is
airbyte-auth-secrets
, not
airbyte-config-secrets
. This might be part of your issue - you may need to use the correct secret name or let Airbyte generate the authentication credentials automatically. I'm sorry, but the knowledge sources don't explicitly explain what value should be set for
AB_INSTANCE_ADMIN_CLIENT_ID
during initial installation, or whether it's required for OSS local deployments. You might want to try letting Airbyte generate these credentials automatically by not specifying them in your secret.
A message from kapa.ai
Based on the knowledge sources, I can clarify both of your questions: ## AWS Variables for Local OSS Instance For a local Airbyte OSS instance, you typically do not need AWS credentials if you're using the default local storage. According to the [Configure Kubernetes Secrets](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configure-kubernetes-secrets) documentation: "If your Kubernetes cluster already has permissions to make requests to an external entity via an instance profile, credentials are not required." However, the error messages you're seeing suggest that the Helm chart is looking for these keys in your
airbyte-config-secrets
secret. This appears to be a configuration issue where the chart expects certain keys to exist. ## About Client ID Generation You're correct that the client ID is generated during installation. According to the [Authentication](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication) documentation, Airbyte comes with built-in authentication based on the email provided at setup and a generated password, client-id, and client-secret. After installation, you can view these generated credentials by running:
Copy code
bash abctl local credentials
Which outputs:
Copy code
json {   "password": "password",   "client-id": "client_id",   "client-secret": "client_secret" }
## Setting Custom Credentials (Optional) The [Setting a Password via Secrets](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication#setting-a-password-via-secrets) section shows that you can optionally override these credentials by creating a secret named `airbyte-auth-secrets`:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-auth-secrets type: Opaque stringData:   instance-admin-password: # password      # Override these if you want to access the API with known credentials   #instance-admin-client-id: # my-client-id   #instance-admin-client-secret: # my-client-secret
Important: Notice this uses
airbyte-auth-secrets
as the secret name, not
airbyte-config-secrets
. The knowledge sources indicate these are separate secrets for different purposes. I'm sorry, but the knowledge sources don't explicitly explain what value
AB_INSTANCE_ADMIN_CLIENT_ID
should have during initial installation for a local OSS deployment, or whether it's required at all. The documentation suggests these values are typically auto-generated rather than pre-configured.