Gaurav Jain
11/07/2025, 10:21 AMkapa.ai
11/07/2025, 10:21 AMproxy_read_timeout and proxy_connect_timeout values in your Nginx configuration. This is the most direct fix for 504 errors during schema discovery [Failed to load schema in discovery_schema timeout in LoadBalancer](https://discuss.airbyte.io/t/2665), [Zuora Source "failed to fetch schema"](https://discuss.airbyte.io/t/2976). - Limit MongoDB User Permissions If possible, create a MongoDB user with access only to the collections you need to sync. This reduces the amount of data Airbyte needs to scan during schema discovery, making the process faster and less likely to time out [Failed to load schema in discovery_schema timeout in LoadBalancer](https://discuss.airbyte.io/t/2665). - Split Large Databases If your MongoDB database is very large, consider splitting the sync into multiple connections, each with a user that has access to a subset of collections [Failed Connection between mongodb and Bigquery](https://discuss.airbyte.io/t/1793). - Increase Airbyte Worker Resources Allocate more memory and CPU to your Airbyte worker containers to help them handle large schema discovery operations [Failed Connection between mongodb and Bigquery](https://discuss.airbyte.io/t/1793). - Check Network Connectivity Ensure that your Airbyte instance can reliably connect to your MongoDB server, and that there are no intermittent network issues [Salesforce and Mongo sources failing to sync to destination](https://discuss.airbyte.io/t/737). ### Summary The 504 error is most often due to schema discovery taking longer than your proxy or load balancer allows. Increasing the timeout and limiting the scope of the schema discovery are the most effective solutions. If you continue to have issues, check your Airbyte and server logs for more details and consider sharing them for further troubleshooting. If you need help adjusting your Nginx or load balancer configuration, let me know your setup and I can provide more specific guidance.Gaurav Jain
11/07/2025, 10:44 AMkapa.ai
11/07/2025, 10:44 AMkapa.ai
11/07/2025, 10:44 AMvalues.yaml (if using Helm), add or adjust: yaml server: extraEnv: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m This will give the discovery process more time to complete for large databases. The exact configuration may vary depending on your Airbyte version and deployment method, but the principle is the same across versions [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). - Limit MongoDB User Permissions: If possible, create a MongoDB user with access only to the collections you need. This reduces the amount of data Airbyte needs to scan, making discovery faster and less likely to time out [Failed to load schema in discovery_schema timeout in LoadBalancer](https://discuss.airbyte.io/t/2665). - Split Large Databases: For very large databases, consider splitting the sync into multiple connections, each with a user that has access to a subset of collections [Failed Connection between mongodb and Bigquery](https://discuss.airbyte.io/t/1793). Summary: The 502 error for large databases is due to schema discovery taking too long. Increasing timeout settings and limiting the scope of discovery are the recommended solutions according to Airbyte documentation and community discussions.