JCrock8
09/13/2025, 9:58 AMi.m.c.DefaultBeanContext(postBeanCreated):2374 - Created bean [S3StorageConfig(accessKey=*******, secretAccessKey=*******, region=)] from definition [Definition: io.airbyte.commons.storage.S3StorageConfig] with qualifier [null]
2025-09-12 11:34:18,996 [main] ERROR i.m.r.Micronaut(handleStartupException):362 - Error starting Micronaut server: Bean definition [io.airbyte.server.apis.controllers.SourceDefinitionApiController] could not be loaded: Error instantiating bean of type [io.airbyte.commons.storage.S3StorageClient]: region must not be blank or empty.
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.S3StorageClient]: region must not be blank or empty.
at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:2040)
at io.micronaut.context.DefaultApplicationContext.initializeContext(DefaultApplicationContext.java:323)
at io.micronaut.context.DefaultBeanContext.configureAndStartContext(DefaultBeanContext.java:3350)
at io.micronaut.context.DefaultBeanContext.start(DefaultBeanContext.java:353)
at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:225)
at io.micronaut.runtime.Micronaut.start(Micronaut.java:75)
at io.airbyte.server.ApplicationKt.main(Application.kt:17)kapa.ai
09/13/2025, 9:58 AMError instantiating bean of type [io.airbyte.commons.storage.S3StorageClient]: region must not be blank or empty. indicates that the S3 storage configuration is missing the required region parameter. Airbyte requires the S3 region to be explicitly set, even if you are using a MinIO or other S3-compatible service. If the region is left blank, Airbyte will fail to start with this error. How to resolve: 1. Set the S3 region in your configuration. In your Airbyte configuration (for example, in your Helm values or environment variables), ensure that the region field is not empty. For MinIO, you can set it to any valid AWS region string (e.g., us-east-1), as MinIO itself does not enforce region but the AWS SDK used by Airbyte requires it. Example for Helm values: yaml global: storage: type: "S3" s3: region: "us-east-1" # <-- Set this to any valid AWS region authenticationType: credentials Or, if using environment variables: S3_LOG_BUCKET_REGION=us-east-1 2. Restart Airbyte after updating the configuration. This requirement is confirmed by the error logs and discussions in the Airbyte community and GitHub issues, where users encountered the same error when the region was left blank, and resolved it by setting a non-empty region value—even for MinIO setups [see here](https://github.com/airbytehq/airbyte/issues/37379), [and here](https://discuss.airbyte.io/t/2849). Summary: Set the region parameter to a non-empty value (such as us-east-1) in your S3 storage configuration, then restart Airbyte. This should resolve the startup error.JCrock8
09/13/2025, 10:00 AMvalues.yaml and this is my configuration
storage:
type: "S3"
secretName: "airbyte-config-secrets" ## Name of your Kubernetes secret.
bucket: ## S3 bucket names that you've created. We recommend storing the following all in one bucket.
log: airbyte-bucket
auditLogging: airbyte-bucket
state: airbyte-bucket
workloadOutput: airbyte-bucket
activityPayload: airbyte-bucket
s3:
region: "eu-west-3" ## "eu-west-3" ## e.g. us-east-1
authenticationType: credentials ## Use "credentials" or "instanceProfile"
accessKeyIdSecretKey: ""
secretAccessKeySecretKey: ""
accessKeyId: ""
secretAccessKey: ""kapa.ai
09/13/2025, 10:02 AMkapa.ai
09/13/2025, 10:02 AMvalues.yaml configuration for S3 storage looks mostly correct, but there are a few important points to ensure Airbyte can start without the "region must not be blank or empty" error: 1. Region Field: You have set region: "eu-west-3", which is valid and should satisfy the requirement for a non-empty region. This is correct. 2. Secret Keys: The fields accessKeyIdSecretKey, secretAccessKeySecretKey, accessKeyId, and secretAccessKey are all empty. - If you are using Kubernetes secrets (recommended), you should specify the keys in your secret that contain your AWS credentials. For example: yaml s3: region: "eu-west-3" authenticationType: credentials accessKeyIdSecretKey: s3-access-key-id secretAccessKeySecretKey: s3-secret-access-key And your Kubernetes secret (airbyte-config-secrets) should contain those keys: yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets type: Opaque stringData: s3-access-key-id: <your-access-key> s3-secret-access-key: <your-secret-key> - If you want to provide the credentials directly in values.yaml (not recommended for production), you can use: yaml s3: region: "eu-west-3" authenticationType: credentials accessKeyId: "<your-access-key>" secretAccessKey: "<your-secret-key>" 3. Required Buckets: You have specified all recommended buckets (log, auditLogging, state, workloadOutput, activityPayload). This matches the advice from the knowledge sources, which state that all these should be set explicitly to avoid issues with default buckets in the wrong region [see here](https://github.com/airbytehq/airbyte/issues/48407). Summary of what to fix: - Make sure either `accessKeyIdSecretKey`/`secretAccessKeySecretKey` are set and your secret contains those keys, or set `accessKeyId`/`secretAccessKey` directly. - Your region is set correctly. - All required buckets are set. Reference Example from Airbyte Docs: yaml global: storage: type: "S3" secretName: airbyte-config-secrets bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket s3: region: "eu-west-3" authenticationType: credentials accessKeyIdSecretKey: s3-access-key-id secretAccessKeySecretKey: s3-secret-access-key [See official documentation](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values) If you follow this pattern, Airbyte should start without the region error. If you still encounter issues, double-check that your Kubernetes secret is named correctly and contains the expected keys, and that your values.yaml matches the documented structure.JCrock8
09/13/2025, 10:55 AMkapa.ai
09/13/2025, 10:56 AMJCrock8
09/13/2025, 10:56 AMkapa.ai
09/13/2025, 10:56 AMkapa.ai
09/13/2025, 10:56 AMvalues.yaml and the error message about the S3 region being blank, here are the most likely causes and solutions, strictly based on the provided knowledge sources: 1. Region Must Not Be Blank The error you are seeing (region must not be blank or empty) is directly caused when the region field under the s3 section is not set or is not being picked up by Airbyte. This is a known issue and is documented in both the Airbyte docs and GitHub issues. The region must be explicitly set and non-empty, even if you are using MinIO or another S3-compatible service. [See: "[deploy] Worker failing to start with external S3 configuration"](https://github.com/airbytehq/airbyte/issues/37379) 2. Correct Field Names and Structure The field names and structure in your values.yaml must match what Airbyte expects. According to the official documentation, the correct structure is: yaml global: storage: type: "S3" secretName: airbyte-config-secrets bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket s3: region: "eu-west-3" authenticationType: credentials accessKeyIdSecretKey: s3-access-key-id secretAccessKeySecretKey: s3-secret-access-key If you are not using the global: prefix, but your chart expects it, the configuration may not be picked up. [See: "State and Logging Storage" in the docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values) 3. Helm Chart Version and Field Names Some chart versions use secretName, others use storageSecretName. Double-check which your chart expects. [See: "Configuring External Logging"](https://docs.airbyte.com/platform/1.7/enterprise-setup/implementation-guide#configuring-external-logging) 4. All Required Buckets You must set all required buckets (log, state, workloadOutput, and sometimes activityPayload and auditLogging) to avoid region mismatches. [See: "[helm] S3 Exceptions: Wrong region and malformed authorization header"](https://github.com/airbytehq/airbyte/issues/48407) 5. Secrets Must Match Keys If you use accessKeyIdSecretKey and secretAccessKeySecretKey, your Kubernetes secret must contain those exact keys. If you use accessKeyId and secretAccessKey directly, you must provide the values in the YAML. --- What to do next: - Check if your chart expects a global: prefix. If so, wrap your config under global:. - Ensure the region field is not empty and is under the correct path. - Double-check the field names (secretName vs storageSecretName). - Make sure your Kubernetes secret contains the correct keys. - Set all required buckets. Example (with global): yaml global: storage: type: "S3" secretName: airbyte-config-secrets bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket auditLogging: airbyte-bucket s3: region: "eu-west-3" authenticationType: credentials accessKeyIdSecretKey: s3-access-key-id secretAccessKeySecretKey: s3-secret-access-key [Reference: Airbyte Docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values) If you have already done all of the above and still see the error, it is possible that the chart is not picking up your values due to a misalignment in field names or structure. In that case, please check your Helm chart version and compare it with the documentation for that specific version, as field names and structure can change between releases. If you need more help, please provide: - The exact Helm chart version you are using. - The full path in your values.yaml (is it under global: or not?). - The output of kubectl get secret airbyte-config-secrets -o yaml (redact sensitive info). Let me know if you need further clarification!kapa.ai
09/13/2025, 10:56 AMError instantiating bean of type [io.airbyte.commons.storage.S3StorageClient]: region must not be blank or empty. means Airbyte is not detecting a non-empty region value for your S3 storage configuration. This is a known and documented issue: the S3 region must be explicitly set and non-empty, or Airbyte will fail to start. This requirement is confirmed in both the official documentation and user reports [[Airbyte Docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values)], [[GitHub Issue](https://github.com/airbytehq/airbyte/issues/37379)]. What to check and do: 1. YAML Structure: Your configuration must match the expected structure. For most recent Helm charts, the S3 config should be under global.storage.s3.region. If you omit the global: prefix and your chart expects it, the value may not be picked up. Example: yaml global: storage: type: "S3" secretName: airbyte-config-secrets bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket auditLogging: airbyte-bucket s3: region: "eu-west-3" authenticationType: credentials accessKeyIdSecretKey: s3-access-key-id secretAccessKeySecretKey: s3-secret-access-key If you do not use the global: prefix and your chart expects it, the region will be blank and you will get this error [[Airbyte Docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values)]. 2. All Required Buckets: You must set all required buckets (log, state, workloadOutput, activityPayload, auditLogging) to avoid Airbyte defaulting to buckets in the wrong region, which can also cause region errors [[GitHub Issue](https://github.com/airbytehq/airbyte/issues/48407)]. 3. Secret Keys: If you use accessKeyIdSecretKey and secretAccessKeySecretKey, your Kubernetes secret must contain those keys. If you use accessKeyId and secretAccessKey directly, provide the values in the YAML. 4. Helm Chart Version: Field names and structure can change between chart versions. Double-check your chart version and ensure your values.yaml matches the documentation for that version. --- Summary: - Ensure your YAML structure matches what your Helm chart expects (likely under global:). - The region field must be set and non-empty. - All required buckets must be set. - Your secret keys must match the configuration. If you have done all of the above and still see the error, please double-check your chart version and the exact structure of your values.yaml. If the problem persists, there may be a misalignment between your configuration and what the chart expects, as documented in the knowledge sources.JCrock8
09/13/2025, 10:57 AMDEBUG i.m.c.DefaultBeanContext(postBeanCreated):2374 - Created bean [StorageBucketConfig(log=airbyte-otto-bucket, state=airbyte-otto-bucket, workloadOutput=airbyte-otto-bucket, activityPayload=airbyte-otto-bucket, auditLogging=airbyte-otto-bucket, profilerOutput=)] from definition [Definition: io.airbyte.commons.storage.StorageBucketConfig] with qualifier [null]
2025-09-13 10:53:40,126 [main] DEBUG i.m.c.DefaultBeanContext(postBeanCreated):2374 - Created bean [S3StorageConfig(accessKey=*******, secretAccessKey=*******, region=)] from definition [Definition: io.airbyte.commons.storage.S3StorageConfig] with qualifier [null]
2025-09-13 10:53:40,171 [main] ERROR i.m.r.Micronaut(handleStartupException):362 - Error starting Micronaut server: Bean definition [io.airbyte.server.apis.controllers.SourceDefinitionApiController] could not be loaded: Error instantiating bean of type [io.airbyte.commons.storage.S3StorageClient]: region must not be blank or empty.
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.S3StorageClient]: region must not be blank or empty.
at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:2040)
at io.micronaut.context.DefaultApplicationContext.initializeContext(DefaultApplicationContext.java:323)
at io.micronaut.context.DefaultBeanContext.configureAndStartContext(DefaultBeanContext.java:3350)
at io.micronaut.context.DefaultBeanContext.start(DefaultBeanContext.java:353)
at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:225)
at io.micronaut.runtime.Micronaut.start(Micronaut.java:75)
at io.airbyte.server.ApplicationKt.main(Application.kt:17)
Caused by: io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type [io.airbyte.commons.storage.S3StorageClient]: region must not be blank or empty.
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2354)
at io.micronaut.context.DefaultBeanContext.doCreateBeanWithArguments(DefaultBeanContext.java:1093)
at io.micronaut.context.DefaultBeanContext.createBean(DefaultBeanContext.java:1071)
at io.micronaut.context.BeanContext.createBean(BeanContext.java:157)
at io.airbyte.commons.storage.StorageClientFactory.create(StorageClient.kt:580)
at io.airbyte.commons.logging.LogClient.<init>(LogClient.kt:41)
at io.airbyte.commons.logging.$LogClient$Definition.instantiate(Unknown Source)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2337)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3150)
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3000)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2762)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1781)
at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:210)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2130)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1360)
at io.airbyte.commons.logging.$LogClientManager$Definition.instantiate(Unknown Source)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2337)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3150)
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3000)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2762)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1781)
at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:210)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2130)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1360)
at io.airbyte.commons.server.converters.$JobConverter$Definition.instantiate(Unknown Source)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2337)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3150)
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3000)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2762)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1781)
at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:210)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2130)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1360)
at io.airbyte.commons.server.handlers.$ConnectorDefinitionSpecificationHandler$Definition.instantiate(Unknown Source)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2337)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3150)
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3000)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2762)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1781)
at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:210)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2130)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1360)kapa.ai
09/13/2025, 10:57 AMkapa.ai
09/13/2025, 10:57 AMCreated bean [S3StorageConfig(accessKey=*******, secretAccessKey=*******, region=)] ... Error instantiating bean of type [io.airbyte.commons.storage.S3StorageClient]: region must not be blank or empty. This means Airbyte is not receiving the region value from your configuration, even though you have set it in your values.yaml. Based on the knowledge sources, here are the most likely causes and solutions: --- ### 1. YAML Structure and Field Names Airbyte expects the S3 configuration to be under the correct path in your values.yaml. For most recent Helm charts, this should be under global.storage.s3.region. If you omit the global: prefix and your chart expects it, the region will not be picked up, resulting in the error you see. Correct example: yaml global: storage: type: "S3" secretName: airbyte-config-secrets bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket auditLogging: airbyte-bucket s3: region: "eu-west-3" authenticationType: credentials accessKeyIdSecretKey: s3-access-key-id secretAccessKeySecretKey: s3-secret-access-key [Reference: Airbyte Docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values) --- ### 2. Check for Typo or Misalignment If you use storage: at the root level instead of under global:, and your chart expects global:, the region will be blank. This is a common cause of this error, as confirmed in user reports and documentation. --- ### 3. Helm Chart Version Differences Some chart versions use secretName, others use storageSecretName. Double-check your chart version and ensure your values.yaml matches the documentation for that version. If the field name is wrong, the region will not be picked up [[Configuring External Logging](https://docs.airbyte.com/platform/1.7/enterprise-setup/implementation-guide#configuring-external-logging)]. --- ### 4. All Required Buckets You must set all required buckets (log, state, workloadOutput, activityPayload, auditLogging) to avoid Airbyte defaulting to buckets in the wrong region, which can also cause region errors [[GitHub Issue](https://github.com/airbytehq/airbyte/issues/48407)]. --- ### What to do next - Move your storage: block under global: if it is not already. - Ensure the region field is set and under the correct path. - Double-check your Helm chart version and field names. - Set all required buckets. If you have done all of the above and still see the error, it is likely due to a misalignment between your configuration and what the chart expects, as documented in the knowledge sources. --- Summary: Your error is caused by Airbyte not receiving a non-empty S3 region. This is almost always due to a misconfigured values.yaml structure or field name. Please ensure your configuration matches the documented structure for your Helm chart version, especially the use of the global: prefix and correct field names for secrets and region. If you need further help, please provide your full values.yaml (with sensitive info redacted) and your Helm chart version.JCrock8
09/13/2025, 11:08 AMSelf-Managed Communitykapa.ai
09/13/2025, 11:08 AMkapa.ai
09/13/2025, 11:08 AMglobal: key in your values.yaml. If you place the storage: block at the root level (not under global:), Airbyte will not pick up the region value, resulting in the error: region must not be blank or empty [see official docs](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values). How to fix: Update your values.yaml to use the correct structure: yaml global: storage: type: "S3" secretName: airbyte-config-secrets bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket auditLogging: airbyte-bucket s3: region: "eu-west-3" authenticationType: credentials accessKeyIdSecretKey: s3-access-key-id secretAccessKeySecretKey: s3-secret-access-key Key points: - The entire storage: block must be under global:. - The region field must be set and non-empty. - All required buckets should be set to avoid region mismatches. This structure is confirmed in the official documentation for both Helm chart V1 and V2 for Self-Managed Community deployments. If you follow this structure, Airbyte should correctly pick up your S3 region and start without the error you are seeing [see here](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values). If you still encounter issues after making this change, double-check your Kubernetes secret (airbyte-config-secrets) to ensure it contains the correct keys for your AWS credentials, as referenced by accessKeyIdSecretKey and secretAccessKeySecretKey. If you need further help, please provide your full values.yaml (with sensitive info redacted) and specify your Helm chart version.JCrock8
09/13/2025, 11:15 AMpostgresql:
enabled: false
global:
edition: community
airbyteUrl: "" # The URL where Airbyte will be reached; This should match your Ingress host
auth:
enabled: false
database:
type: external
# -- Secret name where database credentials are stored
secretName: "airbyte-config-secrets" # e.g. "airbyte-config-secrets"
# -- The database host
host: "yyyyyyyyyyy.xxxxxxxxx.eu-west-3.rds.amazonaws.com"
# -- The database port
port: "5432"
# -- The database name
name: "db"
database: "db"
# -- The database user
userSecretKey: "database-user" # e.g. "database-user"
# -- The key within `secretName` where password is stored
passwordSecretKey: "database-password" # e.g."database-password"
logging:
level: debug
storage:
type: "S3"
secretName: "airbyte-config-secrets"
storageSecretName: "airbyte-config-secrets"
bucket: ## S3 bucket names that you've created. We recommend storing the following all in one bucket.
log: airbyte-bucket
auditLogging: airbyte-bucket
state: airbyte-bucket
workloadOutput: airbyte-bucket
activityPayload: airbyte-bucket
s3:
region: "eu-west-3" ## "eu-west-3" ## e.g. us-east-1
authenticationType: credentials ## Use "credentials" or "instanceProfile"
accessKeyIdSecretKey: s3-access-key-id
secretAccessKeySecretKey: s3-secret-access-key
extraEnv:
- name: AWS_DEFAULT_REGION
value: "eu-west-3" # Replace "your-region" with the desired AWS region, e.g., "us-west-2"kapa.ai
09/13/2025, 11:17 AMkapa.ai
09/13/2025, 11:18 AMvalues.yaml looks very close to the documented structure, but there are a few things to check based on the official Airbyte documentation and known issues: --- ### 1. Redundant/Conflicting Keys You have both secretName and storageSecretName under global.storage. According to the [official documentation for Airbyte 1.7+](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values), you should use only `secretName`: yaml global: storage: type: "S3" secretName: airbyte-config-secrets bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket auditLogging: airbyte-bucket s3: region: "eu-west-3" authenticationType: credentials accessKeyIdSecretKey: s3-access-key-id secretAccessKeySecretKey: s3-secret-access-key Remove storageSecretName from your config, as it may cause the chart to ignore your secretName and thus not pick up the region or credentials correctly. --- ### 2. Check Your Secret Keys Your Kubernetes secret (airbyte-config-secrets) must contain the keys s3-access-key-id and s3-secret-access-key (not AWS_ACCESS_KEY_ID or similar), as those are what you reference in your config. This is confirmed in the [docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values): yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets type: Opaque stringData: s3-access-key-id: <your-access-key> s3-secret-access-key: <your-secret-key> --- ### 3. No Need for Both secretName and storageSecretName There are [known issues](https://github.com/airbytehq/airbyte/issues/46329) where using both secretName and storageSecretName causes the chart to generate invalid YAML or not pick up the correct values. Only use secretName. --- ### 4. Extra Environment Variable Setting AWS_DEFAULT_REGION in extraEnv is fine, but it is not a substitute for the region field in the S3 config. The region field under s3: is what Airbyte uses internally. --- ### 5. Chart Version Compatibility You are using Airbyte 1.8.2. The documentation for 1.7 and later is applicable, and the structure above is correct for your version. --- ## Summary of What to Fix - Remove storageSecretName from your config. - Ensure your secret contains the keys s3-access-key-id and s3-secret-access-key. - Make sure your region is set under s3: as you have done. - Do not rely on AWS_DEFAULT_REGION alone. --- If you make these changes and your secret is correct, Airbyte should pick up the region and start without the error. If you still have the issue after these changes, please double-check the actual contents of your Kubernetes secret and ensure there are no typos in the key names. --- References: - [Airbyte 1.7+ Storage Configuration Docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values) - [Known Issue with storageSecretName vs secretName](https://github.com/airbytehq/airbyte/issues/46329)JCrock8
09/13/2025, 11:21 AMapiVersion: v1
kind: Secret
metadata:
name: airbyte-config-secrets
type: Opaque
stringData:
# AWS S3 Secrets
s3-access-key-id: xxxx
s3-secret-access-key: yyyyyy
# Database Secrets
database-user: airbyte ## airbyte ## e.g. airbyte
database-password: password ## "1HLCperoROG9RQHC#" ## e.g. passwordkapa.ai
09/13/2025, 11:21 AMkapa.ai
09/13/2025, 11:21 AMsecret.yaml file is correct and matches the requirements from the official Airbyte documentation for S3 storage configuration: yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets type: Opaque stringData: # AWS S3 Secrets s3-access-key-id: xxxx s3-secret-access-key: yyyyyy # Database Secrets database-user: airbyte database-password: password This secret provides the keys s3-access-key-id and s3-secret-access-key, which are referenced in your values.yaml under accessKeyIdSecretKey and secretAccessKeySecretKey. This setup is explicitly documented as the correct approach for Airbyte's S3 integration [see official docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values). If you are still seeing the "region must not be blank or empty" error: - Double-check that your values.yaml does not include both secretName and storageSecretName under `global.storage`—only use secretName. - Ensure your values.yaml structure is exactly as documented, with the S3 config under global.storage.s3.region. - Make sure you have applied the secret to the correct namespace (the same one where Airbyte is deployed). If all of these are correct and you are still experiencing the issue, it may be due to a misalignment between your Helm chart version and the documentation, or a chart bug. The knowledge sources do not provide further troubleshooting steps for this specific scenario.JCrock8
09/13/2025, 11:23 AMkapa.ai
09/13/2025, 11:23 AMkapa.ai
09/13/2025, 11:23 AMsecret.yaml and values.yaml files when installing Airbyte on Kubernetes: 1. Apply the Kubernetes Secret (secret.yaml) before installing Airbyte: You must create the secret in your Airbyte namespace before running the Helm install. Use the following command: bash kubectl apply -f secret.yaml -n airbyte This ensures that the secret is available for Airbyte to use during installation. The documentation explicitly states that secrets should be pre-configured and stored in Kubernetes before the Helm installation begins [see here](https://docs.airbyte.com/platform/1.7/deploying-airbyte/creating-secrets). --- 2. Install Airbyte with your `values.yaml`: After the secret is created, install Airbyte using Helm and your `values.yaml`: bash helm install airbyte airbyte/airbyte \ --namespace airbyte \ --values ./values.yaml This is the standard installation command as described in the official documentation [see here](https://docs.airbyte.com/platform/1.7/deploying-airbyte#5-installing-airbyte). --- Summary: - Apply secret.yaml first with kubectl apply -f secret.yaml -n airbyte - Then install Airbyte with helm install ... --values ./values.yaml This order ensures Airbyte can access the required secrets during installation.JCrock8
09/13/2025, 12:31 PMkapa.ai
09/13/2025, 12:31 PMkapa.ai
09/13/2025, 12:31 PMsecret.yaml and values.yaml files when installing Airbyte using abctl, you should use the --secret and --values flags together with the abctl local install command. This is explicitly documented in the Airbyte docs: bash abctl local install --secret secret.yaml --values values.yaml - The --secret flag can be set multiple times if you have more than one secret file. - The --values flag allows you to provide your custom configuration. This command will create the Kubernetes secret(s) and use your custom values during the Airbyte installation process. [Reference: abctl usage](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#install-and-manage-local-airbyte-instances) Note: You do not need to manually apply the secret with kubectl when using `abctl`—the tool will handle it for you if you provide the --secret flag. If you need to see all available flags, you can refer to the [full abctl reference](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#reference).JCrock8
09/13/2025, 12:34 PMkapa.ai
09/13/2025, 12:34 PMkapa.ai
09/13/2025, 12:34 PMabctl, you should install Airbyte with both --secret and --values flags: bash abctl local install --secret secret.yaml --values values.yaml This command should create the Kubernetes secret and apply your configuration. The documentation confirms this is the correct approach for abctl installations. If you have multiple secrets, you can use --secret multiple times [see abctl usage](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#install-and-manage-local-airbyte-instances). 2. Secret Content and Keys Your secret.yaml must contain the exact keys referenced in your values.yaml (e.g., s3-access-key-id and s3-secret-access-key). The documentation and examples show these are the expected keys for S3 integration [see storage values](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values). 3. YAML Structure Your values.yaml must have the S3 configuration under global.storage.s3.region and not at the root level. The region must be set and non-empty. Only use secretName, not storageSecretName, under global.storage [see storage values](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values). 4. Namespace Consistency Ensure that the namespace specified in your abctl configuration matches where the secret and Airbyte are being deployed. --- If you have followed all these steps and it is still not working: - The knowledge sources do not provide further troubleshooting steps for this specific scenario. - There may be a version-specific bug or a misalignment between your configuration and what the chart expects. - Double-check for typos in key names and YAML structure. If you can provide the exact error message you are seeing after running the abctl command, I may be able to help further. Otherwise, the knowledge sources do not contain enough information to resolve this issue beyond what has already been described.JCrock8
09/13/2025, 1:08 PMunable to install airbyte chart: unable to install helm: cannot patch "airbyte-abctl-connector-builder-server" with kind Deployment: Deployment.apps "airbyte-abctl-connector-builder-server" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"airbyte-abctl", "app.kubernetes.io/name":"connector-builder-server"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "airbyte-abctl-cron" with kind Deployment: Deployment.apps "airbyte-abctl-cron" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"airbyte-abctl", "app.kubernetes.io/name":"cron"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "airbyte-abctl-server" with kind Deployment: Deployment.apps "airbyte-abctl-server" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"airbyte-abctl", "app.kubernetes.io/name":"server"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "airbyte-abctl-temporal" with kind Deployment: Deployment.apps "airbyte-abctl-temporal" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"airbyte-abctl", "app.kubernetes.io/name":"temporal"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "airbyte-abctl-worker" with kind Deployment: Deployment.apps "airbyte-abctl-worker" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"airbyte-abctl", "app.kubernetes.io/name":"worker"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "airbyte-abctl-workload-api-server" with kind Deployment: Deployment.apps "airbyte-abctl-workload-api-server" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"airbyte-abctl", "app.kubernetes.io/name":"workload-api-server"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "airbyte-abctl-workload-launcher" with kind Deployment: Deployment.apps "airbyte-abctl-workload-launcher" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"airbyte-abctl", "app.kubernetes.io/name":"workload-launcher"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutablekapa.ai
09/13/2025, 1:08 PMkapa.ai
09/13/2025, 1:08 PMcannot patch "airbyte-abctl-..." with kind Deployment: Deployment.apps "airbyte-abctl-..." is invalid: spec.selector: Invalid value: ... field is immutable indicates that the Kubernetes Deployment's spec.selector field is being changed, which is not allowed by Kubernetes once the Deployment has been created. This is a well-known Kubernetes limitation: the spec.selector field is immutable after creation. Why does this happen when downgrading? When you downgrade (or sometimes upgrade) Airbyte, the Helm chart may attempt to change the spec.selector of existing Deployments. Kubernetes will reject this change, resulting in the error you see. This issue is reported in the Airbyte community and GitHub issues as a common problem when switching between chart versions or making significant changes to the deployment spec ([see related issue](https://github.com/airbytehq/airbyte/issues/65129)). How to resolve: The knowledge sources indicate that this error typically requires you to delete the affected Deployments (or sometimes the entire namespace) before reinstalling or re-running the install command. This is because Helm cannot update immutable fields, and a clean slate is needed. Steps: 1. Delete the Airbyte Deployments (or the whole namespace): bash kubectl delete deployment -n <namespace> --all Or, to delete the entire namespace (be careful, this removes all resources in that namespace): bash kubectl delete namespace <namespace> Replace <namespace> with your Airbyte namespace (often airbyte-abctl). 2. Re-run your abctl install command: bash abctl local install --secret secret.yaml --values values.yaml Note: This will cause downtime and remove all running Airbyte pods in that namespace. If you have persistent data (e.g., in an external database or S3), it will not be lost, but any in-cluster state will be removed. Summary: This is a Kubernetes/Helm limitation, not specific to Airbyte. The only way to resolve it is to delete the affected Deployments or namespace and then reinstall Airbyte ([see user experience in the linked issue](https://github.com/airbytehq/airbyte/issues/65129)). If you continue to have issues after a clean install, please provide the new error message for further troubleshooting.