Hi. I was successfully using Airbyte version 1.8.4...
# replication-troubleshooting
a
Hi. I was successfully using Airbyte version 1.8.4. Today I upgraded to 2.0.1 and now I get
Airbyte is temporarily unavailable. Please try again. (HTTP 502)
when trying to retest a previously working source. From the pods view, the control-plane looks healthy; everything is shown as Running. Going through the server.log I can see the contents shown below, but SSH Tunnel Method is set to "No Tunnel" in the source definition, and the JSON also reflects this.
Copy code
JSON schema validation failed.
errors: $.tunnel_method: must be the constant value 'SSH_KEY_AUTH',
required property 'tunnel_host' not found,
required property 'tunnel_port' not found,
required property 'tunnel_user' not found,
required property 'ssh_key' not found
Source JSON:
Copy code
"tunnel_method": { "tunnel_method": "NO_TUNNEL" }
What could the issue be please?
k
Based on the knowledge sources, this appears to be a known issue related to authentication token configuration in Airbyte, particularly affecting version 1.8.3 and potentially other versions around that time. The [GitHub issue #66692](https://github.com/airbytehq/airbyte/issues/66692) describes a very similar problem where users encountered "Airbyte is temporarily unavailable. Please try again. (HTTP 502)" errors when configuring sources and destinations. The issue was resolved by manually setting authentication tokens between the worker and workload-api-server services. Here's the solution that worked for users experiencing this issue: 1. Find your container ID:
Copy code
bash docker ps
2. Access the container:
Copy code
bash docker exec -it <containerID> bash
3. Inside the container, generate and apply matching auth tokens:
Copy code
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-server
Additionally, the [breaking changes documentation](https://docs.airbyte.com/release_notes/breaking-changes) notes that upgrading from 1.8.x to 2.0.x requires abctl version 0.30.2 or later if you deploy with abctl. Make sure you've upgraded abctl before deploying Airbyte version 2.0. The JSON schema validation error you're seeing about SSH tunnel configuration appears to be a symptom of the underlying authentication issue rather than an actual configuration problem with your source.
a
@kapa.ai I tried the approach you suggested *(*generate and apply matching auth tokens) but I still get the error
Airbyte is temporarily unavailable. Please try again. (HTTP 502)
k
A message from kapa.ai
I'm sorry to hear that the token reset did not resolve your issue. Based on the knowledge sources, there are a few additional points and observations: 1. Widespread 502 Errors After Upgrade: Multiple users have reported persistent HTTP 502 errors after upgrading Airbyte, even when the pods appear healthy and the UI is accessible. This has affected various connectors (MySQL, CSV, Postgres, ClickHouse, etc.), and sometimes occurs even on fresh installs or when following the official quickstart guide exactly. In some cases, only one Docker container appears to be running, which may indicate that not all required services are up and running, or that something inside the main container is not starting correctly [Problem with source and destination configuration on version 1.8.3](https://github.com/airbytehq/airbyte/issues/66692). 2. Pod/Service Health: Even if pods are "Running," it's possible that some internal services (like the workload launcher or job pods) are not functioning as expected. There are reports of job pods not being launched after upgrades, especially if there are issues with dataplane group IDs or other internal state mismatches [airbyte services stuck where no new job pods are launched](https://github.com/airbytehq/airbyte/issues/68115). 3. Dataplane Group Mismatch (for 2.0+): After upgrading to 2.0, some users found that jobs were being pushed to one dataplane group, but the workload launcher was listening to another. The workaround was to update the correct
dataplane_group_id
in the
workspace
table of the Airbyte database. This is a more advanced fix and should be approached with caution, but it has resolved similar issues for others [airbyte services stuck where no new job pods are launched](https://github.com/airbytehq/airbyte/issues/68115). 4. Connector JSON Schema Validation: The JSON schema validation error regarding
tunnel_method
(expecting
SSH_KEY_AUTH
but set to
NO_TUNNEL
) has been seen before, and sometimes relates to connector version mismatches or issues with how the configuration is parsed after an upgrade. In some cases, deleting and recreating the source/destination resolved the issue, especially if the connector spec changed between versions [MySQL to Postgres Sync have started failing](https://discuss.airbyte.io/t/3258). Next Steps: - Check All Required Services: Ensure that all Airbyte services/containers are running, not just the control plane. If using Docker, you should see multiple containers (not just one). If using Kubernetes, check that all deployments and pods are healthy. - Try Recreating the Source: Delete and recreate the problematic source and connection. This can help if the connector spec or configuration format changed between versions. - Check for Dataplane Group Issues (if on 2.0+): If you upgraded to 2.0.x, check the
dataplane_group_id
in your Airbyte database as described above. Jobs may be routed incorrectly if this is mismatched. - Review Logs for More Clues: Look for errors in the logs of the worker, workload API server, and job pods (not just the control plane). Sometimes the root cause is only visible there. If none of these steps resolve the issue, the knowledge sources do not provide a definitive fix beyond what has already been suggested. You may need to open a new issue with detailed logs and your configuration for further assistance from the Airbyte team. Let me know if you need more specific instructions on any of these steps.