Vishal Garg
07/27/2025, 8:11 AMVishal Garg
07/27/2025, 8:11 AMkapa.ai
07/27/2025, 8:12 AMairbyte-worker process can experience resource leaks, leading to excessive memory and thread usage. When this happens, new jobs cannot spawn the threads they need, resulting in errors like "unable to create native thread: possibly out of memory or process/resource limits reached." Restarting the airbyte-worker resolves the issue temporarily, but it may recur if the underlying cause isn't addressed. Monitoring memory and thread usage, and collecting more diagnostics when the issue occurs, is recommended for further troubleshooting [Resource leak in airbyte-worker](https://discuss.airbyte.io/t/2309). 2. Temporal Service Issues: In Docker deployments, if the Temporal service is stuck or overloaded (e.g., "service rate limit exceeded"), jobs may not be triggered, and you may see errors like "Server temporarily unavailable (http.502...)" in the UI or when using Airflow's AirbyteTriggerSyncOperator. High CPU usage by the Temporal container and errors such as "query task not found, or already expired" in the worker logs are indicators of this problem. No job containers for syncs or connection checks are created in this state. Restarting the affected containers or the entire stack may be necessary [Self-hosted Airbyte in Docker stuck and will not trigger sync](https://github.com/airbytehq/airbyte/issues/44833). 3. Airflow Integration Issues: When triggering Airbyte jobs from Airflow using the AirbyteTriggerSyncOperator, sometimes Airbyte does not communicate the result of the job back to Airflow, leaving the Airflow task in a "running" state even though the Airbyte job has completed successfully. This could be due to issues on either the Airbyte or Airflow side. Checking Airflow and Airbyte logs, and manually querying Airbyte’s Job API to verify job status, can help diagnose where the breakdown is occurring [Trigger Airbyte job using Airflow/Composer](https://discuss.airbyte.io/t/1603). 4. Job Hangs and Missing Stats: There are cases where sync jobs hang indefinitely, with logs showing repeated warnings about "Missing stats for job ... attempt ...". This may indicate deeper issues in the job orchestration or resource management layers, and often requires investigation into pod lifecycle, resource allocation, and the health of supporting services like Temporal and Kubernetes [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812). Summary: If your Airbyte jobs are not running, check for resource exhaustion (memory, threads), Temporal service health, integration issues with orchestration tools like Airflow, and review logs for errors or warnings about job status and stats. Restarting affected services may provide a temporary fix, but persistent issues may require deeper investigation into resource management and service health.kapa.ai
07/27/2025, 8:12 AMio.airbyte.workload.launcher.pipeline.stages.model.StageError: io.airbyte.workers.exception.KubeClientException: Failed to create pod source-appsflyer-check-231-4-wbdnv. ... Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Operation: [patch] for kind: [Pod] with name: [source-appsflyer-check-231-4-wbdnv] in namespace: [airbyte] failed. ... Caused by: java.io.IOException: timeout ... Caused by: java.io.InterruptedIOException: timeout ... Caused by: java.io.IOException: Canceled indicates that the Airbyte workload launcher is attempting to create or patch a Kubernetes pod, but the operation is timing out. This is a known class of issues in Airbyte when the Kubernetes API server does not respond in time, or there are networking/connectivity issues between Airbyte and the Kubernetes cluster, or the cluster is under heavy load or misconfigured. Common causes for this error include: - Kubernetes API server is slow or unresponsive (network issues, API server under load, etc.). - Resource constraints in the cluster (not enough CPU/memory to schedule new pods). - Pod security policies, RBAC, or service account misconfiguration that prevent pod creation. - Timeouts in the underlying HTTP client (as seen in the stack trace). Relevant similar issues: - Other users have reported similar errors where pod creation fails due to timeouts or Kubernetes client exceptions, often related to cluster configuration, network, or permissions issues [[Pod creation fails with timeout](https://github.com/airbytehq/airbyte/issues/44443)]. What you can do: 1. Check the health and responsiveness of your Kubernetes API server. 2. Ensure your cluster has enough resources (CPU, memory, etc.) to schedule new pods. 3. Review Airbyte and Kubernetes logs for more details on why the pod creation is timing out. 4. Check for network issues between Airbyte and the Kubernetes API server. 5. Verify your RBAC and service account configuration to ensure Airbyte has permission to create pods. If the problem persists after these checks, you may need to provide more detailed logs or cluster information for further troubleshooting. The error is not specific to Airbyte's application logic, but rather to its interaction with the Kubernetes environment [[Pod creation fails with timeout](https://github.com/airbytehq/airbyte/issues/44443)].