I see some of my syncs hanging in the UI even thou...
# ask-ai
y
I see some of my syncs hanging in the UI even though they're actually completed when I checked the logs. When this happens, I just cancel those syncs, but why does this happen? Do I need to adjust resource allocations or anything? I'm using self-hosted airbyte on a kubernetes cluster
k
Syncs hanging in the Airbyte UI, even though they appear completed in the logs, is a known issue that has affected several users running Airbyte on Kubernetes. There are a few common causes and troubleshooting steps based on the experiences shared in the knowledge sources: ### Common Causes 1. Resource Constraints: Insufficient CPU or memory can cause syncs to hang or get stuck in a "Running" state, even after the actual data transfer is done. Increasing memory and CPU allocations for your Airbyte pods (especially the worker pods) has helped some users resolve similar issues. Monitoring resource usage during syncs is recommended to identify bottlenecks [Sync Stuck in Running / K8s](https://discuss.airbyte.io/t/680). 2. Pod Scheduling or Pending State: Sometimes, the worker or orchestrator pods required for a sync cannot be scheduled due to lack of resources or other Kubernetes issues, causing the sync to hang while "waiting for pod" [Deploy Kubernetes: Sync hangs on waiting until pod is ready](https://discuss.airbyte.io/t/1687), [Syncs getting stuck on](https://discuss.airbyte.io/t/2394). 3. Orchestrator/Worker Pod Disruption: If a pod (especially the orchestrator) is killed (e.g., due to node autoscaling or maintenance), the Airbyte server may not detect the failure, leaving the sync in a perpetual "Running" state. Restarting the pods or the entire instance can temporarily resolve this, but it's not ideal for production [sync jobs hang when orchestrator pod is killed](https://github.com/airbytehq/airbyte/issues/45591). 4. Persistent Volume Issues: If the storage (e.g., MinIO PVC) fills up, syncs can hang indefinitely. Increasing the storage size or cleaning up old logs can resolve this [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812). 5. Sidecar Containers: Adding custom sidecars to Airbyte pods (for proxies, logging, etc.) without proper shutdown handling can cause syncs to hang. Disabling unnecessary sidecars has resolved hanging issues for some users [Redshift Destination Hanging](https://discuss.airbyte.io/t/4574). ### Troubleshooting Steps - Check Resource Usage: Monitor CPU and memory usage of your Airbyte pods during syncs. If you see high utilization or OOM kills, increase the resource requests/limits. - Review Pod Status: Use
kubectl get pods
to check if any Airbyte pods are stuck in Pending or CrashLoopBackOff states. - Check Persistent Storage: Ensure your MinIO or other storage backends have enough free space. - Restart Pods: Restarting Airbyte pods can clear stuck jobs, but this is a workaround, not a fix. - Upgrade Airbyte: Some hanging issues have been addressed in newer Airbyte versions, including an autorecovery service that detects and restarts hanging syncs [Release Notes v1.4](https://docs.airbyte.com/release_notes/v-1.4#-bug-fixes). - Avoid Unnecessary Sidecars: If you use sidecars, ensure they do not interfere with pod shutdown or job completion. ### Configuration Tips - Adjust
MAX_SYNC_WORKERS
and related worker settings to match your cluster's capacity, but ensure you have enough resources to support the desired parallelism [Syncs taking almost an hour for <20kb of data](https://discuss.airbyte.io/t/3780). - If you need to set a timeout for sync jobs, the
SYNC_JOB_MAX_TIMEOUT_DAYS
environment variable can be used, but the minimum is 1 day [Sync hangs until I cancel](https://discuss.airbyte.io/t/709). If you continue to see hanging syncs after checking these areas, consider upgrading to the latest Airbyte version, as recent releases include improvements for detecting and recovering from stuck jobs automatically. If you need more specific guidance, please provide details about your resource allocations, Airbyte version, and any relevant pod or sync logs.