<@U04S8PLJWMT> while creating bigquery source in a...
# ask-ai
h
@kapa.ai while creating bigquery source in airbyte runs on local kubernetes, getting An unexpected error occurred. Please report this if the issue persists. (HTTP 500) error. What is the reason?
k
When creating a BigQuery source in Airbyte running on local Kubernetes, and encountering the error "An unexpected error occurred. Please report this if the issue persists. (HTTP 500)", there are several possible causes based on the knowledge sources: 1. Pod Initialization or Credential Issues: In Kubernetes deployments, Airbyte spawns pods to test source connections. If these pods fail to initialize—often due to missing or misconfigured credentials (such as AWS or GCP keys/secrets)—the workload-launcher will report an internal server error (HTTP 500) to the UI. For example, missing environment variables or secrets for cloud providers can cause the init container to fail, resulting in this error. This was observed with other connectors, but the root cause (pod failing to initialize due to missing credentials) is likely similar for BigQuery as well. Ensuring that all required secrets and environment variables are correctly set in your Kubernetes deployment is critical. For AWS, users resolved similar issues by specifying the correct secret references in their Helm values.yaml; a similar approach may be needed for GCP/BigQuery credentials [Airbyte 1.2.0 on Kubernetes/EKS: Cannot create new sources as "Test the Source" fails with HTTP 500](https://github.com/airbytehq/airbyte/issues/48809). 2. Cluster or Network Health: If the Airbyte deployment is unhealthy or cannot reach required services (such as Temporal or the internet), connection checks may fail. For example, if the Airbyte server cannot connect to Temporal, or if the cluster lacks internet access, you may see 500 or 502 errors when trying to set up sources [Kubernetes check connection issues](https://discuss.airbyte.io/t/594). 3. Resource Constraints: Insufficient CPU or memory allocated to your Kubernetes cluster or Docker environment can also cause connection checks to fail, sometimes resulting in 500 errors. Increasing resource allocation has resolved similar issues for other users [[abctl] New install failing when creating new sources
An unknown error occurred. (HTTP 504)
](https://github.com/airbytehq/airbyte/issues/42404). 4. Airbyte Version or Cache Issues: In some cases, restarting the Airbyte server or updating to a newer version has resolved HTTP 500 errors, especially if they are related to cache or transient issues [An unexpected error occurred. Please report this if the issue persists. (HTTP 500)](https://github.com/airbytehq/airbyte/issues/54058). Summary of steps to troubleshoot: - Ensure all required GCP/BigQuery credentials are correctly mounted and referenced in your Kubernetes deployment. - Check the logs of the workload-launcher and the test pod (e.g.,
source-bigquery-check-*
) for specific errors. - Verify that your cluster has sufficient resources and network connectivity. - Try restarting the Airbyte server if the issue may be cache-related. If you continue to see the error after these checks, please provide the relevant pod logs for more targeted troubleshooting.
h
Copy code
storage:
    bucket:
      log: "dev-airbyte-bucket"
      state: "dev-airbyte-bucket"
      workloadOutput: "dev-airbyte-bucket"
    s3:
      authenticationType: credentials
      secretName: airbyte-secret-dev
      region: "us-east-1"
      accessKeyIdSecretKey: storage-access-key
      secretAccessKeySecretKey: storage-secret-key
    minio:
      endpoint: "http://minio:9000"
