loganeales
10/01/2025, 1:56 PMabctl local install \
--chart-version 1.8.3 \
--host <> \
--low-resource-mode
Error observed:
• Pod affected: airbyte-abctl-workload-launcher
• Pod status: CrashLoopBackOff
• Log highlights:
Unsetting empty environment variable 'AIRBYTE_URL'
Unsetting empty environment variable 'VERSION'
...
io.airbyte.api.client.ApiException: Unauthorized
Failed to retrieve and resume claimed workloads, exiting.
• Result:
◦ Critical environment variables (AIRBYTE_URL, VERSION, etc.) were not injected.
◦ Launcher failed to authenticate to the workload-api-server, producing Unauthorized errors.
◦ Upgrade aborted with:
ERROR Failed to install airbyte/airbyte Helm Chart
ERROR Unable to install Airbyte locally
ERROR unable to install airbyte chart: unable to install helm: context canceled
what happened and why? and how to correct?kapa.ai
10/01/2025, 1:57 PMairbyte-abctl-workload-launcher pod is failing with a CrashLoopBackOff status. The logs show that critical environment variables like AIRBYTE_URL and VERSION are not being injected, and the launcher is unable to authenticate to the workload API server, resulting in Unauthorized errors. 2. Root Cause: Secret/Token or Env Injection Failure This pattern matches known issues in recent Airbyte upgrades where: - Secrets (such as bearer tokens for the workload API server) are missing or not properly injected. - Environment variables required by the workload launcher are not set, often due to issues with Helm chart upgrades, secret management, or order of environment variables in the deployment spec. - The workload launcher cannot authenticate because the WORKLOAD_API_BEARER_TOKEN is missing or not synchronized between the API server and the worker/launcher pods. These issues have been reported in several GitHub issues, especially when upgrading Airbyte with abctl and Helm, leading to unauthorized errors and failed pod startups. The missing or mismatched secrets prevent the workload launcher from communicating with the API server, causing the observed failures and aborting the upgrade process with a Helm context cancellation error [[source]](https://github.com/airbytehq/airbyte/issues/65574). ### How to correct? #### 1. Manually Patch the Bearer Token Secret If the WORKLOAD_API_BEARER_TOKEN secret is missing or out of sync, you can manually recreate it and inject it into the relevant deployments. Here’s a workaround that has helped others resolve similar issues: bash KUBECONFIG="${HOME}/.airbyte/abctl/abctl.kubeconfig" NAMESPACE="airbyte-abctl" SECRET_NAME="airbyte-abctl-workload-api-secrets" WORKLOAD_TOKEN=$(openssl rand -hex 32) kubectl delete secret "$SECRET_NAME" -n "$NAMESPACE" --ignore-not-found --kubeconfig "$KUBECONFIG" kubectl create secret generic "$SECRET_NAME" \ --from-literal=bearer-token="$WORKLOAD_TOKEN" \ -n "$NAMESPACE" \ --kubeconfig "$KUBECONFIG" kubectl set env deploy/airbyte-abctl-workload-api-server \ -n "$NAMESPACE" \ WORKLOAD_API_BEARER_TOKEN="$WORKLOAD_TOKEN" \ --kubeconfig "$KUBECONFIG" kubectl set env deploy/airbyte-abctl-worker \ -n "$NAMESPACE" \ WORKLOAD_API_BEARER_TOKEN="$WORKLOAD_TOKEN" \ --kubeconfig "$KUBECONFIG" kubectl rollout restart deploy/airbyte-abctl-workload-api-server -n "$NAMESPACE" --kubeconfig "$KUBECONFIG" kubectl rollout restart deploy/airbyte-abctl-worker -n "$NAMESPACE" --kubeconfig "$KUBECONFIG" This will synchronize the bearer token between the API server and the worker/launcher pods, allowing authentication to succeed and the pods to start properly [[source]](https://github.com/airbytehq/airbyte/issues/65574). #### 2. If the Issue Persists: - Try uninstalling and reinstalling Airbyte from scratch, as some users have reported that a clean install resolves the issue, though this is not always reliable [[source]](https://github.com/airbytehq/airbyte/issues/65129). - If you are blocked by Helm chart or environment variable order issues, consider downgrading to a previous working chart version (e.g., 1.7.2) as a temporary workaround [[source]](https://github.com/airbytehq/airbyte/issues/65129). #### 3. Monitor for Upstream Fixes - These issues are actively being discussed and tracked by the Airbyte team. Watch for new releases or patches that address secret and environment variable injection problems in the Helm charts and abctl [[source]](https://github.com/airbytehq/airbyte/issues/65574). --- Summary: The upgrade failed because the workload launcher could not authenticate to the API server due to missing or unsynchronized secrets and environment variables. Manually patching the WORKLOAD_API_BEARER_TOKEN secret and restarting the affected deployments should resolve the issue. If not, consider a clean reinstall or temporary downgrade until a permanent fix is released.loganeales
10/01/2025, 2:02 PMkapa.ai
10/01/2025, 2:02 PMkapa.ai
10/01/2025, 2:02 PMabctl local install to upgrade Airbyte. Helm commands and values.yaml modifications are only necessary if you are managing your deployment directly with Helm, not with abctl [[Upgrading Airbyte](https://docs.airbyte.com/platform/operator-guides/upgrading-airbyte)]. Summary: - Skipping patch versions is not documented as a cause of your issue. - When using abctl, you do not need to perform any additional Helm upgrade steps; abctl handles this for you. If you need further confirmation or run into issues, always consult the latest Airbyte documentation or open an issue with the Airbyte team.loganeales
10/01/2025, 2:05 PMsh-4.2$ abctl local install \
> --chart-version 1.8.3 \
> --host val-aws-airbyte-ab-test.valentureinstitute.com \
> --low-resource-mode
INFO Using Kubernetes provider:
Provider: kind
Kubeconfig: /home/ssm-user/.airbyte/abctl/abctl.kubeconfig
Context: kind-airbyte-abctl
SUCCESS Found Docker installation: version 25.0.8
SUCCESS Existing cluster 'airbyte-abctl' found
SUCCESS Cluster 'airbyte-abctl' validation complete
INFO Patching image airbyte/db:1.7.0-17
INFO Pulling image airbyte/cron:1.8.3
INFO Pulling image airbyte/db:1.7.0-17
INFO Pulling image airbyte/server:1.8.3
INFO Pulling image airbyte/worker:1.8.3
INFO Pulling image airbyte/workload-api-server:1.8.3
INFO Pulling image airbyte/workload-launcher:1.8.3
INFO Pulling image temporalio/auto-setup:1.27.2
INFO Namespace 'airbyte-abctl' already exists
INFO Persistent volume 'airbyte-local-pv' already exists
INFO Persistent volume claim 'airbyte-storage-pvc' already exists
INFO Persistent volume 'airbyte-volume-db' already exists
INFO Persistent volume claim 'airbyte-volume-db-airbyte-db-0' already exists
INFO Starting Helm Chart installation of 'airbyte/airbyte' (version: 1.8.3)
WARNING Encountered an issue deploying Airbyte:
Pod: airbyte-abctl-workload-launcher-67696d4cd7-dwqgq.186a61634a627f1c
Reason: BackOff
Message: Back-off restarting failed container airbyte-workload-launcher-container in pod airbyte-abctl-workload-launcher-67696d4cd7-dwqgq_airbyte-abctl(d842e026-08bc-44ae-af75-b6ebbc44c66d)
Count: 6
Logs: Unsetting empty environment variable 'RUNNING_TTL_MINUTES'
Unsetting empty environment variable 'ACTIVITY_MAX_DELAY_BETWEEN_ATTEMPTS_SECONDS'
Unsetting empty environment variable 'AIRBYTE_URL'
Unsetting empty environment variable 'PUB_SUB_TOPIC_NAME'
Unsetting empty environment variable 'OTEL_COLLECTOR_ENDPOINT'
Unsetting empty environment variable 'JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET'
Unsetting empty environment variable 'ACTIVITY_MAX_ATTEMPT'
Unsetting empty environment variable 'JOB_KUBE_CONNECTOR_IMAGE_REGISTRY'
Unsetting empty environment variable 'VERSION'
Unsetting empty environment variable 'WORKFLOW_FAILURE_RESTART_DELAY_SECONDS'
Unsetting empty environment variable 'SECRET_PERSISTENCE'
Unsetting empty environment variable 'KUBERNETES_CLIENT_MAX_IDLE_CONNECTIONS'
Unsetting empty environment variable 'S3_PATH_STYLE_ACCESS'
Unsetting empty environment variable 'ACTIVITY_INITIAL_DELAY_BETWEEN_ATTEMPTS_SECONDS'
___ _ __ __
/ | (_)____/ /_ __ __/ /____
/ /| | / / ___/ __ \/ / / / __/ _ \
/ ___ |/ / / / /_/ / /_/ / /_/ __/
/_/ |_/_/_/ /_.___/\__, /\__/\___/
/____/
: airbyte-workload-launcher :
2025-10-01 13:35:39,055 [main] INFO i.m.c.e.DefaultEnvironment(<init>):170 - Established active environments: [control-plane, oss]
2025-10-01 13:35:39,853 [main] INFO c.z.h.HikariDataSource(<init>):79 - config-pool - Starting...
2025-10-01 13:35:39,885 [main] INFO c.z.h.HikariDataSource(<init>):81 - config-pool - Start completed.
2025-10-01 13:35:40,085 [main] INFO i.m.l.PropertiesLoggingLevelsConfigurer(configureLogLevelForPrefix):113 - Setting log level 'INFO' for logger: 'io.netty'
2025-10-01 13:35:40,086 [main] INFO i.m.l.PropertiesLoggingLevelsConfigurer(configureLogLevelForPrefix):113 - Setting log level 'ERROR' for logger: 'com.zaxxer.hikari'
2025-10-01 13:35:40,086 [main] INFO i.m.l.PropertiesLoggingLevelsConfigurer(configureLogLevelForPrefix):113 - Setting log level 'INFO' for logger: 'io.grpc'
2025-10-01 13:35:40,087 [main] INFO i.m.l.PropertiesLoggingLevelsConfigurer(configureLogLevelForPrefix):113 - Setting log level 'ERROR' for logger: 'com.zaxxer.hikari.pool'
2025-10-01 13:35:40,088 [main] INFO i.m.l.PropertiesLoggingLevelsConfigurer(configureLogLevelForPrefix):113 - Setting log level 'INFO' for logger: 'io.fabric8.kubernetes.client'
2025-10-01 13:35:41,044 [scheduled-executor-thread-2] INFO i.a.w.l.PodSweeper(sweepPods):56 - Starting pod sweeper cycle in namespace [airbyte-abctl]...
2025-10-01 13:35:41,087 [scheduled-executor-thread-2] INFO i.a.w.l.PodSweeper(sweepPods):67 - Will sweep Succeeded pods older than 2025-10-01T13:25:41.045Z (UTC).
2025-10-01 13:35:41,089 [scheduled-executor-thread-2] INFO i.a.w.l.PodSweeper(sweepPods):70 - Will sweep unsuccessful pods older than 2025-10-01T11:35:41.045Z (UTC).
2025-10-01 13:35:42,503 [scheduled-executor-thread-1] INFO i.a.f.ConfigFileClient(<init>):150 - path /flags does not exist, will return default flag values
2025-10-01 13:35:42,701 [scheduled-executor-thread-1] INFO i.a.w.l.p.c.WorkloadApiQueueConsumer(initialize):39 - Initializing ApiQueueConsumer for f9c23c54-e19f-403d-aadf-8b56f929a506
2025-10-01 13:35:42,710 [scheduled-executor-thread-1] INFO i.a.w.l.p.c.WorkloadApiQueuePoller(initialize):53 - Initalizing ApiQueuePoller with f9c23c54-e19f-403d-aadf-8b56f929a506 and default
2025-10-01 13:35:42,754 [scheduled-executor-thread-1] INFO i.a.w.l.p.c.WorkloadApiQueuePoller(initialize):53 - Initalizing ApiQueuePoller with f9c23c54-e19f-403d-aadf-8b56f929a506 and high
2025-10-01 13:35:42,756 [main] INFO i.a.w.l.a.DataplaneIdentityService(initialize):53 - Running as 27442666-d2c9-4314-bd4d-7bd0ea612fdb (AUTO) for AUTO
2025-10-01 13:35:42,766 [main] INFO i.m.r.Micronaut(start):101 - Startup completed in 4851ms. Server Running: http://airbyte-abctl-workload-launcher-67696d4cd7-dwqgq:8016
2025-10-01 13:35:42,768 [Thread-2] INFO i.a.w.l.ClaimedProcessor(getWorkloadList):91 - requesting workload list: WorkloadListRequest(dataplane=[27442666-d2c9-4314-bd4d-7bd0ea612fdb], status=[claimed], updatedBefore=null)
2025-10-01 13:35:43,269 [scheduled-executor-thread-2] INFO i.a.w.l.PodSweeper(sweepPods):134 - Completed pod sweeper cycle.
2025-10-01 13:35:43,414 [Thread-2] ERROR i.a.w.l.StartupApplicationEventListener(onApplicationEvent$lambda$1):43 - Failed to retrieve and resume claimed workloads, exiting.kapa.ai
10/01/2025, 2:05 PMkapa.ai
10/01/2025, 2:06 PMairbyte-abctl-workload-launcher pod is repeatedly restarting (BackOff), and the logs show many environment variables being unset because they are empty, including critical ones like AIRBYTE_URL and VERSION. - The launcher starts up, but when it tries to retrieve and resume claimed workloads, it fails with an error: Failed to retrieve and resume claimed workloads, exiting. - The upgrade process aborts with: ERROR Failed to install airbyte/airbyte Helm Chart ERROR Unable to install Airbyte locally ERROR unable to install airbyte chart: unable to install helm: context canceled ### What the Knowledge Sources Say - Missing Environment Variables: Multiple issues report that missing or empty environment variables in Airbyte pods (especially after upgrades) are a common cause of pod failures. This is often due to problems with how secrets and config maps are injected during the Helm chart upgrade process, especially when using abctl [[source]](https://github.com/airbytehq/airbyte/issues/65129). - Authentication/Secret Issues: The error about failing to retrieve workloads and the Unauthorized error in your earlier message are consistent with known issues where secrets (such as bearer tokens) are missing or not synchronized between the workload API server and the launcher/worker pods. This leads to authentication failures and pod crashes [[source]](https://github.com/airbytehq/airbyte/issues/65574). - No Evidence of Patch Skipping Being the Cause: There is no evidence in the knowledge sources that skipping patch versions (e.g., upgrading directly from 1.7.0 to 1.8.3) is the cause of this issue. The root cause is consistently related to environment variable and secret injection problems during the upgrade process. ### Conclusion Your issue is caused by missing or empty environment variables and likely unsynchronized or missing secrets (such as the workload API bearer token), not by skipping patch versions. This is a known problem with some recent Airbyte upgrades using abctl and the Helm chart, as documented in the issues above. ### What to Do - Manually synchronize the secrets as described in the previous answer. This has resolved similar issues for other users. - If the problem persists, consider a clean uninstall and reinstall, or temporarily downgrade to a previous working chart version as a workaround [[source]](https://github.com/airbytehq/airbyte/issues/65129). If you need more detailed steps for the secret synchronization workaround, let me know.loganeales
10/01/2025, 2:27 PMabctl local install to upgrade from 1.7.0 to 1.8.3 on a self-managed EC2 instance, why is the workload-launcher deployed without required envs like AIRBYTE_URL, VERSION, and WORKLOAD_API_BEARER_TOKEN? Is this a known issue with abctl v0.30.0/0.30.1 not rendering the Helm values correctly for chart v2, and should we instead upgrade abctl or pass explicit flags to populate these values?"kapa.ai
10/01/2025, 2:27 PMkapa.ai
10/01/2025, 2:27 PMabctl local install from 1.7.0 to 1.8.3 on a self-managed EC2 instance, the issue where the workload-launcher is deployed without required environment variables like AIRBYTE_URL, VERSION, and WORKLOAD_API_BEARER_TOKEN is a known problem. This is evidenced by multiple user reports and GitHub issues, where critical environment variables are missing after an upgrade, leading to pod failures and authentication errors (such as Unauthorized when the launcher tries to communicate with the workload API server) [[Helm chart broken with abctl 0.30.1](https://github.com/airbytehq/airbyte/issues/65129)]. The root cause appears to be related to how abctl (specifically versions 0.30.0 and 0.30.1) interacts with the Helm chart and renders values, particularly for chart v2. The environment variables and secrets are not always correctly injected into the pods, resulting in empty or missing values. This is not due to skipping patch versions, but rather an issue with the upgrade process and how abctl manages Helm values and secrets [[abctl local install fails: Helm patch Deployment error due to env var order mismatch ($setElementOrder)](https://github.com/airbytehq/airbyte/issues/60918)]. Recommended actions based on the knowledge sources: - Upgrading abctl: There is no explicit documentation stating that upgrading abctl alone will resolve this, but keeping abctl up to date is recommended as fixes may be released in newer versions [[Upgrading Airbyte](https://docs.airbyte.com/platform/operator-guides/upgrading-airbyte)]. - Explicit flags: The knowledge sources do not mention that passing explicit flags to abctl local install will resolve the missing environment variables issue. - Workaround: The most reliable workaround reported is to manually synchronize the required secrets (such as WORKLOAD_API_BEARER_TOKEN) between the API server and the worker/launcher pods using kubectl, as described in user reports [[Helm chart broken with abctl 0.30.1](https://github.com/airbytehq/airbyte/issues/65129)]. Summary: Yes, this is a known issue with abctl v0.30.0/0.30.1 and the Helm chart upgrade process, not with skipping patch versions. Upgrading abctl may help if a fix has been released, but the primary workaround is to manually patch the missing secrets and environment variables. There is no evidence in the knowledge sources that passing explicit flags to abctl will resolve the issue.loganeales
10/01/2025, 2:51 PMkapa.ai
10/01/2025, 2:51 PMkapa.ai
10/01/2025, 2:52 PMWORKLOAD_API_BEARER_TOKEN) for your Airbyte deployment, you can follow the steps reported by users in the knowledge sources. This process ensures that the required token is present and synchronized between the workload API server and the worker/launcher pods. Below is a step-by-step guide, directly based on user-provided solutions in the knowledge sources: bash # Set your kubeconfig and namespace export KUBECONFIG="${HOME}/.airbyte/abctl/abctl.kubeconfig" export NAMESPACE="airbyte-abctl" export SECRET_NAME="airbyte-abctl-workload-api-secrets" # Generate a new bearer token WORKLOAD_TOKEN=$(openssl rand -hex 32) # Delete the old secret if it exists kubectl delete secret "$SECRET_NAME" -n "$NAMESPACE" --ignore-not-found --kubeconfig "$KUBECONFIG" # Create a new secret with the generated token kubectl create secret generic "$SECRET_NAME" \ --from-literal=bearer-token="$WORKLOAD_TOKEN" \ -n "$NAMESPACE" \ --kubeconfig "$KUBECONFIG" # Set the environment variable in the workload-api-server deployment kubectl set env deploy/airbyte-abctl-workload-api-server \ -n "$NAMESPACE" \ WORKLOAD_API_BEARER_TOKEN="$WORKLOAD_TOKEN" \ --kubeconfig "$KUBECONFIG" # Set the environment variable in the worker deployment kubectl set env deploy/airbyte-abctl-worker \ -n "$NAMESPACE" \ WORKLOAD_API_BEARER_TOKEN="$WORKLOAD_TOKEN" \ --kubeconfig "$KUBECONFIG" # Restart the deployments to apply changes kubectl rollout restart deploy/airbyte-abctl-workload-api-server -n "$NAMESPACE" --kubeconfig "$KUBECONFIG" kubectl rollout restart deploy/airbyte-abctl-worker -n "$NAMESPACE" --kubeconfig "$KUBECONFIG" This process will synchronize the WORKLOAD_API_BEARER_TOKEN secret and environment variable across the necessary deployments, which has been shown to resolve the missing env var and authentication issues in similar upgrade scenarios [[source](https://github.com/airbytehq/airbyte/issues/65574)]. Note: If you have other environment variables missing (like AIRBYTE_URL or VERSION), you may need to set them explicitly using kubectl set env in a similar fashion, but the knowledge sources specifically highlight the bearer token as the critical missing piece in these upgrade failures. If you continue to experience issues, please refer to the latest Airbyte documentation or open a support issue, as this is a known problem with certain abctl and chart versions.kapa.ai
10/02/2025, 8:15 AMkapa.ai
10/02/2025, 8:16 AMAIRBYTE_URL, VERSION, etc.) were not injected into the airbyte-abctl-workload-launcher pod, and the pod could not authenticate to the workload API server, resulting in Unauthorized errors and a CrashLoopBackOff state. This led to the upgrade process aborting with Helm errors. What happened and why? This is a known issue when upgrading Airbyte with abctl (especially v0.30.0/0.30.1) and Helm chart v2. The root cause is that required secrets and environment variables—most importantly, the `WORKLOAD_API_BEARER_TOKEN`—are not always correctly rendered and injected into the pods during the upgrade. As a result, the workload launcher cannot authenticate to the API server, and other required environment variables are left unset, causing the pod to fail and the upgrade to abort. This issue is documented in several GitHub issues and matches the symptoms you described ([Helm chart broken with abctl 0.30.1](https://github.com/airbytehq/airbyte/issues/65129), [abctl local install fails: Helm patch Deployment error due to env var order mismatch](https://github.com/airbytehq/airbyte/issues/60918)). How to correct? The recommended workaround is to manually synchronize the missing secrets and environment variables, especially the WORKLOAD_API_BEARER_TOKEN, between the workload API server and the worker/launcher pods. This can be done using kubectl commands to create or update the relevant Kubernetes secrets and set the environment variables in the affected deployments. Here is a user-verified approach: bash export KUBECONFIG="${HOME}/.airbyte/abctl/abctl.kubeconfig" export NAMESPACE="airbyte-abctl" export SECRET_NAME="airbyte-abctl-workload-api-secrets" WORKLOAD_TOKEN=$(openssl rand -hex 32) kubectl delete secret "$SECRET_NAME" -n "$NAMESPACE" --ignore-not-found --kubeconfig "$KUBECONFIG" kubectl create secret generic "$SECRET_NAME" \ --from-literal=bearer-token="$WORKLOAD_TOKEN" \ -n "$NAMESPACE" \ --kubeconfig "$KUBECONFIG" kubectl set env deploy/airbyte-abctl-workload-api-server \ -n "$NAMESPACE" \ WORKLOAD_API_BEARER_TOKEN="$WORKLOAD_TOKEN" \ --kubeconfig "$KUBECONFIG" kubectl set env deploy/airbyte-abctl-worker \ -n "$NAMESPACE" \ WORKLOAD_API_BEARER_TOKEN="$WORKLOAD_TOKEN" \ --kubeconfig "$KUBECONFIG" kubectl rollout restart deploy/airbyte-abctl-workload-api-server -n "$NAMESPACE" --kubeconfig "$KUBECONFIG" kubectl rollout restart deploy/airbyte-abctl-worker -n "$NAMESPACE" --kubeconfig "$KUBECONFIG" This process ensures the required token is present and synchronized, which should resolve the authentication and missing environment variable issues. If other environment variables are missing, you may need to set them explicitly in a similar way. If the issue persists, consider a clean reinstall or monitor for upstream fixes in newer abctl or chart releases. This workaround is directly based on user reports and Airbyte issue discussions and is the best-documented solution in the knowledge sources available to you ([Helm chart broken with abctl 0.30.1](https://github.com/airbytehq/airbyte/issues/65129)).