Kothapalli Venkata Avinash
09/18/2025, 3:56 PMkapa.ai
09/18/2025, 3:56 PMjava.lang.NullPointerException: Cannot invoke "io.airbyte.api.model.generated.AirbyteCatalog.getStreams()" because "discovered" is null indicates that Airbyte is attempting to access the streams from an AirbyteCatalog object, but the catalog object (discovered) is null at that point in the code. This typically happens during schema discovery or when updating a connection's schema. This issue has been observed in several contexts: - When the schema discovery process fails and returns a null catalog, but the code still tries to access its streams. For example, in the MongoDB connector and Mixpanel connector, this error appears if the discovery step does not return a valid catalog object, possibly due to an upstream failure or misconfiguration. The stack trace points to WebBackendConnectionsHandler.updateSchemaWithDiscovery as the location where the null is not handled gracefully, leading to the exception. The root cause is often a failed or incomplete schema discovery, which should be checked in the logs for more details about why the catalog is null. See related discussions for MongoDB and Mixpanel connectors for more context [here](https://discuss.airbyte.io/t/1011) and [here](https://discuss.airbyte.io/t/2814). - The error can also occur if there is a performance degradation or a timeout during the discovery process, resulting in a null response that is not properly checked before use. How to address this: - Check the logs preceding the exception for errors during the schema discovery phase. There may be a more informative error message indicating why the catalog is null. - Ensure that the source connector is configured correctly and that the source system is accessible and responsive. - If this is a recurring issue, consider updating Airbyte to the latest version, as some related bugs have been fixed in newer releases. - If you are developing a custom connector, make sure to handle null returns from the discovery process gracefully and provide meaningful error messages. If you need more specific troubleshooting, please provide the full logs around the time of the error, as the root cause is often found earlier in the log output. References: [Severe Performance Degradation Mongo Connector](https://discuss.airbyte.io/t/1011), [Mixpanel connector issue](https://discuss.airbyte.io/t/2814)Kothapalli Venkata Avinash
09/18/2025, 5:49 PMkapa.ai
09/18/2025, 5:49 PMkapa.ai
09/18/2025, 5:49 PMyaml server: extraEnv: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m For Helm chart V2, you can also use: yaml server: httpIdleTimeout: 20m extraEnv: - name: READ_TIMEOUT value: 30m This will allow the discovery process to run longer before timing out, which is often necessary for large schemas [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). 2. Limit the Number of Fields per Connection Airbyte allows you to control the maximum number of fields per connection using the MAX_FIELDS_PER_CONNECTION environment variable. By default, this is set to 20,000 fields across enabled streams, but you can adjust it as needed to fit your use case [April 2024 Release Notes](https://docs.airbyte.com/release_notes/april_2024). 3. Reduce the Scope of Discovery For some sources (like S3 or MongoDB), you can limit the discovery to a subset of data (e.g., by using a path prefix or limiting user permissions to only necessary collections/tables). This can significantly speed up discovery and reduce resource usage [Forum: S3 Schema Discovery](https://discuss.airbyte.io/t/1101), [Forum: MongoDB Timeout](https://discuss.airbyte.io/t/2665). 4. Increase Maximum Request Size If you encounter errors like "Request Entity Too Large" (HTTP 413), you may need to increase the maximum request size for the Airbyte server and your ingress/proxy (e.g., NGINX). This is especially relevant for very large schemas [GitHub Issue #4564](https://github.com/airbytehq/airbyte/issues/4564). Summary: Adjusting timeouts, limiting the scope of discovery, increasing field limits, and tuning request size are the main configurations to help Airbyte handle large datasets during schema discovery. Always monitor logs for specific errors to guide further tuning.Kothapalli Venkata Avinash
09/18/2025, 5:57 PMkapa.ai
09/18/2025, 5:57 PMkapa.ai
09/18/2025, 5:57 PMvalues.yaml in addition to setting them in your ingress configuration. Setting timeouts in the ingress (such as NGINX or a load balancer) only controls how long the proxy will wait for a response from the Airbyte backend. However, Airbyte itself has internal timeout settings (like HTTP_IDLE_TIMEOUT and READ_TIMEOUT) that determine how long the server will allow operations like schema discovery to run. If these internal timeouts are shorter than your ingress timeouts, the Airbyte server may terminate the operation before the ingress timeout is reached, resulting in failed discovery for large datasets. The official Airbyte documentation specifically recommends increasing these values in your values.yaml file to handle long-running schema discovery jobs: yaml server: extraEnv: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m or for Helm chart V2: yaml server: httpIdleTimeout: 20m extraEnv: - name: READ_TIMEOUT value: 30m This ensures that both the ingress and the Airbyte backend are configured to allow sufficient time for large schema discovery operations to complete successfully [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). So, both configurations are necessary and should be aligned for best results.Kothapalli Venkata Avinash
09/19/2025, 12:55 PMkapa.ai
09/19/2025, 12:55 PMkapa.ai
09/19/2025, 12:55 PMvalues.yaml file (for Helm deployments): yaml server: extraEnv: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m For Helm chart V2, you can use: yaml server: httpIdleTimeout: 20m extraEnv: - name: READ_TIMEOUT value: 30m This will allow schema discovery to run longer and help avoid the 9-minute timeout error [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). - Why both ingress and Airbyte timeouts matter: The ingress timeout only controls how long the proxy waits for a response, but Airbyte's own server timeouts can still terminate the operation early if not increased. Both must be set appropriately for large or slow schema discovery operations. If you continue to see this error after increasing the timeouts, check the connector logs for additional errors or misconfigurations that might be causing the discovery to hang or fail to produce output files [GitHub Issue #54684](https://github.com/airbytehq/airbyte/issues/54684). Summary: You need to increase Airbyte's internal timeouts in addition to your ingress settings to successfully handle schema discovery for large datasets.Kothapalli Venkata Avinash
09/19/2025, 1:28 PMkapa.ai
09/19/2025, 1:28 PMkapa.ai
09/19/2025, 1:29 PMHTTP_IDLE_TIMEOUT and READ_TIMEOUT in your values.yaml file. If these are not set high enough, Airbyte may terminate the discovery process before it completes, resulting in a 502 error [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). 2. Large Schema or Slow Source If your source has a very large schema (many tables/fields), the discovery process can exceed default timeouts or resource limits. Increasing the timeouts as described above is necessary. Also, consider limiting the scope of discovery if possible (e.g., by restricting user permissions or selecting only required tables) [Forum: MongoDB Timeout](https://discuss.airbyte.io/t/2665). 3. Workload API Authentication Issues In some Airbyte deployments (especially with abctl or Kubernetes), a 502 error can occur if the authentication tokens between the worker, workload API server, and main server are not aligned. You may need to set the same WORKLOAD_API_BEARER_TOKEN and WORKLOAD_API_AUTH_HEADER on all relevant deployments and restart them. This has been reported as a root cause for 502 errors during connector setup and schema discovery [GitHub Issue #65567](https://github.com/airbytehq/airbyte/issues/65567). 4. Request Size Limits If your schema is very large, you may also hit request size limits (HTTP 413 errors), but these can sometimes manifest as 502 errors depending on your proxy setup. Ensure your ingress/proxy and Airbyte server are configured to allow large request bodies [GitHub Issue #4564](https://github.com/airbytehq/airbyte/issues/4564). Action Steps: - Double-check that you have increased both ingress and Airbyte server timeouts. - If using Kubernetes, ensure all relevant pods have the correct authentication tokens set. - Check Airbyte and connector logs for more specific error messages. - If the schema is extremely large, consider limiting the number of tables/fields being discovered. If you have already set the timeouts and are still seeing the error, the knowledge sources suggest checking for authentication token mismatches or request size issues as the next steps. If you need more detailed troubleshooting, please provide relevant log excerpts from the Airbyte server and connector pods.Kothapalli Venkata Avinash
09/19/2025, 1:47 PMkapa.ai
09/19/2025, 1:47 PMkapa.ai
09/19/2025, 1:47 PMvalues.yaml), specifically using the HTTP_IDLE_TIMEOUT and READ_TIMEOUT environment variables under the server section. There is no explicit mention in the documentation or issues about needing to increase timeouts specifically in the webapp component or elsewhere beyond the server and ingress/load balancer settings. Here’s the recommended configuration for the server: yaml server: extraEnv: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m Or for Helm chart V2: yaml server: httpIdleTimeout: 20m extraEnv: - name: READ_TIMEOUT value: 30m The documentation and user reports focus on these server-side settings and ingress timeouts as the key places to adjust for long-running schema discovery. There is no evidence in the knowledge sources that increasing timeouts in the webapp is required or recommended for this purpose [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). If you continue to experience issues after increasing these timeouts, it is advisable to check logs for other possible causes, but increasing timeouts in the webapp is not mentioned as necessary in the official guidance.Kothapalli Venkata Avinash
09/19/2025, 2:16 PMkapa.ai
09/19/2025, 2:16 PMkapa.ai
09/19/2025, 2:16 PMvalues.yaml (Airbyte server), but are still seeing the error: > Discovering schema failed > Workload failed, source: unknown > Failed to find output files from connector within timeout of 9 minute(s). Is the connector still running? the knowledge sources suggest a few additional considerations: 1. Timeouts Must Be Set in All Relevant Places Both the ingress and Airbyte server timeouts must be increased. The server settings should look like this in your `values.yaml`: yaml server: extraEnv: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m or for Helm V2: yaml server: httpIdleTimeout: 20m extraEnv: - name: READ_TIMEOUT value: 30m This is confirmed in the official documentation and multiple user reports [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). 2. Large Schema or Connector Performance If your source has a very large schema (many tables/fields), the connector may still not finish discovery in time, or may run into resource limits. The documentation suggests limiting the scope of discovery (e.g., by restricting user permissions or selecting only required tables) to speed up the process [Forum: MongoDB Timeout](https://discuss.airbyte.io/t/2665). 3. Connector or Platform Issues In some cases, even after increasing timeouts, users have reported that schema discovery fails due to connector bugs, platform issues, or resource exhaustion. For example, there are open issues where users increased all timeouts but still encountered 413 or timeout errors, especially with very large schemas [GitHub Issue #4564](https://github.com/airbytehq/airbyte/issues/4564), [GitHub Issue #56914](https://github.com/airbytehq/airbyte/issues/56914). 4. No Further Configuration Mentioned The knowledge sources do not mention any additional configuration (such as in the webapp or elsewhere) that would resolve this specific error. If you have already increased all relevant timeouts and are still seeing the error, it may be a limitation of the connector or a bug. Summary: If you have increased both ingress and server timeouts and still see this error, it is likely due to the size/complexity of your schema or a connector/platform limitation. The knowledge sources do not provide further configuration steps beyond what you have already done. You may need to consider reducing the scope of discovery or splitting your data, and if the problem persists, report it as a bug with detailed logs for further investigation [GitHub Issue #56914](https://github.com/airbytehq/airbyte/issues/56914), [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). If you can share connector logs, it may help pinpoint the root cause.Kothapalli Venkata Avinash
09/22/2025, 7:44 PMkapa.ai
09/22/2025, 7:44 PMkapa.ai
09/22/2025, 7:44 PMyaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: airbyte-ingress annotations: nginx.ingress.kubernetes.io/ssl-redirect: "false" nginx.ingress.kubernetes.io/proxy-read-timeout: "1800" nginx.ingress.kubernetes.io/proxy-send-timeout: "1800" nginx.ingress.kubernetes.io/proxy-body-size: 16m spec: ingressClassName: nginx rules: - host: airbyte.example.com http: paths: - backend: service: name: airbyte-airbyte-server-svc port: number: 8001 path: / pathType: Prefix - nginx.ingress.kubernetes.io/proxy-read-timeout and nginx.ingress.kubernetes.io/proxy-send-timeout control how long the ingress will wait for a response from the Airbyte backend. - nginx.ingress.kubernetes.io/proxy-body-size can be increased if you expect large payloads during schema discovery. Note: You must also increase the internal Airbyte server timeouts in your values.yaml file for the changes to be fully effective. Adjusting only the ingress timeouts is not sufficient for large or slow schema discovery operations [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts), [Airbyte & Snowflake connector discussion](https://github.com/airbytehq/airbyte/discussions/45946). If you are using a different ingress controller (such as AWS ALB), refer to the relevant documentation for equivalent timeout settings [Ingress documentation](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress).Kothapalli Venkata Avinash
09/23/2025, 12:30 PMkapa.ai
09/23/2025, 12:30 PMkapa.ai
09/23/2025, 12:31 PMvalues.yaml configuration recommended by the Airbyte documentation to help resolve schema discovery timeout issues, especially for large datasets. This configuration increases the relevant server timeouts: yaml server: extraEnv: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m For Helm chart V2, you can use: yaml server: httpIdleTimeout: 20m extraEnv: - name: READ_TIMEOUT value: 30m These settings should be added to your values.yaml file and applied when deploying or upgrading Airbyte. They ensure that the Airbyte server allows long-running schema discovery operations to complete, which is often necessary for sources with many tables or fields [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). Note: You should also ensure your ingress (e.g., NGINX) timeouts are increased to match or exceed these values for best results.Kothapalli Venkata Avinash
09/23/2025, 12:52 PMkapa.ai
09/23/2025, 12:52 PMkapa.ai
09/23/2025, 12:52 PMserver section in your values.yaml file. There is no explicit requirement or recommendation in the knowledge sources to set these timeouts for webapp, worker, or global sections for the purpose of schema discovery timeouts. The documentation specifically provides examples only for the server section: yaml server: extraEnv: - name: HTTP_IDLE_TIMEOUT value: 20m - name: READ_TIMEOUT value: 30m or for Helm chart V2: yaml server: httpIdleTimeout: 20m extraEnv: - name: READ_TIMEOUT value: 30m There is no mention in the knowledge sources that you need to update these timeout values for webapp, worker, or global to resolve schema discovery timeout issues [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). If you are still experiencing issues after updating the server section, the problem may be related to connector limitations, resource constraints, or other factors, but the documentation does not advise setting these timeouts elsewhere for schema discovery.Kothapalli Venkata Avinash
09/23/2025, 12:54 PMkapa.ai
09/23/2025, 12:55 PMkapa.ai
09/23/2025, 12:55 PMvalues.yaml for the server component with increased timeouts (such as HTTP_IDLE_TIMEOUT and READ_TIMEOUT), but are still seeing schema discovery time out after 9 minutes, the knowledge sources suggest a few possible reasons and next steps: 1. Connector Sidecar Timeout There is a known limitation where the connector sidecar has its own internal timeout (e.g., SIDECAR_FILE_TIMEOUT_MINUTES), which defaults to 9 minutes and is not exposed for configuration via the Helm chart or standard environment variables. If the connector does not finish discovery and produce output files within this period, you will see errors like: > Failed to find output files from connector within timeout of 9 minute(s). Is the connector still running? The only documented workaround is to build a custom Docker image for the connector sidecar with increased timeout values, for example: dockerfile FROM airbyte/connector-sidecar:1.2.0 ENV SIDECAR_FILE_TIMEOUT_MINUTES=30 ENV SIDECAR_FILE_TIMEOUT_WITHIN_SYNC_MINUTES=60 This approach is described in [this GitHub issue](https://github.com/airbytehq/airbyte/issues/48855). 2. No Official Helm/values.yaml Setting for Sidecar Timeout As of now, the knowledge sources do not mention a way to configure the sidecar timeout directly via values.yaml or Helm. This is a known gap and has been raised by users as a feature request, but the only solution currently is the custom image workaround above. 3. Other Timeouts Ensure that all other relevant timeouts (ingress, load balancer, etc.) are also set higher than your expected discovery duration, but in your case, the persistent 9-minute timeout points specifically to the sidecar limitation. Summary: If schema discovery still times out after 9 minutes despite increasing server and ingress timeouts, you are likely hitting the connector sidecar's hardcoded timeout. The only current solution is to build a custom sidecar image with increased timeout values, as described above. There is no configuration in values.yaml or Helm to change this at this time [GitHub Issue #48855](https://github.com/airbytehq/airbyte/issues/48855).