<@U04S8PLJWMT> I have deployed OSS Airbyte on a ku...
# ask-ai
p
@kapa.ai I have deployed OSS Airbyte on a kubernetes cluster. When trying to setup a new connection, I'm getting
An unknown error occurred. (HTTP 524)
. How can I check what's the problem? The pod that is launched is called
le-sheets-discover-f2ba9114-64d4-43b0-a758-44f81f4f3c2e-0-anfaz
in Lens (it's supposed to connect a google sheets to a PostgreSQL). I don't get the logs of the pod, what could be the problem? Is there a way to do the connection differently?
k
When you encounter
An unknown error occurred. (HTTP 524)
while setting up a new connection in OSS Airbyte on Kubernetes, it typically indicates a timeout—often because the pod responsible for the operation (in your case,
le-sheets-discover-...
) is not completing its task in time or is unable to communicate with required services. Here are steps and checks you can perform, based on similar issues and troubleshooting advice from the Airbyte community: 1. Check Pod Status and Logs: - If you cannot get the logs of the pod, it may be stuck in a pending or crashloop state, or there may be resource constraints. - Use
kubectl describe pod <pod-name>
to see the pod's status, events, and any error messages about scheduling or startup. - If the pod is pending, look for messages about insufficient resources or unschedulable nodes. If it's running but you can't get logs, there may be a permissions or networking issue. 2. Resource Constraints: - Several users have reported that 5xx/504/524 errors can be caused by insufficient CPU or memory allocated to the Airbyte deployment or the Kubernetes cluster itself. Try increasing the resource limits for your Airbyte pods and ensure your cluster has enough available resources. After adjusting, restart the affected pods or redeploy Airbyte. This has resolved similar issues for others ([source](https://github.com/airbytehq/airbyte/issues/42135), [source](https://github.com/airbytehq/airbyte/issues/42134)). 3. Timeouts and Ingress: - If you are using an ingress controller (like nginx), the default timeout may be too low. You can increase the timeout by editing your ingress resource and adding an annotation such as:
Copy code
yaml      metadata:        annotations:          nginx.ingress.kubernetes.io/proxy-read-timeout: "120"
- This ensures the ingress does not terminate the connection before Airbyte finishes its operation ([source](https://github.com/airbytehq/airbyte/issues/45156)). 4. Network and Internet Access: - The Google Sheets connector requires internet access to reach Google APIs. If your cluster or pod does not have outbound internet access, the connection will fail. You can test internet access from within a pod using
curl
as shown in [this discussion](https://discuss.airbyte.io/t/594). 5. Debugging Without Pod Logs: - If you cannot access pod logs, check the Airbyte server, scheduler, and worker logs for errors around the time you attempt the connection. These may provide more context ([source](https://discuss.airbyte.io/t/2861), [source](https://discuss.airbyte.io/t/594)). - Also, check if the pod is being scheduled on a node with network access and sufficient resources. 6. Alternative Connection Setup: - There is no alternative way to set up the connection in Airbyte OSS other than through the UI or API, both of which will trigger the same pod-based discovery process. However, you can try using a different source (e.g., a local CSV or another API) to see if the issue is specific to the Google Sheets connector or a broader cluster/configuration problem ([source](https://discuss.airbyte.io/t/1207)). Summary of Actions: - Check pod status and events with
kubectl describe
. - Ensure your cluster and Airbyte deployment have sufficient resources. - Increase ingress timeouts if using an ingress controller. - Verify network/internet access from the pod. - Review Airbyte server/scheduler/worker logs for additional clues. If after these steps you still cannot access the pod logs or resolve the issue, consider upgrading Airbyte to the latest version, as some bugs and resource handling issues have been improved in recent releases ([source](https://discuss.airbyte.io/t/2861)). If you need more targeted help, please provide the output of
kubectl describe pod <pod-name>
and any relevant server or scheduler logs.
p
@kapa.ai I have now access to the logs of the pod, and everything seems normal?
2025-07-18 08:05:22,225 [main]	INFO	i.a.w.i.VersionedAirbyteStreamFactory(internalLog):319 - Duplicate headers found in sheet {column}. Ignoring them: [Undefined]
That's the only weird message. The pod ends with:
Copy code
2025-07-18 08:05:22,229 [main]	INFO	i.a.c.ConnectorMessageProcessor(updateConfigFromControlMessage):232 - Checking for optional control message...
2025-07-18 08:05:22,231 [main]	INFO	i.a.c.ConnectorMessageProcessor(setOutput):179 - Writing catalog result to API...
2025-07-18 08:05:22,319 [main]	INFO	i.a.c.ConnectorMessageProcessor(setOutput):183 - Finished writing catalog result to API.
2025-07-18 08:05:22,319 [main]	INFO	i.a.c.ConnectorWatcher(saveConnectorOutput):170 - Writing output of 71607ba1-c0ac-4799-8049-7f4b90dd50f7_f2ba9114-64d4-43b0-a758-44f81f4f3c2e_0_discover to the doc store
2025-07-18 08:05:22,452 [main]	INFO	i.a.c.ConnectorWatcher(markWorkloadSuccess):175 - Marking workload 71607ba1-c0ac-4799-8049-7f4b90dd50f7_f2ba9114-64d4-43b0-a758-44f81f4f3c2e_0_discover as successful
2025-07-18 08:05:22,489 [pool-8-thread-1]	INFO	i.a.c.i.LineGobbler(voidCall):177 -
2025-07-18 08:05:22,489 [main]	INFO	i.a.c.ConnectorWatcher(exitProperly):220 - Deliberately exiting process with code 0.
2025-07-18 08:05:22,489 [pool-8-thread-1]	INFO	i.a.c.i.LineGobbler(voidCall):177 - ----- END DISCOVER -----
2025-07-18 08:05:22,489 [pool-8-thread-1]	INFO	i.a.c.i.LineGobbler(voidCall):177 -
k
A message from kapa.ai
Based on the logs you provided, the pod appears to have completed its discovery process successfully. The log lines indicate that the catalog was written to the API, the workload was marked as successful, and the process exited with code 0. The only unusual message is about duplicate headers in the Google Sheet, but this is logged as an INFO and does not indicate a failure:
Copy code
Duplicate headers found in sheet {column}. Ignoring them: [Undefined]
This message is informational and should not cause the process to fail. The rest of the log shows a normal and successful completion of the discovery step. However, you are still seeing an
HTTP 524
error in the Airbyte UI. Based on similar issues in the knowledge sources, here are some possible causes and next steps: 1. Timeouts Between Components: Even if the pod finishes successfully, a timeout (such as HTTP 524) can occur if the result is not communicated back to the Airbyte server or UI in time. This can be due to: - Network issues between the pod and the Airbyte server. - The Airbyte server or webapp not being able to process the result quickly enough. - Ingress or proxy timeouts (if you are using an ingress controller, check and increase its timeout settings) [see similar timeout issues](https://discuss.airbyte.io/t/1207). 2. Resource Constraints: If your cluster or Airbyte deployment is under-resourced, it can cause delays or failures in communication between components, even if the pod itself completes successfully. Increasing CPU and memory limits for Airbyte components has resolved similar issues for other users [see resource-related 504/524 issues](https://github.com/airbytehq/airbyte/issues/42135). 3. Check Airbyte Server, Scheduler, and Worker Logs: Since the pod logs look normal, check the logs of the Airbyte server, scheduler, and worker pods around the time of your discovery attempt. There may be errors or warnings indicating why the result was not processed or returned to the UI [as suggested in troubleshooting discussions](https://discuss.airbyte.io/t/594). 4. UI or API Bug: In rare cases, the UI may not update correctly even if the backend process succeeds. Try refreshing the UI or checking the connection status via the Airbyte API. Summary: Your pod completed successfully, so the issue is likely with communication or timeouts between Airbyte components, not with the connector itself. Focus on checking resource allocation, ingress/proxy timeouts, and the logs of the Airbyte server, scheduler, and worker for more details. If you need more targeted help, please share any relevant errors from those logs or details about your ingress/proxy setup.
p
@kapa.ai Could the problem be the pod's name? I've checked the server and worker logs and nothing shows up. These are the server logs :
Copy code
2025-07-18 09:11:28,029 [scheduler-executor-thread-12]	INFO	i.a.c.s.h.SchedulerHandler(createJob):600 - Found the following streams to reset for connection 44b41333-2749-4fff-bd4e-b03cce266637: []
2025-07-18 09:11:28,097 [scheduler-executor-thread-12]	INFO	i.a.c.h.ResourceRequirementsUtils(getResourceRequirementsForJobType):64 - Merged resource requirements. mergedResourceReqs=io.airbyte.config.ResourceRequirements@6751f6f4[cpuRequest=0.5,cpuLimit=1,memoryRequest=1Gi,memoryLimit=2Gi,ephemeralStorageRequest=<null>,ephemeralStorageLimit=<null>,additionalProperties={}] connectionResourceReqs=null actorResourceReqs=null actorDefinitionResourceReqs=null workerDefaultResourceReqs=io.airbyte.config.ResourceRequirements@cfef3fc[cpuRequest=0.5,cpuLimit=1,memoryRequest=1Gi,memoryLimit=2Gi,ephemeralStorageRequest=<null>,ephemeralStorageLimit=<null>,additionalProperties={}] jobType=sync
2025-07-18 09:11:28,098 [scheduler-executor-thread-12]	INFO	i.a.c.h.ResourceRequirementsUtils(getResourceRequirementsForJobType):64 - Merged resource requirements. mergedResourceReqs=io.airbyte.config.ResourceRequirements@55007f41[cpuRequest=0.5,cpuLimit=1,memoryRequest=1Gi,memoryLimit=2Gi,ephemeralStorageRequest=<null>,ephemeralStorageLimit=<null>,additionalProperties={}] connectionResourceReqs=null actorResourceReqs=null actorDefinitionResourceReqs=null workerDefaultResourceReqs=io.airbyte.config.ResourceRequirements@54847206[cpuRequest=0.5,cpuLimit=1,memoryRequest=1Gi,memoryLimit=2Gi,ephemeralStorageRequest=<null>,ephemeralStorageLimit=<null>,additionalProperties={}] jobType=sync
2025-07-18 09:11:28,098 [scheduler-executor-thread-12]	INFO	i.a.p.j.DefaultJobPersistence(enqueueJob):589 - enqueuing pending job for scope: 44b41333-2749-4fff-bd4e-b03cce266637
2025-07-18 09:11:28,101 [scheduler-executor-thread-12]	INFO	i.a.c.s.h.SchedulerHandler(createJob):648 - New job created, with id: 6269
2025-07-18 09:11:29,708 [io-executor-thread-10]	INFO	i.a.c.s.h.ConnectionsHandler(applySchemaChange):1368 - Applying schema change for connection '44b41333-2749-4fff-bd4e-b03cce266637' only
2025-07-18 09:11:29,846 [io-executor-thread-10]	INFO	i.a.c.s.h.ConnectionsHandler(applySchemaChange):1399 - Propagating changes for connectionId: '44b41333-2749-4fff-bd4e-b03cce266637', new catalogId 'dc546c21-e2fd-4b66-b2e3-5eb5d390744c'
2025-07-18 09:11:29,846 [io-executor-thread-10]	INFO	i.a.c.s.h.h.ConnectionTimelineEventHelper(logSchemaChangeAutoPropagationEventInConnectionTimeline):276 - Diff is empty. Bypassing logging an event.
2025-07-18 09:11:29,846 [io-executor-thread-10]	INFO	i.a.c.s.h.ConnectionsHandler(applySchemaChange):1402 - Sending notification of schema auto propagation for connectionId: '44b41333-2749-4fff-bd4e-b03cce266637'
2025-07-18 09:11:29,846 [io-executor-thread-10]	INFO	i.a.c.s.h.h.NotificationHelper(getSchemaUpdateNotification):58 - No diff to report for connection: '44b41333-2749-4fff-bd4e-b03cce266637'; skipping notification.
These are the worker logs:
Copy code
2025-07-18 09:11:28,517 [workflow-method-connection_manager_44b41333-2749-4fff-bd4e-b03cce2...-8f9b7c7e-2251-4f3d-8883-a1f70cc3ee8a]	INFO	i.a.w.t.s.ConnectionManagerWorkflowImpl(checkConnections):587 - SOURCE CHECK: Skipped, last attempt was not a failure
2025-07-18 09:11:28,517 [workflow-method-connection_manager_44b41333-2749-4fff-bd4e-b03cce2...-8f9b7c7e-2251-4f3d-8883-a1f70cc3ee8a]	INFO	i.a.w.t.s.ConnectionManagerWorkflowImpl(checkConnections):588 - DESTINATION CHECK: Skipped, last attempt was not a failure
2025-07-18 09:11:30,033 [Activity Executor taskQueue="SYNC", namespace="default": 12131]	INFO	i.a.w.t.s.AsyncReplicationActivityImpl(startReplication):148 - Starting async replication
2025-07-18 09:11:33,849 [Activity Executor taskQueue="SYNC", namespace="default": 12131]	INFO	i.a.w.s.WorkloadApiWorker(createWorkload):111 - Creating workload 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync
2025-07-18 09:12:53,863 [Activity Executor taskQueue="SYNC", namespace="default": 12132]	INFO	i.a.w.t.s.InvokeOperationsActivityImpl(invokeOperations):48 -
----- START POST REPLICATION OPERATIONS -----


2025-07-18 09:12:53,863 [Activity Executor taskQueue="SYNC", namespace="default": 12132]	INFO	i.a.w.t.s.InvokeOperationsActivityImpl(invokeOperations):79 - No post-replication operation(s) to perform.
2025-07-18 09:12:53,863 [Activity Executor taskQueue="SYNC", namespace="default": 12132]	INFO	i.a.w.t.s.InvokeOperationsActivityImpl(invokeOperations):82 -
----- END POST REPLICATION OPERATIONS -----
These are the logs for the workload launcher:
Copy code
2025-07-18 09:11:37,834 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.s.m.Stage(apply):41 - APPLY Stage: LOAD_SHED — (workloadId = 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync) — (dataplaneId = local)
2025-07-18 09:11:37,834 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.s.m.Stage(apply):41 - APPLY Stage: CHECK_STATUS — (workloadId = 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync) — (dataplaneId = local)
2025-07-18 09:11:37,842 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.s.CheckStatusStage(applyStage):65 - No pod found running for workload 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync
2025-07-18 09:11:37,842 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.s.m.Stage(apply):41 - APPLY Stage: MUTEX — (workloadId = 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync) — (dataplaneId = local)
2025-07-18 09:11:37,842 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.s.EnforceMutexStage(applyStage):55 - Mutex key: 44b41333-2749-4fff-bd4e-b03cce266637 specified for workload: 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync. Attempting to delete existing pods...
2025-07-18 09:11:37,847 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.s.EnforceMutexStage(applyStage):69 - Mutex key: 44b41333-2749-4fff-bd4e-b03cce266637 specified for workload: 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync found no existing pods. Continuing...
2025-07-18 09:11:37,847 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.s.m.Stage(apply):41 - APPLY Stage: LAUNCH — (workloadId = 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync) — (dataplaneId = local)
2025-07-18 09:11:37,848 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.f.InitContainerFactory(create):42 - [initContainer] image: airbyte/workload-init-container:1.5.0 resources: ResourceRequirements(claims=[], limits={memory=2Gi, cpu=1}, requests={memory=2Gi, cpu=1}, additionalProperties={})
2025-07-18 09:11:37,848 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.KubePodClient(launchReplication):87 - Launching replication pod: replication-job-6269-attempt-0 with containers:
2025-07-18 09:11:37,848 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.KubePodClient(launchReplication):88 - [source] image: airbyte/source-google-sheets:0.9.4 resources: ResourceRequirements(claims=[], limits={memory=2Gi, cpu=1}, requests={memory=1Gi, cpu=0.5}, additionalProperties={})
2025-07-18 09:11:37,848 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.KubePodClient(launchReplication):89 - [destination] image: airbyte/destination-postgres:2.2.1 resources: ResourceRequirements(claims=[], limits={memory=2Gi, cpu=1}, requests={memory=1Gi, cpu=0.5}, additionalProperties={})
2025-07-18 09:11:37,848 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.KubePodClient(launchReplication):90 - [orchestrator] image: airbyte/container-orchestrator:1.5.0 resources: ResourceRequirements(claims=[], limits={memory=2Gi, cpu=1}, requests={memory=2Gi, cpu=1}, additionalProperties={})
2025-07-18 09:11:47,662 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.c.WorkloadApiClient(updateStatusToLaunched):61 - Attempting to update workload: 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync to LAUNCHED.
2025-07-18 09:11:47,669 [Activity Executor taskQueue="workload_default", namespace="default": 3344]	INFO	i.a.w.l.p.h.SuccessHandler(accept):76 - Pipeline completed for workload: 44b41333-2749-4fff-bd4e-b03cce266637_6269_0_sync.
2025-07-18 09:13:26,380 [scheduled-executor-thread-1]	INFO	i.a.w.l.PodSweeper(sweepPods):56 - Starting pod sweeper cycle in namespace [airbyte]...
2025-07-18 09:13:26,380 [scheduled-executor-thread-1]	INFO	i.a.w.l.PodSweeper(sweepPods):67 - Will sweep Succeeded pods older than 2025-07-18T09:03:26.380Z (UTC).
2025-07-18 09:13:26,380 [scheduled-executor-thread-1]	INFO	i.a.w.l.PodSweeper(sweepPods):70 - Will sweep unsuccessful pods older than 2025-07-18T07:13:26.380Z (UTC).
2025-07-18 09:13:26,400 [scheduled-executor-thread-1]	INFO	i.a.w.l.PodSweeper(sweepPods):134 - Completed pod sweeper cycle.
k
A message from kapa.ai
Based on the knowledge sources provided, there is no evidence that the pod name itself (such as
le-sheets-discover-f2ba9114-64d4-43b0-a758-44f81f4f3c2e-0-anfaz
) would cause a timeout or connection issue in Airbyte. The only pod name-related issue documented is when the pod's metadata labels (often derived from image names or other identifiers) exceed Kubernetes' 63-character limit or contain invalid characters, which results in a pod creation failure with a clear error message in the logs—not a silent timeout or HTTP 524 error. In those cases, the error is explicit and not silent, and you would see it in the logs ([see example](https://github.com/airbytehq/airbyte/issues/43376)). In your logs, both the Airbyte server and worker logs show normal activity, and there are no errors or warnings related to pod creation, naming, or label validation. The workload launcher logs also show the pod being launched and the pipeline completing successfully. Summary: - There is no indication in the knowledge sources that the pod name format you provided would cause a timeout or HTTP 524 error. - Pod name issues typically result in explicit errors about invalid labels or name length, not silent timeouts. - Since your logs show normal operation and no errors, the root cause is likely elsewhere (e.g., networking, timeouts, or resource constraints), not the pod name. If you continue to experience issues, consider reviewing ingress/proxy timeouts, resource allocation, and network connectivity as discussed in previous answers and in the knowledge sources ([example](https://github.com/airbytehq/airbyte/issues/45156)).
p
@kapa.ai The problem seems to come from Cloudflare and its default read timeout at 100 seconds. Airbyte is not managing to do the discovery within that time. Is that normal for a google sheets? Is there a way to speed that up?
k
A message from kapa.ai
It is not uncommon for schema discovery in Airbyte to take longer than 100 seconds, especially if your Google Sheet has a large number of rows, columns, or worksheets. The Google Sheets API itself is subject to rate limits (300 read requests per minute per project, 60 per minute per user), and Airbyte batches requests to respect these limits, which can slow down discovery and sync operations for larger or more complex sheets. This is explicitly mentioned in the documentation as a performance consideration for the Google Sheets connector [Google Sheets destination docs](https://docs.airbyte.com/integrations/destinations/google-sheets#rate-limiting--performance-considerations). Ways to speed up discovery: - Reduce the size and complexity of your Google Sheet: Fewer rows, columns, and worksheets will result in faster discovery. - Limit the number of columns and data per worksheet: The more data and columns, the longer the API calls will take. - Batch size: You can adjust the batch size parameter in the connector settings, but the default is already set high (1,000,000 rows). Lowering it may help in some cases if you are hitting per-request timeouts, but it will not bypass API rate limits [Google Sheets source docs](https://docs.airbyte.com/integrations/sources/google-sheets#for-airbyte-open-source). - Avoid using the same service account for multiple connectors: The docs recommend not using the same user/service account for more than 3 instances to avoid hitting rate limits [Google Sheets source limitations](https://docs.airbyte.com/integrations/sources/google-sheets#limitations--troubleshooting). Cloudflare timeout: A 100-second timeout from Cloudflare is a known limitation. If your discovery takes longer, you will need to either: - Increase the timeout on your proxy (if possible), or - Ensure your discovery completes within the timeout by reducing the data size or complexity as above. Is it normal? Yes, for large or complex Google Sheets, it is normal for discovery to take longer than 100 seconds due to API rate limits and the way Airbyte batches requests. For small sheets, discovery should be much faster. If you consistently need to support large sheets, consider running Airbyte behind a proxy or ingress that allows for longer timeouts, as this is a common solution for similar issues with other connectors and large sources [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). If you need more granular advice, please provide details about the size and structure of your Google Sheet.