Tried using MySQL CLI from airbyte ec2 it's workin...
# replication-troubleshooting
b
Tried using MySQL CLI from airbyte ec2 it's working fine. And did some r&d and found that below error [workflow-method-check_deb66282-5c6c-40e0-a5ce-fe9404d2454b-0198f578-1808-73f6-ade2-d6f66d8c45da] WARN i.t.i.s.WorkflowExecutionHandler(throwAndFailWorkflowExecution):188 - Workflow execution failure WorkflowId='check_deb66282-5c6c-40e0-a5ce-fe9404d2454b', RunId=0198f578-1808-73f6-ade2-d6f66d8c45da, WorkflowType='ConnectorCommandWorkflow' io.temporal.failure.ActivityFailure: Activity with activityType='StartCommand' failed: 'Activity task failed'. scheduledEventId=5, startedEventId=6, activityId=1f558a1e-4531-3699-b744-b0d5c118a71f, identity='1@airbyte-abctl-worker-654775d45-b8lwp', retryState=RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED at java.base/java.lang.Thread.getStackTrace(Thread.java:2451) at io.temporal.internal.sync.ActivityStubBase.execute(ActivityStubBase.java:49) at io.temporal.internal.sync.ActivityInvocationHandler.lambda$getActivityFunc$0(ActivityInvocationHandler.java:83) at io.temporal.internal.sync.ActivityInvocationHandlerBase.invoke(ActivityInvocationHandlerBase.java:68) at jdk.proxy2/jdk.proxy2.$Proxy104.startCommand(Unknown Source) at io.airbyte.workers.temporal.workflows.ConnectorCommandWorkflowImpl.run(ConnectorCommandWorkflow.kt:255) at ConnectorCommandWorkflowImplProxy.run$accessor$sW30dVFl(Unknown Source) at ConnectorCommandWorkflowImplProxy$auxiliary$stJ4FjXD.call(Unknown Source) at io.airbyte.micronaut.temporal.TemporalActivityStubInterceptor.execute(TemporalActivityStubInterceptor.kt:72) at ConnectorCommandWorkflowImplProxy.run(Unknown Source) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at io.temporal.internal.sync.POJOWorkflowImplementationFactory$POJOWorkflowImplementation$RootWorkflowInboundCallsInterceptor.execute(POJOWorkflowImplementationFactory.java:426) at io.temporal.internal.sync.POJOWorkflowImplementationFactory$POJOWorkflowImplementation.execute(POJOWorkflowImplementationFactory.java:374) at io.temporal.internal.sync.WorkflowExecutionHandler.runWorkflowMethod(WorkflowExecutionHandler.java:71) at io.temporal.internal.sync.SyncWorkflow.lambda$start$0(SyncWorkflow.java:144) at io.temporal.internal.sync.CancellationScopeImpl.run(CancellationScopeImpl.java:103) at io.temporal.internal.sync.WorkflowThreadImpl$RunnableWrapper.run(WorkflowThreadImpl.java:107) at io.temporal.worker.ActiveThreadReportingExecutor.lambda$submit$0(ActiveThreadReportingExecutor.java:54) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: io.temporal.failure.ApplicationFailure: message='io.airbyte.api.client.ApiException: Unauthorized', type='java.lang.RuntimeException', nonRetryable=false at io.airbyte.workers.sync.WorkloadClient.createWorkload(WorkloadClient.kt:54) at io.airbyte.workers.commands.WorkloadCommandBase.start(WorkloadCommandBase.kt:27) at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.startCommand$lambda$0(ConnectorCommandWorkflow.kt:142) at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.withInstrumentation$lambda$5(ConnectorCommandWorkflow.kt:200) at io.airbyte.commons.timer.Stopwatch.time(Stopwatch.kt:45) at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.withInstrumentation(ConnectorCommandWorkflow.kt:200) at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.withInstrumentation$default(ConnectorCommandWorkflow.kt:170) at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.startCommand(ConnectorCommandWorkflow.kt:140) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at io.temporal.internal.activity.RootActivityInboundCallsInterceptor$POJOActivityInboundCallsInterceptor.executeActivity(RootActivityInboundCallsInterceptor.java:64) at io.temporal.internal.activity.RootActivityInboundCallsInterceptor.execute(RootActivityInboundCallsInterceptor.java:43) at io.temporal.internal.activity.ActivityTaskExecutors$BaseActivityTaskExecutor.execute(ActivityTaskExecutors.java:107) at io.temporal.internal.activity.ActivityTaskHandlerImpl.handle(ActivityTaskHandlerImpl.java:124) at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handleActivity(ActivityWorker.java:290) at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:254) at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:217) at io.temporal.internal.worker.PollTaskExecutor.lambda$process$1(PollTaskExecutor.java:96) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: io.temporal.failure.ApplicationFailure: message='Unauthorized', type='io.airbyte.api.client.ApiException', nonRetryable=false at io.airbyte.workload.api.client.WorkloadApiClient.unit(WorkloadApiClient.kt:405) at io.airbyte.workload.api.client.WorkloadApiClient.workloadCreate(WorkloadApiClient.kt:50) at io.airbyte.workers.sync.WorkloadClient.createWorkload(WorkloadClient.kt:44) ... 20 common frames omitted
k
It looks like the connector “check” is failing before it even reaches MySQL. The stack trace shows the Temporal workflow failing when trying to start a ConnectorCommand because the Workload API returns Unauthorized (HTTP 401). This typically indicates the Airbyte worker cannot authenticate to the internal Workload API (not a problem with your MySQL credentials). Similar symptoms have been reported when: - The Airbyte worker/workload launcher lost or lacks permissions/credentials to call the Kubernetes API or Workload API, resulting in 401/Unauthorized during pod creation/start (e.g., after upgrades or token/secret changes) ([Running the launcher… Unauthorized](https://github.com/airbytehq/airbyte/issues/39512), [source-mysql connect after upgrade](https://github.com/airbytehq/airbyte/issues/45359)). - “RunWithJobOutput”/workload tasks fail with Unauthorized at the platform layer, not the connector, causing all checks to fail ([Airbyte platform - Failing activity “RunWithJobOutput”](https://github.com/airbytehq/airbyte/issues/45185)). What to check/try: - If running on Kubernetes, verify the Airbyte pods have valid service account/RBAC and can PATCH/CREATE pods and call the workload service; 401s there will block checks and syncs until fixed ([Unauthorized during pod ops](https://github.com/airbytehq/airbyte/issues/39512)). - If you recently upgraded or rotated secrets, ensure the API/auth tokens used by the worker to call the Workload API are current and mounted correctly; in some cases a clean helm uninstall/install (with externalized Postgres/storage) restored proper auth wiring ([same issue discussion](https://github.com/airbytehq/airbyte/issues/39512), [post-upgrade auth errors](https://github.com/airbytehq/airbyte/issues/45359)). - Confirm the Workload API endpoint and auth interceptors are configured (the stack shows AirbyteAuthHeaderInterceptor/WorkloadApiAuthenticationInterceptor around the failing call) ([after upgrade trace](https://github.com/airbytehq/airbyte/issues/45359)). Because the failure is “Unauthorized” at Workload API level, CLI success to MySQL from EC2 doesn’t affect this path. Once the platform auth/RBAC is fixed, the check should proceed to validate the MySQL connection.
b
How to check and Confirm the Workload API endpoint and auth interceptors are configured (the stack shows
@kapa.ai How to check and Confirm the Workload API endpoint and auth interceptors are configured
k
A message from kapa.ai
I’m sorry, but the knowledge sources don’t provide a step-by-step procedure to “check and confirm” the Workload API endpoint and auth interceptors configuration. They do, however, show what a correctly wired workload pod/initContainer typically looks like and common auth symptoms: - Workload init containers reference WORKLOAD_API_HOST (e.g., http://airbyte-workload-api-server-svc:8007) and carry a WORKLOAD_API_BEARER_TOKEN from the airbyte-airbyte-secrets secret. You can inspect a running/failed workload pod spec to verify these env vars are present and correctly set (look under initContainers → env, and confirm the secret mount). Example pod specs in issues show these fields and values for reference (WORKLOAD_API_HOST, WORKLOAD_API_BEARER_TOKEN, AIRBYTE_API_AUTH_HEADER_NAME/Value) ([EKS 1.2.0 example](https://github.com/airbytehq/airbyte/issues/48809), [Helm 1.3.0 example](https://github.com/airbytehq/airbyte/issues/50979)). - If you see Unauthorized in Temporal stack traces around AirbyteAuthHeaderInterceptor or WorkloadApiAuthenticationInterceptor, it indicates the worker’s auth to the Workload API is failing, not the connector itself ([Unauthorized traces post-upgrade](https://github.com/airbytehq/airbyte/issues/45359), [Unauthorized/heartbeat failures](https://github.com/airbytehq/airbyte/issues/44474)). Minimal checks you can perform based on the above examples: - kubectl describe/get the workload pod created for a “check” and verify: - WORKLOAD_API_HOST points to the workload API service (e.g., airbyte-workload-api-server-svc:8007). - WORKLOAD_API_BEARER_TOKEN is sourced from secret airbyte-airbyte-secrets and the secret exists. - AIRBYTE_API_AUTH_HEADER_NAME/Value are present if your deployment sets them (varies by version) ([Helm 1.3.0 example](https://github.com/airbytehq/airbyte/issues/50979), [EKS 1.2.0 example](https://github.com/airbytehq/airbyte/issues/48809)). - kubectl logs the workload init container to see if it can reach WORKLOAD_API_HOST or if it returns 401. The Unauthorized message around those interceptors confirms the auth path is what’s failing ([Unauthorized trace](https://github.com/airbytehq/airbyte/issues/45359), [heartbeat Unauthorized](https://github.com/airbytehq/airbyte/issues/44474)). If these env vars or secrets are missing/mismatched, fix the secret and redeploy so the worker/init containers get the correct token and host. If the service endpoint is wrong/unreachable, update the service/config so the DNS name resolves and the port is open.