this my values.yaml and have airbyte-secret-dev and keys storage-access-key and storage-secret-key. I am getting error 2025-07-07 141810,632 [scheduler-executor-thread-4] ERROR i.a.s.a.ApiHelper(execute):47 - Unexpected Exception software.amazon.awssdk.services.s3.model.S3Exception: The Access Key Id you provided does not exist in our records. @kapa.ai
k
A message from kapa.ai
The error message:
Copy code
software.amazon.awssdk.services.s3.model.S3Exception: The Access Key Id you provided does not exist in our records.
indicates that Airbyte is unable to authenticate with your S3-compatible storage using the provided access key. Based on your
values.yaml
snippet and the knowledge sources, here are the most likely causes and troubleshooting steps: ### 1. Secret Key Names Must Match What Airbyte Expects According to the official documentation, Airbyte expects the S3 access key and secret key to be stored in your Kubernetes secret under specific keys. For S3 storage, the default expected keys are usually
s3-access-key-id
and
s3-secret-access-key
(not
storage-access-key
and
storage-secret-key
as in your example):
Copy code
yaml global:   storage:     type: "S3"     secretName: airbyte-config-secrets # Name of your Kubernetes secret.     bucket:       log: airbyte-bucket       state: airbyte-bucket       workloadOutput: airbyte-bucket     s3:       region: "" # e.g. us-east-1       authenticationType: credentials # Use "credentials" or "instanceProfile"
> "By default, secrets are expected in the
airbyte-config-secrets
Kubernetes secret, under the
s3-access-key-id
and
s3-secret-access-key
keys." [State and Logging Storage - Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/storage#values) ### 2. Key Overrides If you want to use custom key names (like
storage-access-key
), you must ensure that the chart and Airbyte version you are using actually support the
accessKeyIdSecretKey
and
secretAccessKeySecretKey
fields. The official documentation does not mention these fields as supported configuration options for overriding the secret key names. If these fields are not supported, Airbyte will not find your credentials and will fail with the error you are seeing. ### 3. Check Your Secret Your Kubernetes secret should look like this (with the default key names):
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-config-secrets type: Opaque data:   s3-access-key-id: <base64-encoded-access-key>   s3-secret-access-key: <base64-encoded-secret-key>
If you use a different secret name, update the
secretName
field accordingly. ### 4. Minio Section If you are using S3 and not Minio, you do not need the
minio:
section. If you are using Minio as an S3-compatible endpoint, you must also set the
endpoint
under the
s3:
section, not as a separate
minio:
block. ### 5. Summary of Actions - Rename your secret keys to
s3-access-key-id
and
s3-secret-access-key
in your Kubernetes secret. - Remove or correct the
accessKeyIdSecretKey
and
secretAccessKeySecretKey
fields unless your Airbyte version and chart explicitly support them. - If using Minio, set the endpoint under
s3.endpoint
. - Ensure the
secretName
matches your secret's metadata name. Example:
Copy code
yaml global:   storage:     type: "S3"     secretName: airbyte-config-secrets     bucket:       log: dev-airbyte-bucket       state: dev-airbyte-bucket       workloadOutput: dev-airbyte-bucket     s3:       region: "us-east-1"       authenticationType: credentials       # endpoint: "http://minio:9000" # Uncomment if using Minio
If you follow the documentation and use the expected key names, this should resolve the error [State and Logging Storage - Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/storage#values). If you are still seeing the error after making these changes, double-check that your access key and secret key are correct and have the necessary permissions on the S3 bucket. --- Note: If you are using a newer or enterprise version of Airbyte, the key names and configuration may differ slightly, but the principle remains the same: the secret keys must match what Airbyte expects, and custom key overrides are only supported if documented for your version [Enterprise Setup - Configuring External Logging](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-external-logging).
h
@kapa.ai is it must that the name of the secret should be airbyte-config-secrets? if must or not, the secrets has to include only s3-access-key-id and s3-secret-access-key?
k
A message from kapa.ai
No, it is not strictly required that the secret name be
airbyte-config-secrets
. You can use a different name for your Kubernetes secret, but you must reference that name in your
values.yaml
file under the appropriate field (e.g.,
secretName
or
storageSecretName
, depending on your Airbyte version). The documentation recommends using
airbyte-config-secrets
for simplicity, but it is not mandatory: > While you can set the name of the secret to whatever you prefer, you will need to set that name in various places in your values.yaml file. For this reason we suggest that you keep the name of
airbyte-config-secrets
unless you have a reason to change it. [Preconfiguring Kubernetes Secrets](https://docs.airbyte.com/platform/deploying-airbyte/creating-secrets) Regarding the contents of the secret: For S3 storage, your secret must include the keys
s3-access-key-id
and
s3-secret-access-key
(with those exact names), unless your Airbyte version and Helm chart explicitly support custom key names. These are the default keys Airbyte expects for S3 authentication: > By default, secrets are expected in the
airbyte-config-secrets
Kubernetes secret, under the
s3-access-key-id
and
s3-secret-access-key
keys. [State and Logging Storage - Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/storage#values) You can include additional keys in the secret if needed for other integrations, but for S3 authentication, those two keys are required. Summary: - The secret name does not have to be
airbyte-config-secrets
, but you must reference your chosen name in your configuration. - The secret must contain
s3-access-key-id
and
s3-secret-access-key
for S3 storage, unless your version supports custom key names (which is not standard in the official docs). [Preconfiguring Kubernetes Secrets](https://docs.airbyte.com/platform/deploying-airbyte/creating-secrets) [State and Logging Storage - Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/storage#values)
h
@kapa.ai then write example values for me
k
A message from kapa.ai
Certainly! Here is an example of how to configure your
values.yaml
and Kubernetes secret for S3 storage in Airbyte, based on the official documentation: ### Example Kubernetes Secret You can name your secret anything (e.g.,
my-airbyte-secret
), but you must reference this name in your
values.yaml
. The secret must include the keys
s3-access-key-id
and `s3-secret-access-key`:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: my-airbyte-secret type: Opaque stringData:   s3-access-key-id: <YOUR_S3_ACCESS_KEY_ID>   s3-secret-access-key: <YOUR_S3_SECRET_ACCESS_KEY>
### Example
values.yaml
Reference your secret name and configure the storage section as shown below:
Copy code
yaml global:   storage:     type: "S3"     secretName: my-airbyte-secret # This must match your secret's metadata.name     bucket:       log: dev-airbyte-bucket       state: dev-airbyte-bucket       workloadOutput: dev-airbyte-bucket     s3:       region: "us-east-1"       authenticationType: credentials
Key points: - The secret name (
my-airbyte-secret
) can be any name, but must match in both the secret and
values.yaml
. - The secret must contain the keys
s3-access-key-id
and
s3-secret-access-key
for S3 authentication. - You can include other keys in the secret if needed for other integrations, but these two are required for S3. This configuration is directly supported and recommended in the Airbyte documentation [State and Logging Storage - Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/storage#values).
h
@kapa.ai your code got the error Failed to obtain or add dataplane access token
k
A message from kapa.ai
The error "Failed to obtain or add dataplane access token" in Airbyte, especially when running on Kubernetes, is typically related to issues with dataplane credentials or secrets not being properly created or referenced. From the knowledge sources, this error has been observed in Airbyte versions 1.6.x and is often accompanied by HTTP 500 errors or pod failures. The root causes and workarounds discussed include: - Missing or Incorrect Dataplane Secrets: The error often occurs if the required dataplane credentials (such as
dataplane-client-id
and
dataplane-client-secret
) are missing from the expected Kubernetes secret (commonly
airbyte-auth-secrets
or similar). Airbyte expects these secrets to be present for the workload launcher and other components to function properly. If these keys are missing, pods may fail to start and the API will return errors [Could not deploy latest (v1.6.0) airbyte community with abctl](https://github.com/airbytehq/airbyte/issues/58587). - Database State Issues: In some cases, the database tables that store dataplane credentials (
dataplane
and
dataplane_client_credentials
) may be in an inconsistent state. A workaround that has helped some users is to manually delete the records from these tables and then re-run the installation, which forces Airbyte to recreate the necessary credentials and secrets. The steps are:
Copy code
shell   kubectl exec -it -n <namespace> airbyte-db-0 -- /bin/bash   psql -U airbyte db-airbyte   delete from dataplane_client_credentials;   delete from dataplane;   \q   exit
After this, re-run the Airbyte installation process. This should trigger the recreation of the dataplane credentials and resolve the token error for some users [Could not deploy latest (v1.6.0) airbyte community with abctl](https://github.com/airbytehq/airbyte/issues/58587). - Version-Specific Bugs: This issue has been reported as a bug in Airbyte 1.6.0/1.6.1/1.6.2, and some users have resolved it by rolling back to version 1.5.x, where the problem does not occur. The Airbyte team has acknowledged the issue and worked on fixes in subsequent releases. Summary: The "Failed to obtain or add dataplane access token" error is most often due to missing or misconfigured dataplane secrets or database state issues. Ensure that the required secrets exist and are referenced correctly, and consider the database cleanup workaround if you are stuck. If the problem persists, using a different Airbyte version (such as 1.5.x) may help until a fix is available in your deployment method [Could not deploy latest (v1.6.0) airbyte community with abctl](https://github.com/airbytehq/airbyte/issues/58587).