I am getting below same eror when trying to create...
# replication-ask-ai
a
I am getting below same eror when trying to create airyte connection and also getting same error when trying to retesting the saved source
k
HTTP 502 Error When Testing Airbyte Source Based on your screenshot, you're seeing "Airbyte is temporarily unavailable. Please try again. (HTTP 502)" when testing a Postgres source (v3.8.1) in Airbyte. This is a known issue with self-hosted Airbyte (abctl/Kubernetes deployments). The root cause is typically that the
WORKLOAD_API_BEARER_TOKEN
is mismatched between the Worker and Workload API Server pods, causing Workload API calls to be rejected with a 401 Unauthorized error internally. Workaround / Fix 1. *Find your container ID:*docker ps 2. *Enter the container:*docker exec -it containerID bash 3. *Inside the container, run the following:*# Check current pod status kubectl -n airbyte-abctl get pods # Generate and apply matching auth tokens 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 Some users also needed to apply the token to the server deployment as well:
Copy code
kubectl -n airbyte-abctl set env deployment/airbyte-abctl-server WORKLOAD_API_BEARER_TOKEN=$BEARER_TOKEN
kubectl -n airbyte-abctl rollout restart deploy/airbyte-abctl-server
[GitHub Issue #65567; GitHub Issue #66692] After the rollout completes, retry testing your Postgres source. Multiple users have confirmed this resolves the 502 error. [GitHub Issue #66692] 👍 0 button 👎 0 button â„šī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.