i'm getting the `Airbyte is temporarily unavailabl...
# ask-ai
e
i'm getting the
Airbyte is temporarily unavailable. Please try again. (HTTP 502)
error when testing a mysql source created using the API. what could be causing this?
k
The
Airbyte is temporarily unavailable. Please try again. (HTTP 502)
error when testing a MySQL source created via the API can be caused by several factors, based on the knowledge sources: 1. Internal Server or Proxy Issues: A 502 error generally indicates a problem with the Airbyte backend or its proxy, not necessarily with your MySQL configuration. This could be due to the Airbyte server, worker, or Temporal service being unavailable or overloaded. For example, issues with the Temporal service or worker pods not starting can result in 502 errors when testing connections or running syncs. High CPU usage or stuck containers (especially Temporal) have been reported to cause such symptoms in both Docker and Kubernetes deployments. Restarting the affected containers or ensuring sufficient resources may help resolve the issue [[Self-hosted Airbyte in Docker stuck and will not trigger sync](https://github.com/airbytehq/airbyte/issues/44833)]. 2. API vs. UI Configuration Differences: There have been cases where creating a source via the API with the same parameters as the UI results in a failing connection test, while the UI-created source works. This can be due to differences in how secrets or configurations are handled between the API and UI, or issues with secret hydration in the backend. The logs may show errors related to secret handling or internal errors during configuration checks [[Issue with Source Creation via API vs. UI Testing](https://github.com/airbytehq/airbyte/issues/45940)]. 3. Timeouts and Resource Limits: If the MySQL query or connection takes too long, Airbyte may time out and return a 502 error. This can be due to MySQL server settings (like
max_execution_time
) being too low, or Airbyte's own server timeout settings. Persistent timeouts may require increasing these limits [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting)]. 4. Kubernetes/Helm Deployments: In Kubernetes environments, if the worker pods or Temporal pods are not starting or are stuck, connection checks will fail with 502 errors. This can be due to misconfiguration, insufficient resources, or issues with external databases [[Airbyte Temporal context deadline exceeded on eks](https://github.com/airbytehq/airbyte/issues/59730)]. What you can do: - Check the Airbyte server, worker, and Temporal logs for errors or signs of resource exhaustion. - Ensure all Airbyte services are running and healthy. - Compare the configuration payloads between API and UI to ensure no fields are missing or misformatted. - If using Kubernetes, verify that pods are being scheduled and started as expected. - Review MySQL server timeout settings and increase them if necessary. If the problem persists, providing detailed logs from the Airbyte server, worker, and Temporal services will help further diagnose the root cause.