Tigran Zalyan
11/21/2025, 6:36 PMglobal.database.user, the airbyte-bootloader fails with:
Error: couldn't find key DATABASE_USER in Secret airbyte-airbyte-secrets
The workaround was to move the value into the secret under that key.
I'm also seeing another error in airbyte-server when using GCS as the storage provider:
io.micronaut.context.exceptions.BeanInstantiationException: Bean definition [io.airbyte.server.apis.controllers.SourceDefinitionApiController] could not be loaded:
Error instantiating bean of type [io.airbyte.commons.storage.GcsStorageClient]: Is a directory
The last error doesn't allow Airbyte to successfully start. Any ideas why this might be happening?kapa.ai
11/21/2025, 6:36 PMDATABASE_USER / external Postgres With chart V2 the recommended way to configure the DB is: yaml postgresql: enabled: false global: database: type: external # for older docs; in newer V2 just `database` block secretName: airbyte-config-secrets host: "<db-host>" port: 5432 name: "db-airbyte" # was `database` in V1 # EITHER inline… user: "airbyte" password: "******" # …OR via secret keys: # userSecretKey: "database-user" # passwordSecretKey: "database-password" If you only set global.database.user but your secret still has the old `DATABASE_USER`/`DATABASE_PASSWORD` keys, the bootloader may still look for DATABASE_USER in airbyte-airbyte-secrets, causing: text couldn't find key DATABASE_USER in Secret airbyte-airbyte-secrets The V2 docs explicitly call out that the DB password must live in the airbyte-config-secrets (or equivalent) secret and that you can either set user/password directly in values.yaml or use userSecretKey/passwordSecretKey to point at database-user / database-password in the secret, but not mix both.[\[External DB](https://docs.airbyte.com/platform/deploying-airbyte/integrations/database)\][\[Update values.yaml](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)\] Practical fix - Create the new secret (if you haven’t already): yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets type: Opaque stringData: database-user: airbyte database-password: <password> - Point V2 at it, and remove any reliance on airbyte-airbyte-secrets for DB: yaml postgresql: enabled: false global: database: secretName: airbyte-config-secrets host: "<db-host>" port: 5432 name: "db-airbyte" userSecretKey: database-user passwordSecretKey: database-password This matches the documented V2 interface and avoids the DATABASE_USER key entirely.[\[External DB](https://docs.airbyte.com/platform/deploying-airbyte/integrations/database)\] If you do keep the workaround (putting DATABASE_USER into airbyte-airbyte-secrets), that’s consistent with legacy behavior but not how V2 is documented; I don’t see explicit docs describing that bug, only the correct configuration above. --- ### 2. GCS storage: GcsStorageClient “Is a directory” The error: text Error instantiating bean of type [io.airbyte.commons.storage.GcsStorageClient]: Is a directory indicates the server is trying to use a GCS credential path that points to a directory, not a file. The only related issue in the sources is for a job pod where the JSON path /secrets/gcp-creds/gcp.json wasn’t mounted at all, causing a failure to instantiate GcsStorageClient.\[\[GCS issue](https://github.com/airbytehq/airbyte/issues/65153)\] In your case, it’s a different path/shape, but same class of problem: the Helm V2 configuration for GCS credentials is off. The documented V2 configuration for external log/storage is: yaml global: storage: secretName: "" # your secret with creds, if used type: gcs bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket gcs: projectId: <project-id> credentialsJson: <base64-encoded> # OR credentialsJsonPath: /secrets/gcs-log-creds/gcp.json You must supply either credentialsJson (inline) or a valid credentialsJsonPath that resolves to a file mounted in the container.[\[Update values.yaml](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)\] Given the “Is a directory” error, the path you’ve configured is likely the parent directory of the actual file or a directory created by the secret mount. The docs don’t show any other supported pattern, and I don’t see a specific fix/workaround for your exact path in the knowledge sources. Practical checks Based on the docs (and the related GCS issue), the following are safe assumptions/steps: 1. Ensure you’re using the V2 shape: yaml global: storage: type: gcs bucket: log: <your-bucket> state: <your-bucket> workloadOutput: <your-bucket> activityPayload: <your-bucket> gcs: projectId: <project-id> credentialsJsonPath: /secrets/gcs-log-creds/gcp.json 2. Make sure that path actually refers to a file, not a directory, inside the airbyte-server pod: - kubectl exec -it <server-pod> -- ls -l /secrets/gcs-log-creds - You should see gcp.json as a regular file. 3. If you can’t or don’t want to manage a volume, use credentialsJson instead of `credentialsJsonPath`: yaml global: storage: type: gcs gcs: projectId: <project-id> credentialsJson: <base64-encoded-service-account-json> --- ### Summary - For DB: use the documented V2 global.database block plus the new airbyte-config-secrets (database-user / database-password) instead of relying on DATABASE_USER in airbyte-airbyte-secrets.[\[External DB](https://docs.airbyte.com/platform/deploying-airbyte/integrations/database)\][\[Update values.yaml](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)\] - For GCS: verify your global.storage.gcs.credentialsJsonPath points to a real file in the container; the docs only support credentialsJson or a correct credentialsJsonPath, and a misconfigured path (directory instead of file) is consistent with the GcsStorageClient error.\[\[Update values.yaml](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)\] If you can share your current values.yaml snippets for global.database and global.storage, they can be compared 1:1 to the documented V2 examples.