<@U04S8PLJWMT> I encountered a problem when creati...
# ask-ai
d
@kapa.ai I encountered a problem when creating sources. The test does not pass and an error appears (Airbyte is temporarily unavailable. Please try again. (HTTP 502)). Please tell me what to do? How to solve this problem?
k
Sorry @David Dekanoidze, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
d
@kapa.ai I encountered a problem when creating sources. The test does not pass and an error appears (Airbyte is temporarily unavailable. Please try again. (HTTP 502)). Please tell me what to do? How to solve this problem?
k
The "Airbyte is temporarily unavailable. Please try again. (HTTP 502)" error when creating or testing sources is a common issue and can have several root causes depending on your deployment environment (Docker, Kubernetes, etc.). Here are the most relevant troubleshooting steps and solutions based on the knowledge sources: --- ### 1. Check Temporal Service Health Many reports indicate that issues with the Temporal service (used for job orchestration in Airbyte) can cause 502 errors when creating sources or running syncs. If Temporal is stuck, overloaded, or not running, job pods (like source checks) may not be triggered, resulting in 502 errors. - Docker: Check if the
temporal
container is running and not consuming excessive CPU. Restarting the container may help if it's stuck. - Kubernetes: Ensure the
airbyte-temporal
pod is running and healthy. If using an external database, network latency or misconfiguration can cause issues. Review the logs for errors like "service rate limit exceeded" or "context deadline exceeded" [[source](https://github.com/airbytehq/airbyte/issues/44833)][[source](https://github.com/airbytehq/airbyte/issues/59730)]. --- ### 2. Resource Constraints Insufficient CPU or memory can prevent Airbyte components from functioning correctly, especially on Kubernetes. Make sure your cluster or Docker host has enough resources allocated. --- ### 3. Workload Launcher Configuration (Kubernetes) If you are running Airbyte on Kubernetes and using cloud resources (like S3), missing environment variables for the workload launcher can cause pod failures during source checks, resulting in HTTP 500/502 errors. Ensure your
values.yaml
includes the necessary environment variables for secret access:
Copy code
yaml workload-launcher:   env_vars:     AWS_ASSUME_ROLE_SECRET_NAME: airbyte-config-secrets     AWS_SECRET_MANAGER_ACCESS_KEY_ID_REF_NAME: airbyte-config-secrets     AWS_SECRET_MANAGER_ACCESS_KEY_ID_REF_KEY: aws-secret-manager-access-key-id     AWS_SECRET_MANAGER_SECRET_ACCESS_KEY_REF_NAME: airbyte-config-secrets     AWS_SECRET_MANAGER_SECRET_ACCESS_KEY_REF_KEY: aws-secret-manager-secret-access-key
This was reported to resolve the issue for some users [[source](https://github.com/airbytehq/airbyte/issues/48809)]. --- ### 4. Nginx/Proxy Issues If you are using Nginx or another reverse proxy, ensure that it is correctly configured and that the Airbyte backend services are up and reachable. Sometimes, restarting the Airbyte containers after a system reboot resolves the 502 error [[source](https://discuss.airbyte.io/t/3239)]. --- ### 5. Check Logs for Details - Review logs from the Airbyte server, worker, and workload-launcher (Kubernetes) or relevant Docker containers. - Look for errors related to pod creation, connection checks, or resource exhaustion. --- ### 6. Version-Specific Bugs Some issues are version-specific and may be resolved by upgrading Airbyte to a newer release. For example, a proxy restart bug was fixed in version 0.40.23 [[source](https://discuss.airbyte.io/t/3239)]. --- ### 7. Other Common Causes - Misconfiguration of secrets or credentials (especially for cloud destinations like S3). - Network policies or firewalls blocking pod-to-pod communication (Kubernetes). - Proxy timeouts or misconfigured ingress settings. --- Summary of Actions: 1. Check that all Airbyte services (especially Temporal) are running and healthy. 2. Ensure sufficient resources are allocated. 3. For Kubernetes, verify workload-launcher environment variables and pod logs. 4. Review and, if needed, restart your reverse proxy and Airbyte containers. 5. Upgrade Airbyte if you are on an older version with known issues. If after these steps the issue persists, please provide logs from the relevant Airbyte components for more targeted troubleshooting. --- If you need more specific help, please share your deployment details (Docker/Kubernetes, Airbyte version, relevant logs, etc.).