<@U04S8PLJWMT> I have deployed self managed airbyt...
# ask-ai
p
@kapa.ai I have deployed self managed airbyte image version 1.8.4 on EKS . All services are running fine, no exceptions. When I try to create a source and click on test connection, it gives 504. There are error logs
k
A 504 error when testing a source connection in Airbyte on EKS, even when all services appear healthy and no exceptions are visible, is a recurring issue reported by several users. Here are some possible causes and troubleshooting steps based on similar cases: ### 1. Pod Creation or Initialization Issues - Airbyte often spawns a new pod to test the source connection. If this pod fails to initialize or is not scheduled correctly, the UI may eventually return a 504 error. This can happen even if the main services are running fine. - Check if the test/check pod is being created and its status. If it is stuck in
Pending
or
Error
, inspect its logs and events for clues. Common issues include missing environment variables (like AWS credentials), insufficient permissions, or resource constraints. For example, missing AWS credentials in the init container caused failures in a similar setup on EKS, even though the sidecar had them set correctly. Ensuring all containers in the pod have the necessary environment variables resolved the issue for some users [Airbyte 1.2.0 on Kubernetes/EKS: Cannot create new sources as "Test the Source" fails with HTTP 500](https://github.com/airbytehq/airbyte/issues/48809). ### 2. Network or IAM Issues - If you are using IRSA (IAM Roles for Service Accounts) for AWS permissions, intermittent loss of permissions can cause connection attempts to fail. Deleting the affected pod sometimes resolves the issue temporarily, but it may recur if the underlying IAM or service account configuration is not stable [Airbyte Pod Intermittently Losing IRSA Permissions and Falling Back to Node IAM Role](https://github.com/airbytehq/airbyte/issues/53652). ### 3. Ingress or Proxy Timeouts - If you are using an ingress controller (like NGINX), the default timeout may be too low for the connection test to complete, especially if the source is slow to respond. Increase the relevant timeout settings in your ingress annotations, such as:
Copy code
yaml   nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"   nginx.ingress.kubernetes.io/proxy-send-timeout: "600"   nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
and ensure your load balancer (if any) has a sufficiently high idle timeout [Review schema changes 504 timeout error](https://github.com/airbytehq/airbyte/issues/55690). ### 4. abctl Deployments and Token Issues - For abctl-based deployments, some users have reported needing to manually set and synchronize bearer tokens between services to resolve 502/504 errors when testing connections. This involves setting environment variables and restarting relevant deployments [Problem with source and destination configuration on version 1.8.3 Airbyte is temporarily unavailable. Please try again. (HTTP 502)](https://github.com/airbytehq/airbyte/issues/66692). ### 5. General Debugging Steps - Check the logs of the workload launcher, worker, and the test/check pod for any errors or missing configuration. - Ensure all Airbyte pods are scheduled and running on nodes with sufficient resources. - Try creating a connection with a simple source (like a CSV file) to determine if the issue is connector-specific or systemic. If after these checks the issue persists, please provide: - The logs from the test/check pod (if it is created). - Any relevant events from
kubectl describe pod <pod-name>
. - Details about your ingress and service account/IAM setup. This will help further narrow down the root cause. If you are using abctl, also check if manually setting the bearer token as described above resolves the issue. Let me know if you need more specific guidance based on your findings!