Ivan Barbosa Pinheiro
08/26/2025, 7:26 PMkapa.ai
08/26/2025, 7:27 PMAlbinas Plėšnys
08/26/2025, 7:36 PMAPI_AUTHORIZATION_ENABLED=true. In latest abctl deployments, these tokens either aren't set properly or get out of sync, especially after pod restarts.
I have several clients that I work with, and use Airbyte for them, so had to come up with a temporary workaround after digging in for what's happening.
The following approach worked for me - feel free to try:
# Set the kubeconfig environment variable
export KUBECONFIG=/root/.airbyte/abctl/abctl.kubeconfig
# Check if kubectl is installed
which kubectl || (curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/)
# Check current status
kubectl -n airbyte-abctl get pods
# Generate and apply matching auth tokens to both services
BEARER_TOKEN=$(openssl rand -hex 16)
echo "Generated token: $BEARER_TOKEN"
kubectl -n airbyte-abctl set env deployment/airbyte-abctl-worker \
WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN" \
INTERNAL_API_AUTH_TOKEN="$BEARER_TOKEN"
kubectl -n airbyte-abctl set env deployment/airbyte-abctl-workload-api-server \
WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN"
# Restart both services
kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-worker
kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-workload-api-server
# Wait for rollouts to complete
kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-worker
kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-workload-api-server
# Make the kubeconfig persistent
echo 'export KUBECONFIG=/root/.airbyte/abctl/abctl.kubeconfig' >> ~/.bashrc
Tell me if it works for you, then we can somehow pin it for others to find a way out.Albinas Plėšnys
08/26/2025, 7:37 PMYuvaraj Prem Kumar
08/26/2025, 9:16 PMAlbinas Plėšnys
08/26/2025, 9:23 PMworker:
env_vars:
WORKLOAD_API_BEARER_TOKEN: "your-token-here"
INTERNAL_API_AUTH_TOKEN: "your-token-here"
workload-api-server:
env_vars:
WORKLOAD_API_BEARER_TOKEN: "your-token-here" # same token
Just generate a token with openssl rand -hex 16 and use that same value in all three places.
Though if you're using the official Helm chart, check if there's already a secret handling this. Likely the chart is supposed to create and share a secret automatically but something's broken.Yuvaraj Prem Kumar
08/27/2025, 11:27 AM2025-08-27 11:21:35,506 [main] INFO i.a.w.i.VersionedAirbyteStreamFactory(internalLog$io_airbyte_airbyte_commons_worker):248 - INFO main i.a.c.i.b.IntegrationRunner(runInternal):224 Completed integration: io.airbyte.integrations.destination.snowflake.SnowflakeDestination
2025-08-27 11:21:35,507 [main] INFO i.a.w.i.VersionedAirbyteStreamFactory(internalLog$io_airbyte_airbyte_commons_worker):248 - INFO main i.a.c.i.b.a.AdaptiveDestinationRunner$Runner(run):69 Completed destination: io.airbyte.integrations.destination.snowflake.SnowflakeDestination
2025-08-27 11:21:35,508 [main] INFO i.a.c.ConnectorMessageProcessor(updateConfigFromControlMessage):267 - Checking for optional control message...
2025-08-27 11:21:35,509 [main] INFO i.a.c.ConnectorMessageProcessor(updateConfigFromControlMessage):289 - Optional control message not found. Skipping...
2025-08-27 11:21:35,510 [main] INFO i.a.c.ConnectorWatcher(saveConnectorOutput):168 - Writing output of 424892c4-daac-4491-b35d-c6688ba547ba_ef9db2e1-429d-40f9-b048-701bdbab70c2_0_check to the doc store
2025-08-27 11:21:35,839 [main] INFO i.a.c.ConnectorWatcher(markWorkloadSuccess):173 - Marking workload 424892c4-daac-4491-b35d-c6688ba547ba_ef9db2e1-429d-40f9-b048-701bdbab70c2_0_check as successful
2025-08-27 11:21:35,850 [main] ERROR i.a.c.ConnectorWatcher(handleException):182 - Error performing operation: io.airbyte.api.client.ApiException
io.airbyte.api.client.ApiException: Service Unavailable
at io.airbyte.workload.api.client.WorkloadApiClient.unit(WorkloadApiClient.kt:405)
at io.airbyte.workload.api.client.WorkloadApiClient.workloadSuccess(WorkloadApiClient.kt:54)
at io.airbyte.connectorSidecar.ConnectorWatcher.markWorkloadSuccess(ConnectorWatcher.kt:174)
at io.airbyte.connectorSidecar.ConnectorWatcher.run(ConnectorWatcher.kt:79)
at io.airbyte.connectorSidecar.ApplicationKt.main(Application.kt:22)
at io.airbyte.connectorSidecar.ApplicationKt.main(Application.kt)
2025-08-27 11:21:35,938 [main] INFO i.a.c.ConnectorWatcher(failWorkload):324 - Failing workload 424892c4-daac-4491-b35d-c6688ba547ba_ef9db2e1-429d-40f9-b048-701bdbab70c2_0_check.
2025-08-27 11:21:35,946 [main] INFO i.a.c.ConnectorWatcher(failWorkload):324 - Failing workload 424892c4-daac-4491-b35d-c6688ba547ba_ef9db2e1-429d-40f9-b048-701bdbab70c2_0_check.
2025-08-27 11:21:35,949 [main] INFO i.a.c.ConnectorWatcher(exitInternalError):236 - Deliberately exiting process with code 1.Albinas Plėšnys
08/27/2025, 1:45 PM# Check the namespace first
kubectl get namespaces | grep airbyte
Then use whatever namespace shows up (probably 'airbyte')
kubectl get pods -n airbyte | grep workload-api
# Check logs:
kubectl logs -n airbyte deployment/airbyte-workload-api-server --tail=20
# See if the service exists and has endpoints:
kubectl get svc -n airbyte | grep workload-api
kubectl get endpoints -n airbyte | grep workload-api
Could you then share the output with me?Ivan Barbosa Pinheiro
08/27/2025, 1:48 PMabctl local uninstall --persisted
abctl local install --chart-version 1.7.0Albinas Plėšnys
08/27/2025, 1:50 PMIvan Barbosa Pinheiro
08/27/2025, 1:52 PMAlbinas Plėšnys
08/27/2025, 1:56 PMIvan Barbosa Pinheiro
08/27/2025, 2:00 PMIvan Barbosa Pinheiro
08/27/2025, 2:00 PMAlbinas Plėšnys
08/27/2025, 2:08 PMsudo shutdown -h now (I believe CE interprets is as a graceful vm stop command), but if you've already configured pubsub for that, it might give you more info (depending on what you've set up and what metadata you need, collect etc)
Maybe a dumb question, but have you compared the pricing on running it on native kubernetes, scaling it close-to-0 down when not needed? Probably would be a bit pricier, but idk, would handle a potential scale up in heavier runs as well...Albinas Plėšnys
08/27/2025, 2:09 PMIvan Barbosa Pinheiro
08/27/2025, 2:10 PMIvan Barbosa Pinheiro
08/27/2025, 2:20 PMrazze
08/29/2025, 8:04 AMkubectl get namespaces
E0829 08:03:27.630321 28295 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
E0829 08:03:27.631938 28295 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
E0829 08:03:27.633446 28295 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
E0829 08:03:27.635008 28295 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
E0829 08:03:27.636477 28295 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
The connection to the server localhost:8080 was refused - did you specify the right host or port?razze
08/29/2025, 8:13 AM# Check if kubectl is installed
which kubectl || (curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/)
might have been unhealthyrazze
08/29/2025, 8:15 AMexport KUBECONFIG=/root/.airbyte/abctl/abctl.kubeconfigrazze
08/29/2025, 8:33 AMrazze
08/29/2025, 8:33 AMdocker ps
Find your container id
docker exec -it <containerID> bash
# Check current status
kubectl -n airbyte-abctl get pods
# Generate and apply matching auth tokens to both services
BEARER_TOKEN=$(openssl rand -hex 16)
echo "Generated token: $BEARER_TOKEN"
kubectl -n airbyte-abctl set env deployment/airbyte-abctl-worker \
WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN" \
INTERNAL_API_AUTH_TOKEN="$BEARER_TOKEN"
kubectl -n airbyte-abctl set env deployment/airbyte-abctl-workload-api-server \
WORKLOAD_API_BEARER_TOKEN="$BEARER_TOKEN"
# Restart both services
kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-worker
kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-workload-api-server
# Wait for rollouts to complete
kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-worker
kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-workload-api-serverYuvaraj Prem Kumar
08/29/2025, 8:52 AMYuvaraj Prem Kumar
08/29/2025, 8:53 AMSteve Calvário
09/02/2025, 4:21 PMBryce Groff
09/02/2025, 4:23 PMSteve Calvário
09/02/2025, 4:23 PMSteve Calvário
09/02/2025, 4:25 PMBryce Groff
09/02/2025, 4:25 PMairbyte-airbyte-env configmap (this might be named slightly different depending on your deploy). Something like: kubectl get cm -n ab airbyte-airbyte-env -o yaml | grep API_AUTHORIZATION_ENABLEDBryce Groff
09/02/2025, 4:26 PMrazze
09/02/2025, 4:26 PMBryce Groff
09/02/2025, 4:26 PMrazze
09/02/2025, 4:27 PMSteve Calvário
09/02/2025, 4:31 PMkubectl edit ingress ingress-abctl -n airbyte-abctl
# As mentioned on https://github.com/airbytehq/airbyte/issues/65539
# Replace "name: airbyte-abctl-airbyte-webapp-svc" with "name: airbyte-abctl-airbyte-server-svc"
On my deployment (airbyte-abctl-workload-api-server -n airbyte-abctl)
- name: WORKLOAD_API_BEARER_TOKEN
valueFrom:
secretKeyRef:
key: WORKLOAD_API_BEARER_TOKEN
name: airbyte-abctl-airbyte-secrets
- name: API_AUTHORIZATION_ENABLED
value: "true"
On my deployment (airbyte-abctl-workload-launcher -n airbyte-abctl)
- name: INTERNAL_API_AUTH_TOKEN
valueFrom:
secretKeyRef:
key: WORKLOAD_API_BEARER_TOKEN
name: airbyte-abctl-airbyte-secrets
- name: WORKLOAD_API_BEARER_TOKEN
valueFrom:
secretKeyRef:
key: WORKLOAD_API_BEARER_TOKEN
name: airbyte-abctl-airbyte-secrets
On my Ingress (ingress-abctl -n airbyte-abctl):
spec:
ingressClassName: nginx
rules:
- http:
paths:
- backend:
service:
name: airbyte-abctl-airbyte-connector-builder-server-svc
port:
name: http
path: /api/v1/connector_builder
pathType: Prefix
- backend:
service:
name: airbyte-abctl-airbyte-server-svc
port:
name: http
path: /
pathType: PrefixSteve Calvário
09/02/2025, 4:38 PMBryce Groff
09/02/2025, 4:39 PMSteve Calvário
09/02/2025, 4:41 PMYuvaraj Prem Kumar
09/02/2025, 5:19 PMAPI_AUTHORIZATION_ENABLED : true
Like others, I had to manually set the WORKLOAD_API_BEARER_TOKENSteve Calvário
09/03/2025, 8:48 AMYuvaraj Prem Kumar
09/03/2025, 9:34 AMBryce Groff
09/03/2025, 6:44 PMYuvaraj Prem Kumar
09/04/2025, 7:12 AMBryce Groff
10/02/2025, 8:45 PM