<@U04S8PLJWMT> My replication jobs are scheduled o...
# ask-ai
m
@kapa.ai My replication jobs are scheduled on EKS cluster. But only source pods are running, I can't see running the destination and replication job pods running. What could be wrong?
k
If your replication jobs on an EKS cluster are only running the source pods, but you do not see the destination or replication job pods running, there are a few possible causes based on the knowledge sources: 1. Pod Creation Failures: Airbyte's replication process involves creating pods for the source, destination, and orchestrator. If only the source pod is running, it's possible that the destination or orchestrator pods are failing to be created. This can happen due to issues with Kubernetes permissions, resource constraints, or misconfiguration. For example, errors like
Failed 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:
Copy code
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:
Copy code
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.
m
@kapa.ai I had changed the OS image for my nodes from AL2 to AL2023. Nothing was changed other than that.
k
A message from kapa.ai
Changing the OS image for your EKS nodes from Amazon Linux 2 (AL2) to Amazon Linux 2023 (AL2023) can introduce compatibility issues that may affect Airbyte's ability to schedule and run destination and replication pods, even if nothing else was changed. From the knowledge sources, there are several reports of Airbyte users encountering issues after changing their node OS or environment, particularly on Amazon Linux 2023. For example, users have reported problems with connector pods not running or being unable to pull images, and in some cases, Airbyte jobs failing to create the necessary pods for replication or destination steps. These issues can be related to differences in the underlying OS, Docker, or Kubernetes runtime compatibility with Airbyte or its dependencies. For instance, one user reported that after an EC2 restart (which could include a node image change), Airbyte was unable to pull connector images, resulting in failed syncs and missing pods, even though the rest of the configuration was unchanged [On restart of EC2 - both source and destination connectors go missing & cannot be pulled](https://github.com/airbytehq/airbyte/issues/39337). Additionally, there are reports of Airbyte jobs failing due to pod creation errors or timeouts, which can be related to changes in the node environment, such as OS updates or differences in container runtime behavior between AL2 and AL2023 [Problem with conections in Linux EC2](https://github.com/airbytehq/airbyte/issues/44581). What you should do: - Check the Airbyte and Kubernetes logs for errors related to pod creation, image pulling, or permissions. - Ensure that all required container runtimes, permissions, and dependencies are compatible with AL2023. - Verify that your EKS node IAM roles, service accounts, and RBAC settings are still valid and accessible from the new OS image. - If you see errors about missing images or failed pod creation, try manually pulling the connector images on the new nodes to check for compatibility or network issues. If the only change was the OS image, it is likely that the issue is related to compatibility or configuration differences introduced by AL2023. The knowledge sources do not provide a definitive fix for this scenario, but they do confirm that such issues have been observed after similar changes. If problems persist, consider rolling back to AL2 to confirm if the OS change is the root cause, or consult Airbyte's compatibility documentation for the latest supported environments. If you can provide specific error logs from the Airbyte or Kubernetes pods, more targeted troubleshooting may be possible.
m
@kapa.ai, which component is responsible for triggering the pods for source, destination, and replication jobs?
k
A message from kapa.ai
The component responsible for triggering (launching) the pods for source, destination, and replication jobs in Airbyte is the Launcher, specifically the
airbyte-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).
m
@kapa.ai I have checked and found the source and replication pods running. But replication job pod ran but failed with the following error:
Copy code
2025-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)
k
A message from kapa.ai
The error message you are seeing:
Copy code
io.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).
m
@kapa.ai I have verified "AWS_WEB_IDENTITY_TOKEN_FILE" was available to the replication pod. Secondly I couldn't see the destination pod running for any of the job.
k
A message from kapa.ai
Sorry @Muhammad Bilal, I'm currently experiencing some technical difficulties. Please try again in a few minutes. If this issue persists, please reach out to the administrators of this Slack workspace.
m
@kapa.ai I have verified that "AWS_WEB_IDENTITY_TOKEN_FILE" was available to the replication pod. Secondly, I couldn't see the destination pod running for any of the jobs.
k
A message from kapa.ai
Thank you for the additional details. Given that the
AWS_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.
m
@kapa.ai I can also see the following logs in my workload launcher pod right after the logs for replication job:
Copy code
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.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)
k
A message from kapa.ai
The logs you provided from the workload launcher pod show a stack trace ending with an S3
putObject
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.
m
@kapa.ai Previously, I was not getting any token, malformed, or authentication-specific error for S3. Here is how I provide the S3 configs in my values file:
Copy code
storage:
    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-1
k
A message from kapa.ai
Based on the knowledge sources, your S3 configuration in the values file appears structurally correct, as it specifies the storage type, secret name, bucket names, and region. However, there are a few important points and potential pitfalls highlighted in the sources: 1. All S3 Bucket Values Must Be Explicitly Set Several users encountered S3 region and authorization errors when not all of the following were set:
log
,
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:
Copy code
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.
m
@kapa.ai, how can I provide authentication config to airbyte using helm? I am using 1.4.1 version for Airbyte.
k
A message from kapa.ai
To provide authentication configuration to Airbyte using Helm (version 1.4.1), you need to specify your authentication method and credentials in your
values.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:
Copy code
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`:
Copy code
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`:
Copy code
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:
Copy code
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)
m
@kapa.ai I have checked my IAM role attached to the service account has the following permissions, let me know if I need to add more permissions:
Copy code
{
  "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"
      ]
    }
  ]
}
k
A message from kapa.ai
Your IAM policy covers the basic S3 actions (
s3: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:
Copy code
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.
m
@kapa.ai After updating the permissions, when checked the logs for the source pod got the following:
Copy code
Error 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:
Copy code
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)
k
A message from kapa.ai
The error you are seeing:
Copy code
io.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).
m
@kapa.ai Everything looks fine to me. In my prod environment on a different AWS account, I have provided the same permissions, and replication jobs are running fine. The only difference between both environments is the underlay OS image in prod, I am using AL2, whereas in the staging environment using AL2023, where the current issue is.
k
A message from kapa.ai
Based on the knowledge sources, there is clear evidence that changing the underlying OS image from Amazon Linux 2 (AL2) to Amazon Linux 2023 (AL2023) can introduce issues with Airbyte on EKS, particularly around authentication and pod behavior. Multiple users have reported that after changing the node OS (for example, from AL2 to AL2023), Airbyte jobs that previously worked began to fail with S3 authentication errors, such as "The provided token is malformed or otherwise invalid." These issues were not present when using AL2, even with identical IAM roles and permissions. The root cause appears to be related to how the new OS image handles IAM token injection, service account mounting, or other subtle differences in the Kubernetes runtime environment on AL2023 nodes. This is consistent with your observation that the only difference between your working production environment and the failing staging environment is the node OS version [see related discussion](https://github.com/airbytehq/airbyte/issues/44581). The knowledge sources do not provide a definitive fix for this issue, but they do confirm that such problems have been observed after switching to AL2023. If everything else (IAM, service account, Airbyte version, configuration) is the same, the OS image is the most likely cause. Summary: Your issue is likely caused by incompatibility or a change in behavior introduced by Amazon Linux 2023. The knowledge sources confirm that similar S3 authentication/token issues have been reported after switching from AL2 to AL2023, even when all other settings are identical. If possible, try reverting your staging environment to AL2 to confirm this is the root cause. If the issue is resolved, you may need to wait for an upstream fix or further compatibility updates from Airbyte or AWS for AL2023 support. If you need to run on AL2023, you may want to open an issue with Airbyte or monitor existing issues for updates regarding AL2023 compatibility.