Aviad Deri
10/29/2025, 7:43 PMkapa.ai
10/29/2025, 7:43 PMERROR Unable to create SQL database. {"error": "pq: permission denied to create database", ...} indicates that the PostgreSQL user Airbyte is using does not have permission to create new databases. When deploying Airbyte with an external Postgres database, Airbyte (specifically the Temporal component) expects to be able to create the temporal and temporal_visibility databases if they do not already exist. If the user does not have the CREATEDB privilege, this operation will fail. Solution: You have two options: 1. Manually create the required databases and grant privileges: Before deploying Airbyte, connect to your Postgres instance and run: sql CREATE DATABASE temporal; GRANT ALL PRIVILEGES ON DATABASE temporal TO <airbyte_user>; CREATE DATABASE temporal_visibility; GRANT ALL PRIVILEGES ON DATABASE temporal_visibility TO <airbyte_user>; Replace <airbyte_user> with the actual user Airbyte is configured to use. This approach is confirmed as a solution in both the official Airbyte documentation and community discussions. After creating the databases, redeploy Airbyte. This will allow Temporal to proceed without needing to create the databases itself, avoiding the permission error. [See official answer](https://discuss.airbyte.io/t/1544) and [related GitHub issue](https://github.com/airbytehq/airbyte/issues/49304). 2. Grant the Airbyte user the CREATEDB privilege: If you prefer to let Airbyte handle database creation, ensure the user has the necessary privilege: sql ALTER USER <airbyte_user> CREATEDB; This is not always possible in managed environments (like some cloud Postgres services), so manual creation is often the preferred approach. Note: - If you are using a managed Postgres service (e.g., AWS RDS, Azure Database for PostgreSQL), you may not be able to grant CREATEDB to non-admin users. In that case, manual creation is required. - Ensure the Airbyte user also has full privileges on the schemas within those databases. Summary: The error is due to missing database creation privileges. Manually create the temporal and temporal_visibility databases and grant the Airbyte user full access, then redeploy Airbyte. This is a common requirement when using external databases with Airbyte on Kubernetes. If you continue to have issues, double-check that the user has the correct privileges on both the databases and their schemas, as documented in several user reports and official responses [see here](https://discuss.airbyte.io/t/1544) and [here](https://github.com/airbytehq/airbyte/issues/60244).Aviad Deri
10/29/2025, 7:46 PMkapa.ai
10/29/2025, 7:46 PMkapa.ai
10/29/2025, 7:47 PMDBNAME and VISIBILITY_DBNAME for the Temporal deployment in your Helm chart. Here’s how you can do it in your `values.yaml`: yaml temporal: extraEnv: - name: DBNAME value: "your_custom_temporal_db" - name: VISIBILITY_DBNAME value: "your_custom_temporal_visibility_db" - name: SKIP_DB_CREATE value: "true" - DBNAME sets the name of the main Temporal database. - VISIBILITY_DBNAME sets the name of the Temporal Visibility database. - SKIP_DB_CREATE set to "true" tells Temporal not to attempt to create the databases (useful if you have already created them manually). This approach is confirmed in community discussions and GitHub issues, where users have successfully set custom database names for Temporal by using these environment variables in the Helm chart configuration. Make sure the databases exist and the Airbyte user has the necessary privileges on them before deploying Airbyte [see example and discussion](https://github.com/airbytehq/airbyte/issues/11157) [and here](https://github.com/airbytehq/airbyte/issues/43328). If you are using a different deployment method, the same environment variables should be set in the Temporal service configuration.Aviad Deri
10/29/2025, 8:10 PMkapa.ai
10/29/2025, 8:10 PMkapa.ai
10/29/2025, 8:10 PMjava.io.IOException: Error reading credentials from stream, 'type' field not specified. means that the Google Cloud credentials JSON being provided to Airbyte is either missing the "type" field or is not a valid service account JSON file. Airbyte expects a service account JSON with a "type": "service_account" field for GCS storage and logging. Common causes and solutions: 1. Malformed or incomplete secret: Double-check that your Kubernetes secret (or environment variable) contains the full, unmodified service account JSON. The secret should look like this: yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets type: Opaque stringData: gcp.json: | { "type": "service_account", "project_id": "...", "private_key_id": "...", "private_key": "...", "client_email": "...", "client_id": "...", ... } The "type": "service_account" field is required. [See example in the docs](https://docs.airbyte.com/platform/deploying-airbyte/integrations/storage#secrets). 2. Incorrect secret key or path: Make sure your values.yaml references the correct secret and key. For example: yaml global: storage: type: "GCS" secretName: airbyte-config-secrets bucket: log: your-bucket state: your-bucket workloadOutput: your-bucket gcs: projectId: your-project-id credentialsPath: /secrets/gcs-log-creds/gcp.json And that the secret is mounted at the expected path. 3. Double encoding or formatting issues: There are known issues where the credentials are double base64 encoded or otherwise mangled, resulting in unreadable JSON. Ensure you are using stringData (not data) in your secret manifest for plain JSON, and that the file is not encoded twice [see related issue](https://github.com/airbytehq/airbyte/issues/68178). 4. Wrong credentials type: Airbyte does not support using "type": "external_account" or impersonated credentials for GCS logging/storage. Only "type": "service_account" is supported [see discussion](https://discuss.airbyte.io/t/2277). Summary: Check your GCS credentials secret for the "type": "service_account" field and ensure the JSON is valid and correctly referenced in your Airbyte configuration. If you are using workload identity or another method, be aware that only service account JSONs are supported for this use case. If you need more details on how to structure the secret, refer to the [official documentation example](https://docs.airbyte.com/platform/deploying-airbyte/integrations/storage#secrets).