<@U04S8PLJWMT> I get the following error when sett...
# ask-ai
m
@kapa.ai I get the following error when setting up our Google Analytics (GA4) connector: An unknown error occurred. (HTTP 504) We are running Airbyte community on a VM. All other connectors work and the Google analytics error only occurs when multiple properties are included which makes the initial checks take longer. I can see that the issue happens after 60 seconds. We have noticed that the issue is on the front end, but when checking backend logs, I see this
Copy code
172.30.0.1 - - [17/Jul/2025:13:05:52 +0000] "POST /api/v1/sources/check_connection HTTP/1.0" 200 8780 "https://thevintagebar.com/workspaces/e53acc36-0cae-4282-9f4e-b81a40f7a160/source/26d1f8e9-dd40-4946-a290-304d69e46881" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0" 1710 62.246 [airbyte-abctl-airbyte-abctl-airbyte-webapp-svc-http] [] 10.244.0.229:8080 8780 62.246 200 ff28c396ab4ab55feb18e1773dff3e9e
nginx ingress is waiting for 62 seconds and correctly getting response. I assume that workers will work fine Can you help me debug how to solve this?
k
Your issue is a common one with Airbyte when the initial connection check for a connector (like Google Analytics GA4 with many properties) takes longer than the default timeout configured in your ingress (often 60 seconds). Here’s what’s happening: - The backend (Airbyte server) completes the check successfully after ~62 seconds, as shown in your logs (HTTP 200). - However, the frontend (browser) receives a 504 Gateway Timeout from the nginx ingress, because the ingress proxy times out before the backend responds. How to solve this: You need to increase the timeout settings on your nginx ingress to allow longer-running requests to complete. Specifically, you should add or update the following annotations in your ingress resource:
Copy code
yaml metadata:   annotations:     nginx.ingress.kubernetes.io/proxy-read-timeout: "120"     nginx.ingress.kubernetes.io/proxy-send-timeout: "120"
You can do this by running:
Copy code
sh kubectl -n <your-namespace> edit ingress <your-ingress-name>
and adding the annotations under
metadata.annotations
. Adjust the timeout value (
120
seconds in this example) as needed for your use case. This will allow the frontend to wait longer for the backend to respond, preventing the 504 error. This solution is confirmed in multiple sources, including Airbyte’s own documentation and user reports, which specifically mention that short ingress timeouts can cause 504 errors when creating new sources or destinations that take longer to check or discover schemas. Increasing the timeout resolves the issue for long-running checks, such as those with many Google Analytics properties or large databases [NGINX ingress timeout settings](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress), [Timeout funnel and 504 errors](https://github.com/airbytehq/airbyte/issues/45156), [User reports on 504 errors](https://github.com/airbytehq/airbyte/issues/29712). Note: If you are running Airbyte with
abctl
, the default ingress is managed for you, but you can still edit the ingress resource as described above. If you are running on a VM with Docker Compose and not Kubernetes, the timeout may be set in the nginx proxy configuration, and you would need to adjust the
proxy_read_timeout
and
proxy_send_timeout
values in your nginx config. Let me know if you need help with the exact commands for your deployment type!
m
@kapa.ai We have tested this and it did not help. But it is pretty clear this is only a frontend issue based on the logs
k
A message from kapa.ai
Thank you for clarifying that increasing the ingress timeout did not resolve the issue and that the backend is returning a successful response after ~62 seconds, while the frontend still shows a 504 error. Based on the knowledge sources, this scenario has been observed by other Airbyte users as well. The root cause is typically that the ingress (nginx or similar proxy) times out before the frontend receives the backend response, resulting in a 504 error on the UI—even though the backend operation completes successfully. This is confirmed in several GitHub issues and forum posts, where users report that the backend logs a 200 response, but the frontend receives a 504 due to the proxy timeout window being shorter than the backend operation duration. The only way to ensure the frontend receives the correct response is to have the proxy timeout exceed the maximum expected backend processing time [Timeout funnel and 504 errors](https://github.com/airbytehq/airbyte/issues/45156), [Proxy causes Gateway Timeout](https://discuss.airbyte.io/t/2976), [Error 504 when the configure connection takes more than 1min](https://github.com/airbytehq/airbyte/issues/29712). If you have already increased the ingress/proxy timeout and the issue persists, the knowledge sources do not provide a documented alternative solution. There are no references to a purely frontend-side workaround or configuration that would resolve this if the proxy is already set to wait long enough. Summary: - The 504 error is a result of the frontend not receiving a timely response due to proxy/ingress timeout. - The only documented solution is to increase the proxy/ingress timeout to exceed the backend operation time. - If this does not resolve the issue, the knowledge sources do not provide further troubleshooting steps or alternative solutions for a purely frontend-based fix. If you have already set the proxy timeout well above the backend operation time and still see this issue, it may be worth double-checking that the correct ingress or proxy is being updated, and that there are no other intermediate proxies or load balancers with lower timeout settings. If everything is configured correctly and the problem persists, you may want to open a new issue with detailed logs and configuration, as this could indicate a bug or an undocumented edge case in Airbyte’s handling of long-running frontend requests [Timeout funnel and 504 errors](https://github.com/airbytehq/airbyte/issues/45156), [Proxy causes Gateway Timeout](https://discuss.airbyte.io/t/2976). I'm sorry, but the knowledge sources do not contain information about a frontend-only solution for this issue.
m
@kapa.ai I found the cause was our external nginx that redirects requests to Airbyte instance, not the instance itself. This solved the issue when setting up sources but I still have the issue when setting up connections. I need some extra information about how this could have solved the 504 error for setting up sources but not for setting up connections
k
A message from kapa.ai
Your observation matches several user reports and issues in the Airbyte community: a 504 error can be caused by an external nginx (or other proxy) timing out before Airbyte finishes processing a request. When you increased the timeout on your external nginx, it allowed the source setup (such as schema discovery or connection checks) to complete, resolving the 504 error for that step. Why does this solve the issue for sources but not for connections? Based on the knowledge sources, both source setup (like schema discovery or check connection) and connection setup (such as syncing or testing a connection) can involve long-running backend operations. If your external nginx timeout is now long enough for source setup but you still get 504s during connection setup, it likely means: - The connection setup operation (e.g., initial sync, schema discovery for both source and destination, or other validation) is taking even longer than the source setup. - The timeout you set on your external nginx is sufficient for the source setup, but not long enough for the connection setup, which may be a heavier or more complex operation. This pattern is confirmed in user reports where increasing the proxy timeout resolved 504s for some operations but not others, depending on how long each operation takes. For example, users have reported that schema discovery or connection checks with large or complex sources/destinations can take longer than expected, and the only way to avoid 504s is to set the proxy timeout higher than the longest expected operation [Timeout funnel and 504 errors](https://github.com/airbytehq/airbyte/issues/45156), [Error 504 when the configure connection takes more than 1min](https://github.com/airbytehq/airbyte/issues/29712), [Proxy causes Gateway Timeout](https://discuss.airbyte.io/t/2976). What to do next: - Increase the timeout on your external nginx even further, so it exceeds the duration of the longest connection setup operation. - Double-check that there are no other proxies or load balancers in the path with lower timeout values. Summary: The reason increasing the external nginx timeout solved the 504 for sources but not for connections is that connection setup operations can take longer than source setup, and your current timeout is not long enough for those longer operations. The knowledge sources do not mention any other root causes for this pattern. If you continue to see 504s even after increasing the timeout, it may be necessary to investigate the specific connection operation to see if there are performance issues or unusually long-running tasks involved.