<@U04S8PLJWMT> -- Refresh Schema Changes through U...
# ask-ai
n
@kapa.ai -- Refresh Schema Changes through UI is failing because the time taken for discovery is long. Is there a way to extend the time if there is a timeout limit set where can i find it? Is it per adapter?
k
Yes, if schema discovery (refreshing schema changes) is failing due to timeouts because the process takes too long, you can increase Airbyte's timeout limits. This is not set per adapter/connector, but rather at the platform/server level. For self-managed Airbyte deployments, you can adjust the timeout settings in your configuration (such as
values.yaml
for Helm deployments or your server environment variables). The relevant environment variables are: -
HTTP_IDLE_TIMEOUT
-
READ_TIMEOUT
For example, in your `values.yaml`:
Copy code
yaml server:     extraEnvs:       - name: HTTP_IDLE_TIMEOUT         value: 20m       - name: READ_TIMEOUT         value: 30m
Or, for Helm chart V2:
Copy code
yaml server:     httpIdleTimeout: 20m     extraEnv:       - name: READ_TIMEOUT         value: 30m
These settings increase the allowed time for schema discovery operations, which is especially useful for sources with many tables or complex schemas. This configuration is global and not specific to individual connectors/adapters. You can find more details in the official documentation on scaling Airbyte and handling schema discovery timeouts [here](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts) and [here](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). If you are using a load balancer or reverse proxy (like nginx), you may also need to increase its timeout settings to avoid upstream request timeouts during long schema discovery operations. In summary: - The timeout is set at the server/platform level, not per adapter. - Adjust the relevant environment variables or Helm values to increase the timeout window for schema discovery operations. - Check your proxy/load balancer settings if you still encounter timeouts. [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts) [Scaling Airbyte (Next): Schema Discovery Timeouts](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte#schema-discovery-timeouts)
n
@kapa.ai I increased the timeout limit for server and the loadbalancer to 30 mins. However, When I attempt to refresh schema changes, Im getting a 502 - bad gateway error every time at 5 mins mark
k
A message from kapa.ai
If you are still receiving a 502 Bad Gateway error at the 5-minute mark, even after increasing both the server and load balancer timeouts to 30 minutes, it suggests there may be another timeout setting in your Airbyte deployment or infrastructure that is still set to 5 minutes. Based on the knowledge sources, here are some possible causes and troubleshooting steps: 1. Connector Sidecar Timeout Airbyte uses a connector sidecar, which has its own timeout settings (e.g.,
SIDECAR_FILE_TIMEOUT_MINUTES
). By default, this can be set to 9 minutes, but it may be set lower in some environments. These settings are not always exposed via the Helm chart or environment variables by default. Some users have worked around this by building a custom Docker image with increased timeout values:
Copy code
dockerfile    FROM airbyte/connector-sidecar:<version>    ENV SIDECAR_FILE_TIMEOUT_MINUTES=30    ENV SIDECAR_FILE_TIMEOUT_WITHIN_SYNC_MINUTES=60
If your error consistently occurs at 5 minutes, check if there is a hardcoded or default timeout in the connector sidecar or another internal service that needs to be increased. [See discussion here](https://github.com/airbytehq/airbyte/issues/48855) 2. Other Infrastructure Proxies or Gateways If you are running Airbyte behind additional proxies (such as an OAuth proxy or another API gateway), those may have their own timeout settings. For example, one user found the issue was due to an OAuth proxy timeout, not nginx or Airbyte itself. [See example here](https://github.com/airbytehq/airbyte/issues/58627) 3. Airbyte Internal Timeouts Some Airbyte API endpoints or workflows may have their own internal timeouts (e.g., Temporal workflow timeouts, or API gateway timeouts). If the error always happens at exactly 5 minutes, it is likely a default timeout in one of these layers. [See example here](https://github.com/airbytehq/airbyte/issues/44763) What to do next: - Double-check all proxy, ingress, and gateway timeout settings in your infrastructure. - Investigate the connector sidecar timeout settings, especially if you are using Helm or Kubernetes and the error is at a consistent interval. - Review Airbyte logs for any messages about timeouts or failures at the 5-minute mark to help pinpoint which component is enforcing the timeout. If you have already increased all known timeouts and the issue persists, the knowledge sources do not provide a definitive solution for a 5-minute timeout specifically. In that case, you may need to review your deployment for any additional proxies or services that could be enforcing this timeout, or consider opening an issue with detailed logs for further investigation. Summary: A persistent 5-minute timeout is likely due to a default timeout in a proxy, connector sidecar, or internal Airbyte service that has not been updated. Review all relevant timeout settings, including those not exposed by default, and check logs for more details. [Connector Sidecar Timeout Reference](https://github.com/airbytehq/airbyte/issues/48855) [OAuth Proxy Timeout Example](https://github.com/airbytehq/airbyte/issues/58627) [API Timeout Example](https://github.com/airbytehq/airbyte/issues/44763)
n
@kapa.ai for more context this is the error im seeing:
Copy code
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>If you are the system administrator of this resource then you should check
the error log for details.</p>
<p><em>Faithfully yours, nginx.</em></p>
</body>
</html>
k
A message from kapa.ai
Thank you for providing more context. Based on the knowledge sources, persistent 502 errors at a specific timeout (such as 5 minutes) during schema refresh are most often related to a timeout setting in your infrastructure or Airbyte configuration that has not been updated. Here’s what the knowledge sources indicate: - Airbyte’s own timeout settings: You can increase the schema discovery timeout by setting environment variables like
HTTP_IDLE_TIMEOUT
and
READ_TIMEOUT
in your Airbyte server configuration. This is a common solution for long-running schema discovery tasks and is not connector-specific. Example configuration:
Copy code
yaml   server:       extraEnvs:         - name: HTTP_IDLE_TIMEOUT           value: 20m         - name: READ_TIMEOUT           value: 30m
[Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts) - Load balancer or proxy timeouts: If you are running Airbyte behind a load balancer (such as nginx or a cloud load balancer), you must also increase the timeout settings there. Users have reported that even after increasing Airbyte’s internal timeouts, a lower timeout in the load balancer or ingress controller can still cause 502 errors. For example, in nginx, you might set:
Copy code
nginx.ingress.kubernetes.io/proxy-read-timeout: 1800   nginx.ingress.kubernetes.io/proxy-send-timeout: 1800
[Airbyte & Snowflake connector discussion](https://github.com/airbytehq/airbyte/discussions/45946) - Other infrastructure components: Some users have found that other proxies (such as OAuth proxies) or internal Airbyte workflow timeouts can also cause these errors, even if server and load balancer timeouts are increased. For example, a user reported a 60s timeout due to an OAuth proxy, not nginx or Airbyte itself. [Gateway timeout during connection setup](https://github.com/airbytehq/airbyte/issues/58627) - Consistent 5-minute timeout: If your error always occurs at exactly 5 minutes, it is likely that there is still a default timeout set somewhere in your stack (possibly in a proxy, ingress, or Airbyte’s internal workflow settings) that has not been updated. Summary of next steps: - Double-check all timeout settings in your infrastructure, including any proxies, ingress controllers, and Airbyte itself. - Review Airbyte and proxy logs for more detailed error messages at the 5-minute mark. - If you have already increased all known timeouts and the issue persists, the knowledge sources do not provide a definitive solution for a 5-minute timeout specifically. In that case, further investigation of your deployment or opening an issue with detailed logs may be necessary. If you can share the exact error message or logs, I can help interpret them further. Otherwise, based on the knowledge sources, the most likely cause is a timeout setting in your infrastructure that still needs to be updated.