What are the reasons syncs progress in the UI are ...
# ask-ai
y
What are the reasons syncs progress in the UI are running but when I check in the kubenetes, they're actually completed? Ive been having to cancel these ones and I don't want to keep doing that
k
There are several known reasons why Airbyte syncs may appear as "running" in the UI, even though the underlying Kubernetes jobs have actually completed: 1. Orchestrator Pod or Worker Issues: If the orchestrator pod (or worker pod) managing the sync is killed or evicted (e.g., due to autoscaling or node removal), the Airbyte server may not detect this and will keep the sync in a "running" state indefinitely. This is a known issue, and a workaround is to prevent orchestrator pods from being evicted, but ideally, Airbyte should detect and recover from such situations automatically. Currently, you have to manually cancel these jobs to unblock them [sync jobs hang when orchestrator pod is killed](https://github.com/airbytehq/airbyte/issues/45591). 2. Log Leaks or Process Mix-ups: There have been cases where logs from other syncs "leak" into the current sync, causing confusion in the job state and keeping the sync marked as "running" even after completion. This can also result in the UI not reflecting the true state of the sync, requiring manual intervention to cancel the job [Sync log leak - logs from other syncs polluting current sync and keeping it in "running" state](https://github.com/airbytehq/airbyte/issues/29173). 3. Resource or Concurrency Limits: When running a large number of concurrent syncs, jobs may get stuck in the "running" state due to resource exhaustion, misconfigured worker limits, or issues with the scheduler. Sometimes, jobs technically finish but the state is not updated in the UI, possibly due to communication issues between components or resource starvation [How to configure to have a larger number of concurrency?](https://discuss.airbyte.io/t/1077), [Syncs getting stuck on](https://discuss.airbyte.io/t/2394). 4. Old Airbyte Versions: Several users have reported that upgrading Airbyte to a newer version can resolve issues with jobs getting stuck in the "running" state. Older versions are more prone to these issues, and newer releases have introduced improvements and auto-recovery features for hanging syncs [All syncs hanging for days](https://discuss.airbyte.io/t/1916), [Release Notes v1.4 - Autorecovery for hanging connections](https://docs.airbyte.com/release_notes/v-1.4#-bug-fixes). 5. Memory or Resource Exhaustion: If the worker pods run out of memory or CPU, they may hang or fail silently, leaving the UI in a "running" state. Increasing resource limits or requests can sometimes help [Sync Stuck in Running / K8s](https://discuss.airbyte.io/t/680). Recommendations: - Upgrade to the latest Airbyte version to benefit from bug fixes and the new heartbeat/auto-recovery service. - Monitor orchestrator and worker pod health, and consider using pod anti-eviction annotations. - Review and adjust resource limits and concurrency settings. - If you continue to see this issue, check the logs for orchestrator and worker pods for errors or signs of premature termination. If you are on Airbyte 1.4 or later, the new heartbeat service should help automatically detect and recover from these "hanging" syncs, reducing the need for manual cancellation [Release Notes v1.4 - Autorecovery for hanging connections](https://docs.airbyte.com/release_notes/v-1.4#-bug-fixes).