Muhammad Bilal
07/29/2025, 11:33 AMkapa.ai
07/29/2025, 11:33 AMFailed to create pod for write step or timeouts waiting for pods to be ready are documented causes for such failures. The logs may show errors such as: io.airbyte.workers.exception.WorkerException: Failed to create pod for write step Caused by: io.fabric8.kubernetes.client.KubernetesClientTimeoutException: Timed out waiting for [Pod] with name:[destination-...] This indicates that the destination pod could not be created or started in time, possibly due to resource limits, node affinity issues, or missing service accounts or permissions in your cluster. Review your Kubernetes events and Airbyte logs for such errors to pinpoint the cause [Github Issue 39512](https://github.com/airbytehq/airbyte/issues/39512). 2. Service Account or RBAC Issues: If your Airbyte deployment is configured to use a custom Kubernetes service account, but the workload launcher or pods are still trying to use a default or hardcoded service account (like airbyte-admin), the destination and orchestrator pods may fail to start due to lack of permissions or missing service accounts. This is a known issue in some Airbyte versions, especially when using Helm charts and custom service accounts. The error may look like: error looking up service account airbyte/airbyte-admin: serviceaccount "airbyte-admin" not found Ensure that your service account configuration is correct and that the necessary permissions are granted [Github Issue 49938](https://github.com/airbytehq/airbyte/issues/49938). 3. Resource Constraints or Node Affinity: If your cluster is resource-constrained or has node affinity/architecture issues (e.g., mixing ARM and Intel nodes), Airbyte may fail to schedule destination or orchestrator pods. This can result in pods being stuck in pending or not being created at all [Github Issue 34655](https://github.com/airbytehq/airbyte/issues/34655). 4. Pods Stuck in Terminating: Sometimes, pods from previous jobs may be stuck in a terminating state, preventing new pods from being scheduled. This can block the creation of new destination or orchestrator pods. Check for terminating pods and consider cleaning them up manually or adjusting your pod sweeper settings [Forum Post 2545](https://discuss.airbyte.io/t/2545). What you should do: - Check the Airbyte and Kubernetes logs for errors related to pod creation, service accounts, or resource limits. - Ensure your service account and RBAC settings are correct and match what Airbyte expects. - Verify that your cluster has enough resources and that there are no node affinity or architecture mismatches. - Look for and clean up any pods stuck in terminating state. If you need more specific troubleshooting, please provide relevant Airbyte and Kubernetes logs from the failed job attempts.Muhammad Bilal
07/30/2025, 7:48 AMkapa.ai
07/30/2025, 7:48 AMkapa.ai
07/30/2025, 7:48 AMMuhammad Bilal
07/30/2025, 7:54 AMkapa.ai
07/30/2025, 7:54 AMkapa.ai
07/30/2025, 7:54 AMairbyte-workload-launcher. The process works as follows: - The Workload API Server (airbyte-workload-api-server) places the job in a queue. - The Launcher (airbyte-workload-launcher) picks up the job from the queue and interfaces with Kubernetes to launch the required pods for connector operations, including source, destination, and replication jobs. This architecture decouples job scheduling from pod launching, allowing for better resource management and scalability in Airbyte deployments, especially on Kubernetes platforms like EKS [Understanding Airbyte: High-level view](https://docs.airbyte.com/platform/1.6/understanding-airbyte/high-level-view) [Workloads & Jobs](https://docs.airbyte.com/platform/1.6/understanding-airbyte/jobs).Muhammad Bilal
07/30/2025, 11:31 AM2025-07-30 11:10:39,626 [main] ERROR i.a.c.Application(run):73 - Killing orchestrator because of an Exception
io.airbyte.workers.workload.exception.DocStoreAccessException: Unable to write output for 57f285a0-9135-4ca2-b6d1-ece7675bc804_317009_0_sync
at io.airbyte.workers.workload.JobOutputDocStore.writeOutput(JobOutputDocStore.kt:72)
at io.airbyte.workers.workload.JobOutputDocStore.writeSyncOutput(JobOutputDocStore.kt:60)
at io.airbyte.container_orchestrator.orchestrator.ReplicationJobOrchestrator.runJob(ReplicationJobOrchestrator.java:95)
at io.airbyte.container_orchestrator.Application.run(Application.java:71)
at io.airbyte.container_orchestrator.Application.main(Application.java:40)
Caused by: software.amazon.awssdk.services.s3.model.S3Exception: The provided token is malformed or otherwise invalid. (Service: S3, Status Code: 400, Request ID: request-id, Extended Request ID: extended-request-id)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handleErrorResponse(AwsXmlPredicatedResponseHandler.java:156)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handleResponse(AwsXmlPredicatedResponseHandler.java:108)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handle(AwsXmlPredicatedResponseHandler.java:85)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handle(AwsXmlPredicatedResponseHandler.java:43)
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler$Crc32ValidationResponseHandler.handle(AwsSyncClientHandler.java:93)
at software.amazon.awssdk.core.internal.handler.BaseClientHandler.lambda$successTransformationResponseHandler$7(BaseClientHandler.java:279)
at software.amazon.awssdk.core.internal.http.pipeline.stages.HandleResponseStage.execute(HandleResponseStage.java:50)
at software.amazon.awssdk.core.internal.http.pipeline.stages.HandleResponseStage.execute(HandleResponseStage.java:38)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptTimeoutTrackingStage.execute(ApiCallAttemptTimeoutTrackingStage.java:74)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptTimeoutTrackingStage.execute(ApiCallAttemptTimeoutTrackingStage.java:43)
at software.amazon.awssdk.core.internal.http.pipeline.stages.TimeoutExceptionHandlingStage.execute(TimeoutExceptionHandlingStage.java:79)
at software.amazon.awssdk.core.internal.http.pipeline.stages.TimeoutExceptionHandlingStage.execute(TimeoutExceptionHandlingStage.java:41)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptMetricCollectionStage.execute(ApiCallAttemptMetricCollectionStage.java:55)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptMetricCollectionStage.execute(ApiCallAttemptMetricCollectionStage.java:39)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.executeRequest(RetryableStage2.java:93)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.execute(RetryableStage2.java:56)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.execute(RetryableStage2.java:36)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.StreamManagingStage.execute(StreamManagingStage.java:53)
at software.amazon.awssdk.core.internal.http.StreamManagingStage.execute(StreamManagingStage.java:35)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.executeWithTimer(ApiCallTimeoutTrackingStage.java:82)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.execute(ApiCallTimeoutTrackingStage.java:62)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.execute(ApiCallTimeoutTrackingStage.java:43)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallMetricCollectionStage.execute(ApiCallMetricCollectionStage.java:50)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallMetricCollectionStage.execute(ApiCallMetricCollectionStage.java:32)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ExecutionFailureExceptionReportingStage.execute(ExecutionFailureExceptionReportingStage.java:37)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ExecutionFailureExceptionReportingStage.execute(ExecutionFailureExceptionReportingStage.java:26)
at software.amazon.awssdk.core.internal.http.AmazonSyncHttpClient$RequestExecutionBuilderImpl.execute(AmazonSyncHttpClient.java:210)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.invoke(BaseSyncClientHandler.java:103)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.doExecute(BaseSyncClientHandler.java:173)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.lambda$execute$1(BaseSyncClientHandler.java:80)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.measureApiCallSuccess(BaseSyncClientHandler.java:182)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.execute(BaseSyncClientHandler.java:74)
at software.amazon.awssdk.core.client.handler.SdkSyncClientHandler.execute(SdkSyncClientHandler.java:45)
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler.execute(AwsSyncClientHandler.java:53)
at software.amazon.awssdk.services.s3.DefaultS3Client.putObject(DefaultS3Client.java:10191)
at io.airbyte.commons.storage.AbstractS3StorageClient.write(StorageClient.kt:439)
at io.airbyte.workers.workload.JobOutputDocStore.writeOutput(JobOutputDocStore.kt:68)kapa.ai
07/30/2025, 11:31 AMkapa.ai
07/30/2025, 11:31 AMio.airbyte.workers.workload.exception.DocStoreAccessException: Unable to write output for ... Caused by: software.amazon.awssdk.services.s3.model.S3Exception: The provided token is malformed or otherwise invalid. (Service: S3, Status Code: 400, ...) indicates that the replication job pod is failing when trying to write output to S3, due to an invalid or malformed AWS token. Based on the knowledge sources, this type of error is typically related to issues with AWS credentials or the way Airbyte is configured to access S3. Here are the most likely causes and steps to investigate: 1. Malformed or Expired AWS Token This error often occurs if the pod is running with an invalid, expired, or incorrectly injected AWS token. This can happen if: - The service account used by the pod does not have the correct IAM role or permissions. - The pod is not using the expected service account (for example, it falls back to the default account instead of the one configured for IRSA). - There is a misconfiguration in how AWS credentials are provided to the pod (e.g., environment variables, IRSA, or instance profile). 2. IRSA or Service Account Issues If you are using EKS with IRSA (IAM Roles for Service Accounts), ensure that: - The pod is running with the correct service account that is annotated with the appropriate IAM role. - The IAM role has the necessary S3 permissions as described in the [AWS Policies Appendix](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#aws-policies-appendix). - The service account is correctly referenced in your Airbyte Helm values or deployment configuration. There are known issues where pods may fall back to the default service account, which may not have the required permissions, leading to S3 authorization errors. This is discussed in [Github Issue 50979](https://github.com/airbytehq/airbyte/issues/50979). 3. Recent Node OS Change Since you recently changed your node OS from AL2 to AL2023, ensure that: - The new OS image supports all required Kubernetes and AWS features (including IRSA and token injection). - There are no compatibility issues with the way AWS credentials are mounted or injected into pods on AL2023 nodes. 4. Check for Token Injection and Permissions - Verify that the AWS_WEB_IDENTITY_TOKEN_FILE environment variable is set in the pod. - Check that the pod has access to the token file and that it is valid. - Ensure the IAM role allows the necessary S3 actions (see the policy examples in the documentation). Summary: The error is most likely due to a problem with how AWS credentials are provided to the replication pod—either a malformed, missing, or expired token, or a service account misconfiguration. Double-check your IRSA setup, service account annotations, and IAM role permissions. Also, verify that the node OS change did not break the credential injection mechanism. If you need more targeted help, check the pod's environment variables and service account, and review the Kubernetes events for any related warnings or errors. If you need to review the required S3 permissions, see the [AWS S3 Policy example in the Airbyte docs](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#aws-policies-appendix).Muhammad Bilal
07/30/2025, 12:06 PMkapa.ai
07/30/2025, 12:06 PMkapa.ai
07/30/2025, 12:06 PMMuhammad Bilal
07/30/2025, 12:11 PMkapa.ai
07/30/2025, 12:11 PMkapa.ai
07/30/2025, 12:12 PMAWS_WEB_IDENTITY_TOKEN_FILE is present in the replication pod, but you never see the destination pod running for any jobs, this suggests the failure is occurring before the destination pod is even created. This is consistent with several issues reported in the knowledge sources: - Pod Creation Failure: Airbyte’s replication process involves the orchestrator (replication pod) creating both source and destination pods. If the destination pod is never created, it’s likely the orchestrator is failing at the step where it tries to launch the destination pod. This can be due to: - Service account or RBAC misconfiguration, especially after changes to the cluster or node OS. - The orchestrator pod not having the correct permissions to create new pods, or referencing a service account that does not exist or is misconfigured. - Issues with the way Airbyte is passing the service account name to the orchestrator or workload launcher, which is a known problem in some Airbyte versions, especially when using custom service accounts or after upgrades. In some cases, Airbyte may default to a hardcoded service account (like airbyte-admin), which may not exist or have the right permissions, causing pod creation to fail silently or with errors in the orchestrator logs [Github Issue 49938](https://github.com/airbytehq/airbyte/issues/49938), [Github Issue 50979](https://github.com/airbytehq/airbyte/issues/50979). - Error Location: The error you shared (DocStoreAccessException with an S3 token error) is happening in the replication pod, not the destination pod. This means the replication pod is failing before it can even attempt to launch the destination pod, likely during job output handling or when trying to persist state/logs to S3. - No Destination Pod: If you never see a destination pod, focus on: - Reviewing the orchestrator/replication pod logs for errors related to pod creation, service account lookup, or permissions. - Ensuring the service account used by the orchestrator/replication pod has the correct permissions to create pods and access S3. - Verifying that your Helm values or deployment configuration correctly specify the service account, and that it matches what is expected by Airbyte and your cluster setup. Summary: The orchestrator (replication) pod is responsible for launching the destination pod. If the destination pod is never created, the issue is likely with service account configuration, permissions, or a failure in the orchestrator before it reaches the pod creation step. This is a known class of issues in Airbyte, especially after changes to service accounts, cluster configuration, or node OS. Please review orchestrator pod logs for errors about pod creation or service account lookup, and ensure your service account and RBAC settings are correct and compatible with your current Airbyte version and EKS setup [Github Issue 49938](https://github.com/airbytehq/airbyte/issues/49938), [Github Issue 50979](https://github.com/airbytehq/airbyte/issues/50979). If you can share orchestrator pod logs around the time of job failure, it may help pinpoint the exact cause.Muhammad Bilal
07/31/2025, 6:33 AMat software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handleErrorResponse(AwsXmlPredicatedResponseHandler.java:156)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handleResponse(AwsXmlPredicatedResponseHandler.java:108)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handle(AwsXmlPredicatedResponseHandler.java:85)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handle(AwsXmlPredicatedResponseHandler.java:43)
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler$Crc32ValidationResponseHandler.handle(AwsSyncClientHandler.java:93)
at software.amazon.awssdk.core.internal.handler.BaseClientHandler.lambda$successTransformationResponseHandler$7(BaseClientHandler.java:279)
at software.amazon.awssdk.core.internal.http.pipeline.stages.HandleResponseStage.execute(HandleResponseStage.java:50)
at software.amazon.awssdk.core.internal.http.pipeline.stages.HandleResponseStage.execute(HandleResponseStage.java:38)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptTimeoutTrackingStage.execute(ApiCallAttemptTimeoutTrackingStage.java:74)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptTimeoutTrackingStage.execute(ApiCallAttemptTimeoutTrackingStage.java:43)
at software.amazon.awssdk.core.internal.http.pipeline.stages.TimeoutExceptionHandlingStage.execute(TimeoutExceptionHandlingStage.java:79)
at software.amazon.awssdk.core.internal.http.pipeline.stages.TimeoutExceptionHandlingStage.execute(TimeoutExceptionHandlingStage.java:41)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptMetricCollectionStage.execute(ApiCallAttemptMetricCollectionStage.java:55)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptMetricCollectionStage.execute(ApiCallAttemptMetricCollectionStage.java:39)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.executeRequest(RetryableStage2.java:93)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.execute(RetryableStage2.java:56)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.execute(RetryableStage2.java:36)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.StreamManagingStage.execute(StreamManagingStage.java:53)
at software.amazon.awssdk.core.internal.http.StreamManagingStage.execute(StreamManagingStage.java:35)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.executeWithTimer(ApiCallTimeoutTrackingStage.java:82)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.execute(ApiCallTimeoutTrackingStage.java:62)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.execute(ApiCallTimeoutTrackingStage.java:43)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallMetricCollectionStage.execute(ApiCallMetricCollectionStage.java:50)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallMetricCollectionStage.execute(ApiCallMetricCollectionStage.java:32)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ExecutionFailureExceptionReportingStage.execute(ExecutionFailureExceptionReportingStage.java:37)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ExecutionFailureExceptionReportingStage.execute(ExecutionFailureExceptionReportingStage.java:26)
at software.amazon.awssdk.core.internal.http.AmazonSyncHttpClient$RequestExecutionBuilderImpl.execute(AmazonSyncHttpClient.java:210)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.invoke(BaseSyncClientHandler.java:103)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.doExecute(BaseSyncClientHandler.java:173)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.lambda$execute$1(BaseSyncClientHandler.java:80)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.measureApiCallSuccess(BaseSyncClientHandler.java:182)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.execute(BaseSyncClientHandler.java:74)
at software.amazon.awssdk.core.client.handler.SdkSyncClientHandler.execute(SdkSyncClientHandler.java:45)
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler.execute(AwsSyncClientHandler.java:53)
at software.amazon.awssdk.services.s3.DefaultS3Client.putObject(DefaultS3Client.java:10191)
at io.airbyte.commons.storage.AbstractS3StorageClient.write(StorageClient.kt:439)
at io.airbyte.commons.logging.logback.AirbyteCloudStorageAppender.upload(AirbyteCloudStorageAppender.kt:121)
at io.airbyte.commons.logging.logback.AirbyteCloudStorageAppender.stop(AirbyteCloudStorageAppender.kt:106)
at ch.qos.logback.core.sift.SiftingAppenderBase.stop(SiftingAppenderBase.java:102)
at ch.qos.logback.core.spi.AppenderAttachableImpl.detachAndStopAllAppenders(AppenderAttachableImpl.java:107)
at ch.qos.logback.classic.Logger.detachAndStopAllAppenders(Logger.java:209)
at ch.qos.logback.classic.Logger.recursiveReset(Logger.java:333)
at ch.qos.logback.classic.LoggerContext.reset(LoggerContext.java:382)
at ch.qos.logback.classic.LoggerContext.stop(LoggerContext.java:359)kapa.ai
07/31/2025, 6:33 AMkapa.ai
07/31/2025, 6:34 AMputObject operation, but do not include the actual error message text (such as "token is malformed" or "not authorized"). However, based on similar stack traces and error patterns in the knowledge sources, this type of log is typically associated with S3 authentication or authorization failures. From the knowledge sources, such errors in the workload launcher or orchestrator are often due to: - Invalid or missing AWS credentials: This can happen if the pod is not using the correct service account, or if the IAM role associated with the service account does not have the required S3 permissions. For example, if the pod falls back to the node IAM role instead of the intended IRSA role, S3 operations may fail with authorization errors or malformed token errors. This is discussed in [Github Issue 50979](https://github.com/airbytehq/airbyte/issues/50979) and [Github Issue 53652](https://github.com/airbytehq/airbyte/issues/53652). - Service account misconfiguration: If the Airbyte workload pods (including the workload launcher) are not assigned the correct service account, or if the service account is missing the necessary IAM role annotation, S3 access will fail. This can also prevent the destination pod from being created, as the orchestrator may fail before reaching that step [Github Issue 50979](https://github.com/airbytehq/airbyte/issues/50979). - Token or credential injection issues: Even if AWS_WEB_IDENTITY_TOKEN_FILE is present, if the token is malformed or expired, or if the IAM role does not allow the required S3 actions, you will see similar stack traces. Key points from the knowledge sources: - When the orchestrator or workload launcher cannot write to S3 (for logs, state, or job output), it can cause the entire job to fail before the destination pod is even created. - The root cause is often related to IRSA, service account, or IAM role misconfiguration, especially after changes to the cluster or node OS [Github Issue 50979](https://github.com/airbytehq/airbyte/issues/50979), [Github Issue 53652](https://github.com/airbytehq/airbyte/issues/53652). What to do next: - Check for the actual error message in the logs (look for lines mentioning "not authorized", "token is malformed", or "access denied"). - Ensure the workload launcher and orchestrator pods are using the correct service account with the proper IAM role and S3 permissions. - Review your IRSA setup and confirm that the service account annotation and IAM policy are correct and compatible with your EKS and Airbyte versions. If you can provide the full error message (not just the stack trace), it may help pinpoint the exact issue. But based on the knowledge sources, S3 credential or permission issues are the most likely cause for this pattern of failure.Muhammad Bilal
07/31/2025, 6:45 AMstorage:
type: S3 # default storage used
storageSecretName: "secret-name"
# S3
bucket: ## S3 bucket names that you've created. We recommend storing the following all in one bucket.
log: airbyte-bucket
state: airbyte-bucket
workloadOutput: airbyte-bucket
s3:
region: "me-central-1" ## e.g. us-east-1kapa.ai
07/31/2025, 6:45 AMkapa.ai
07/31/2025, 6:45 AMlog, state, workloadOutput, and activityPayload. If any of these are missing, Airbyte may default to a bucket in another region (such as eu-west-1), causing region or authorization header errors. The solution is to explicitly set all four properties under global.storage.bucket to your intended bucket name, even if you use the same bucket for all types of storage: yaml global: storage: bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket This was confirmed to resolve region and malformed authorization header issues for other users [S3 Exceptions: Wrong region and malformed authorization header](https://github.com/airbytehq/airbyte/issues/48407). 2. Region Consistency Ensure that the region specified under s3 matches the actual region of your S3 bucket. Mismatched regions can cause errors such as "The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-west-1'" [S3 Exceptions: Wrong region and malformed authorization header](https://github.com/airbytehq/airbyte/issues/48407). 3. IRSA and Service Account Configuration If you are using IRSA (IAM Roles for Service Accounts) on EKS, make sure your service account is correctly annotated and referenced in your values file. Misconfiguration here can lead to Airbyte pods falling back to the node IAM role or failing to authenticate with S3, resulting in token or permission errors [Airbyte Pod Intermittently Losing IRSA Permissions](https://github.com/airbytehq/airbyte/issues/53652), [Workload pods are missing the service account](https://github.com/airbytehq/airbyte/issues/50979). 4. storageSecretName Usage The knowledge sources do not provide explicit details about the use of storageSecretName, but ensure that the referenced secret contains the correct AWS credentials if you are not using IRSA or instance profiles. Summary: Your configuration is mostly correct, but you should explicitly set all four S3 bucket properties (log, state, workloadOutput, activityPayload) to avoid Airbyte defaulting to an unintended bucket or region. Also, double-check your region and service account/IAM role setup to prevent authentication issues. If you continue to see errors, review the Airbyte and Kubernetes pod logs for more specific error messages related to S3 access. If you need further help, please provide the full error message and confirm whether you are using IRSA or static credentials.Muhammad Bilal
07/31/2025, 7:02 AMkapa.ai
07/31/2025, 7:02 AMkapa.ai
07/31/2025, 7:02 AMvalues.yaml file. The exact configuration depends on whether you are using static AWS credentials or IRSA (IAM Roles for Service Accounts). ### 1. Using Static AWS Credentials - Create a Kubernetes Secret (e.g., airbyte-config-secrets) containing your AWS access key and secret key: yaml apiVersion: v1 kind: Secret metadata: name: airbyte-config-secrets namespace: airbyte type: Opaque stringData: s3-access-key-id: <YOUR_AWS_ACCESS_KEY_ID> s3-secret-access-key: <YOUR_AWS_SECRET_ACCESS_KEY> - Reference the secret and set authentication type in your `values.yaml`: yaml global: storage: type: S3 secretName: airbyte-config-secrets bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket s3: region: <your-region> authenticationType: credentials This tells Airbyte to use the credentials from the Kubernetes secret for S3 authentication. [See example and details](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values) ### 2. Using IRSA (IAM Roles for Service Accounts) - Set up your EKS service account with the appropriate IAM role and annotate it for IRSA. - Configure your values.yaml to use `instanceProfile`: yaml global: storage: type: S3 bucket: log: airbyte-bucket state: airbyte-bucket workloadOutput: airbyte-bucket activityPayload: airbyte-bucket s3: region: <your-region> authenticationType: instanceProfile With this setup, Airbyte will use the IAM role associated with the service account for authentication. [See example and details](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values) ### 3. For AWS Secrets Manager (Connector Secrets) If you want Airbyte to use AWS Secrets Manager for connector secrets, add: yaml global: secretsManager: type: awsSecretManager secretName: airbyte-config-secrets awsSecretManager: region: <your-region> authenticationType: credentials # or instanceProfile [See more details](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets#values) --- Note: - Always ensure your secret keys in the Kubernetes secret match the keys expected by Airbyte (s3-access-key-id, s3-secret-access-key). - If using IRSA, make sure your service account is correctly annotated and referenced in your deployment. If you need to authenticate with other cloud providers or use other secret managers, refer to the corresponding sections in the documentation. --- References: - [Airbyte Storage Integration Values](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values) - [Airbyte Secret Management Values](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets#values)Muhammad Bilal
07/31/2025, 7:52 AM{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AirbyteStates",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::airbyte-bucket/*"
]
},
{
"Sid": "AirbyteStatesListBucket",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": [
"arn:aws:s3:::airbyte-bucket"
]
}
]
}kapa.ai
07/31/2025, 7:52 AMkapa.ai
07/31/2025, 7:52 AMs3:PutObject, s3:GetObject, and s3:ListBucket) for the airbyte-bucket, which are necessary for reading, writing, and listing objects. However, according to the Airbyte documentation and examples, additional permissions are often required for full functionality, especially for logging, state management, and certain connector operations. Recommended additional permissions: - s3:DeleteObject – Allows Airbyte to delete objects, which may be needed for cleanup operations. - s3:PutObjectAcl and s3:GetObjectAcl – Required if Airbyte or connectors need to manage object ACLs. - s3:GetBucketLocation – Used to determine the bucket's region, which is important for some S3 operations. - s3:ListAllMyBuckets – Sometimes required for listing all buckets, depending on your Airbyte setup. A more comprehensive policy, as recommended in the Airbyte documentation, looks like this: json { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:ListAllMyBuckets", "Resource": "*" }, { "Effect": "Allow", "Action": ["s3:ListBucket", "s3:GetBucketLocation"], "Resource": "arn:aws:s3:::airbyte-bucket" }, { "Effect": "Allow", "Action": [ "s3:PutObject", "s3:PutObjectAcl", "s3:GetObject", "s3:GetObjectAcl", "s3:DeleteObject" ], "Resource": "arn:aws:s3:::airbyte-bucket/*" } ] } This policy is directly recommended in the Airbyte platform documentation for S3 integration and ensures all required actions are permitted for Airbyte to function correctly with S3 storage [see AWS S3 Policy in the docs](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#aws-policies-appendix). Summary: You should add at least s3:DeleteObject, s3:PutObjectAcl, s3:GetObjectAcl, s3:GetBucketLocation, and s3:ListAllMyBuckets to your policy for full compatibility with Airbyte’s S3 integration. If you only allow the minimal set, some features or connectors may not work as expected.Muhammad Bilal
07/31/2025, 8:03 AMError performing operation: io.airbyte.workers.workload.exception.DocStoreAccessException
io.airbyte.workers.workload.exception.DocStoreAccessException: Unable to write output for decd833e-4756-5d1c-beg5-da0e57f6a760_131727_1_check
at io.airbyte.workers.workload.JobOutputDocStore.writeOutput(JobOutputDocStore.kt:72)
at io.airbyte.workers.workload.JobOutputDocStore.write(JobOutputDocStore.kt:38)
at io.airbyte.connectorSidecar.ConnectorWatcher.saveConnectorOutput(ConnectorWatcher.kt:165)
at io.airbyte.connectorSidecar.ConnectorWatcher.run(ConnectorWatcher.kt:74)
at io.airbyte.connectorSidecar.$ConnectorWatcher$Definition.initialize(Unknown Source)
at io.airbyte.connectorSidecar.$ConnectorWatcher$Definition.instantiate(Unknown Source)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2334)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2304)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2316)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3127)
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80)
at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:3029)
at io.micronaut.context.DefaultBeanContext.initializeEagerBean(DefaultBeanContext.java:2702)
at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:1994)
at io.micronaut.context.DefaultApplicationContext.initializeContext(DefaultApplicationContext.java:314)
at io.micronaut.context.DefaultBeanContext.configureAndStartContext(DefaultBeanContext.java:3318)
at io.micronaut.context.DefaultBeanContext.start(DefaultBeanContext.java:345)
at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:216)
at io.micronaut.runtime.Micronaut.start(Micronaut.java:75)
at io.airbyte.connectorSidecar.ApplicationKt.main(Application.kt:17)
at io.airbyte.connectorSidecar.ApplicationKt.main(Application.kt)
And this:
Caused by: software.amazon.awssdk.services.s3.model.S3Exception: The provided token is malformed or otherwise invalid. (Service: S3, Status Code: 400, Request ID: request-id, Extended Request ID: extended-request-id)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handleErrorResponse(AwsXmlPredicatedResponseHandler.java:156)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handleResponse(AwsXmlPredicatedResponseHandler.java:108)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handle(AwsXmlPredicatedResponseHandler.java:85)
at software.amazon.awssdk.protocols.xml.internal.unmarshall.AwsXmlPredicatedResponseHandler.handle(AwsXmlPredicatedResponseHandler.java:43)
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler$Crc32ValidationResponseHandler.handle(AwsSyncClientHandler.java:93)
at software.amazon.awssdk.core.internal.handler.BaseClientHandler.lambda$successTransformationResponseHandler$7(BaseClientHandler.java:279)
at software.amazon.awssdk.core.internal.http.pipeline.stages.HandleResponseStage.execute(HandleResponseStage.java:50)
at software.amazon.awssdk.core.internal.http.pipeline.stages.HandleResponseStage.execute(HandleResponseStage.java:38)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptTimeoutTrackingStage.execute(ApiCallAttemptTimeoutTrackingStage.java:74)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptTimeoutTrackingStage.execute(ApiCallAttemptTimeoutTrackingStage.java:43)
at software.amazon.awssdk.core.internal.http.pipeline.stages.TimeoutExceptionHandlingStage.execute(TimeoutExceptionHandlingStage.java:79)
at software.amazon.awssdk.core.internal.http.pipeline.stages.TimeoutExceptionHandlingStage.execute(TimeoutExceptionHandlingStage.java:41)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptMetricCollectionStage.execute(ApiCallAttemptMetricCollectionStage.java:55)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallAttemptMetricCollectionStage.execute(ApiCallAttemptMetricCollectionStage.java:39)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.executeRequest(RetryableStage2.java:93)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.execute(RetryableStage2.java:56)
at software.amazon.awssdk.core.internal.http.pipeline.stages.RetryableStage2.execute(RetryableStage2.java:36)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.StreamManagingStage.execute(StreamManagingStage.java:53)
at software.amazon.awssdk.core.internal.http.StreamManagingStage.execute(StreamManagingStage.java:35)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.executeWithTimer(ApiCallTimeoutTrackingStage.java:82)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.execute(ApiCallTimeoutTrackingStage.java:62)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallTimeoutTrackingStage.execute(ApiCallTimeoutTrackingStage.java:43)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallMetricCollectionStage.execute(ApiCallMetricCollectionStage.java:50)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ApiCallMetricCollectionStage.execute(ApiCallMetricCollectionStage.java:32)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.RequestPipelineBuilder$ComposingRequestPipelineStage.execute(RequestPipelineBuilder.java:206)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ExecutionFailureExceptionReportingStage.execute(ExecutionFailureExceptionReportingStage.java:37)
at software.amazon.awssdk.core.internal.http.pipeline.stages.ExecutionFailureExceptionReportingStage.execute(ExecutionFailureExceptionReportingStage.java:26)
at software.amazon.awssdk.core.internal.http.AmazonSyncHttpClient$RequestExecutionBuilderImpl.execute(AmazonSyncHttpClient.java:210)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.invoke(BaseSyncClientHandler.java:103)kapa.ai
07/31/2025, 8:03 AMkapa.ai
07/31/2025, 8:03 AMio.airbyte.workers.workload.exception.DocStoreAccessException: Unable to write output for ... Caused by: software.amazon.awssdk.services.s3.model.S3Exception: The provided token is malformed or otherwise invalid. (Service: S3, Status Code: 400, ...) indicates that the Airbyte source pod is unable to write to S3 due to an invalid or malformed AWS token. This is a classic symptom of an authentication or credential propagation issue, not a permissions (policy) issue. Based on the knowledge sources, here are the most likely causes and next steps: 1. IRSA/Service Account Issues This error often occurs if the pod is not using the correct service account with the proper IAM role, or if the AWS token injected into the pod is invalid or expired. There are multiple reports of Airbyte pods falling back to the node IAM role or using a default service account, which can result in this exact error if the node role does not have S3 access or if the token is not valid for the intended role. This is discussed in [Github Issue 50979](https://github.com/airbytehq/airbyte/issues/50979) and [Github Issue 53652](https://github.com/airbytehq/airbyte/issues/53652). 2. Recent Changes or Upgrades If you recently changed your node OS, upgraded Airbyte, or modified service account settings, this can disrupt how tokens are injected or how service accounts are referenced by Airbyte pods, leading to malformed or missing tokens [Github Issue 53652](https://github.com/airbytehq/airbyte/issues/53652). 3. Token File Presence Is Not Sufficient Even if AWS_WEB_IDENTITY_TOKEN_FILE is present in the pod, the token itself may be invalid, expired, or not associated with the correct IAM role. This can happen if the service account annotation is missing or incorrect, or if the pod is not actually running with the intended service account. What to check next: - Verify the service account assigned to the failing pod. Make sure it is the one annotated for IRSA and not the default or node service account. - Check the IAM role annotation on the service account and ensure it matches the role with the correct S3 permissions. - Review the pod's environment variables and confirm that the AWS credentials and token file are valid and up-to-date. - Check for any recent changes to your EKS node image, Airbyte version, or Helm values that could affect service account or IRSA configuration. Summary: This is not a permissions issue with your IAM policy, but rather an authentication/credential propagation issue—most likely related to IRSA, service account, or token injection. Double-check your service account setup and IRSA configuration as described above. If the problem persists, review the orchestrator and workload launcher logs for additional context, as these components are responsible for launching pods with the correct service account and credentials [Github Issue 50979](https://github.com/airbytehq/airbyte/issues/50979), [Github Issue 53652](https://github.com/airbytehq/airbyte/issues/53652).Muhammad Bilal
07/31/2025, 8:26 AMkapa.ai
07/31/2025, 8:26 AMkapa.ai
07/31/2025, 8:26 AM