Akhil Kumar
09/17/2025, 1:24 PMkapa.ai
09/17/2025, 1:24 PMdestination-snowflake-write-68411-0-mxqyf) has been up for 15 hours, which matches the stuck job. - No source or destination containers are stuck in a "Terminating" or "Exited" state. ### 3. Troubleshooting Steps #### a. Check Worker and Temporal Logs Issues with the Temporal service or the Airbyte worker can cause jobs to hang and block new jobs from starting. Check the logs for the airbyte-worker and airbyte-temporal containers for errors or warnings. Look for messages about workflow failures, resource exhaustion, or connection issues. For example, in one case, Temporal was stuck and consuming high CPU, preventing jobs from running, and the UI would show jobs as "running" or "pending" indefinitely [[source]](https://github.com/airbytehq/airbyte/issues/44833). #### b. Restart Airbyte Services A restart of the Airbyte services (especially the worker and temporal containers) often resolves stuck jobs and unblocks the job queue. You can do this with: bash docker-compose restart or restart the specific containers: bash docker restart airbyte-worker airbyte-temporal This has been reported to resolve similar issues where jobs are stuck and no new jobs can start [[source]](https://discuss.airbyte.io/t/1018). #### c. Check for Resource Exhaustion Even if your containers are "Up," resource exhaustion (especially memory) can cause jobs to hang. Monitor your EC2 instance's CPU, memory, and disk usage. If you see high usage, consider increasing your instance size or adjusting resource limits. #### d. Inspect Airbyte Job Status Sometimes, jobs are stuck in the Airbyte database and need to be manually cleared. If restarting does not help, you may need to investigate the Airbyte database for jobs stuck in a "running" state and update them to "failed" or "cancelled." This is an advanced step and should be done with caution. #### e. Review Connector Logs Check the logs of the running connector containers (e.g., destination-snowflake-write-68411-0-mxqyf) for any errors or signs of being stuck in a loop. #### f. UI and API Responsiveness If the Airbyte UI is unresponsive or you cannot cancel jobs, this may indicate a deeper issue with the worker or temporal services, or with the Airbyte database [[source]](https://discuss.airbyte.io/t/2648). ### 4. Preventative Measures - Regularly monitor Airbyte job statuses and set up alerting for jobs that run longer than expected. - Consider upgrading Airbyte to the latest stable version, as many stuck-job issues have been addressed in newer releases. - Ensure your .env and docker-compose files are up to date with all required configuration lines, especially after upgrades [[source]](https://discuss.airbyte.io/t/2648). --- Summary of Immediate Actions: 1. Check logs for airbyte-worker and airbyte-temporal for errors. 2. Restart the Airbyte worker and temporal containers. 3. Monitor EC2 resource usage. 4. If the issue persists, investigate the Airbyte database for stuck jobs. If after these steps the issue is not resolved, please provide logs from the worker and temporal containers for further diagnosis.Akhil Kumar
09/17/2025, 2:42 PMkapa.ai
09/17/2025, 2:43 PMkapa.ai
09/17/2025, 2:43 PMAkhil Kumar
09/17/2025, 3:30 PMkapa.ai
09/17/2025, 3:30 PMkapa.ai
09/17/2025, 3:31 PMairbyte-worker and airbyte-temporal containers temporarily resolves the issue but the problem returns, this suggests an underlying persistent problem with your Airbyte deployment. Based on the knowledge sources, here are the most likely causes and next steps: --- ### 1. Resource Exhaustion Several users have reported that Airbyte jobs hang or fail to start when the system runs out of resources, especially memory or disk. This can happen even if containers appear "Up" in docker ps. For example, if MinIO (used for job logging) runs out of disk space, jobs can hang indefinitely. Increasing the storage or cleaning up old logs in MinIO has resolved similar issues for others. You can check and clear MinIO logs as follows: - Delete old logs in MinIO (be careful, this will remove job logs): # Inside the MinIO container rm -rf /storage/airbyte-storage/job-logging/workspace/* rm -rf /storage/airbyte-storage/workload/output/* - Increase MinIO storage by adjusting your Docker or Kubernetes volume settings [[All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812)]. --- ### 2. Temporal Database or Service Issues If the Temporal service or its database grows too large (e.g., the history_node table), or if there are too many open workflows, jobs can get stuck and the system can become unresponsive. Setting the TEMPORAL_HISTORY_RETENTION_IN_DAYS environment variable to a lower value (e.g., 7 days) can help prevent the Temporal database from growing too large [[Self-hosted Airbyte in Docker stuck and will not trigger sync](https://github.com/airbytehq/airbyte/issues/44833)]. yaml env_vars: TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7 --- ### 3. Configuration Drift After Upgrade If you recently upgraded Airbyte, ensure your .env and docker-compose files include all required configuration lines for your current version. Missing or outdated configs (especially for Micronaut or Temporal) can cause the worker to crash or hang [[0.40.7 Worker Micronaut Update Causing Worker to Constantly Crash](https://discuss.airbyte.io/t/2648)]. --- ### 4. Underlying Bugs or Workflow Corruption Some issues are caused by bugs or workflow corruption in Airbyte or Temporal. In some cases, only a full reset (deleting volumes and re-initializing Airbyte) resolves the issue, but this will delete all your configurations and jobs. This is a last resort [[Creating a Python Destination (DuckDB) - Resetting Airbyte](https://airbyte.com/tutorials/creating-duckdb-destination-with-python)]. --- ### Recommended Next Steps 1. Check resource usage (CPU, memory, disk) on your EC2 instance and inside your containers. 2. Clean up MinIO storage if disk space is low. 3. Set or lower TEMPORAL_HISTORY_RETENTION_IN_DAYS to reduce Temporal DB size. 4. Review and update your configuration files to match your Airbyte version. 5. Monitor logs for recurring errors in airbyte-worker and airbyte-temporal. 6. If the issue persists, consider upgrading Airbyte to the latest stable version, as many stuck-job issues have been fixed in newer releases. If you continue to experience issues, please provide specific error messages from the worker and temporal logs for more targeted troubleshooting.Akhil Kumar
09/17/2025, 3:40 PMTEMPORAL_HISTORY_RETENTION_IN_DAYS and update?kapa.ai
09/17/2025, 3:40 PMkapa.ai
09/17/2025, 3:40 PMTEMPORAL_HISTORY_RETENTION_IN_DAYS environment variable in your Airbyte deployment configuration. The exact location depends on how you deployed Airbyte: --- ### For Docker-based Deployments Add or update the following line in your .env file (located in your Airbyte installation directory): TEMPORAL_HISTORY_RETENTION_IN_DAYS=7 After updating, restart your Airbyte containers for the change to take effect. --- ### For abctl or Helm/Kubernetes Deployments Add or update the variable in your values.yaml file: yaml global: env_vars: TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7 This will configure the retention period for Temporal job history. The default is 30 days if not set [[Configure TEMPORAL_HISTORY_RETENTION_IN_DAYS in abctl deployment](https://github.com/airbytehq/airbyte/discussions/46355)]. --- Note: This variable controls how long Temporal retains job history, which can help manage disk usage and prevent issues with stuck jobs if the Temporal database grows too large [[Configuring Airbyte - Data Retention](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#data-retention)]. If you need more detailed steps for your specific deployment type, let me know!Akhil Kumar
09/17/2025, 3:46 PMkapa.ai
09/17/2025, 3:46 PMkapa.ai
09/17/2025, 3:47 PMTEMPORAL_HISTORY_RETENTION_IN_DAYS variable in your Docker-based Airbyte deployment, follow these steps: --- ### Where to Check and Update #### 1. Check the Current Value - The value is typically set in your Airbyte .env file, located in your Airbyte installation directory. - Look for a line like: TEMPORAL_HISTORY_RETENTION_IN_DAYS=30 If it’s not present, the default is 30 days [[Configuring Airbyte - Data Retention](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#data-retention)]. #### 2. Update the Value - Open your .env file in a text editor. - Add or update the line to your desired retention period, for example: TEMPORAL_HISTORY_RETENTION_IN_DAYS=7 - Save the file. #### 3. Apply the Change - After updating the .env file, you must restart your Airbyte containers for the change to take effect: bash docker-compose down docker-compose up -d or, if you use plain Docker: bash docker restart airbyte-worker airbyte-temporal --- Note: This variable controls how long Temporal retains job history, which helps manage disk usage and can prevent issues with stuck jobs if the Temporal database grows too large [[Configuring Airbyte - Data Retention](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#data-retention)]. If you do not see the variable in your .env file, you can safely add it. If you are using a different deployment method (like Kubernetes or abctl), the variable should be set in your values.yaml file under global.env_vars [[Configure TEMPORAL_HISTORY_RETENTION_IN_DAYS in abctl deployment](https://github.com/airbytehq/airbyte/discussions/46355)]. Let me know if you need step-by-step help for your specific deployment!Akhil Kumar
09/17/2025, 3:56 PMkapa.ai
09/17/2025, 3:56 PMkapa.ai
09/17/2025, 3:56 PM.env file, which is where the TEMPORAL_HISTORY_RETENTION_IN_DAYS variable is typically set for Docker-based Airbyte deployments. The knowledge sources indicate that this environment variable is used to control Temporal job history retention, and it should be set in your environment configuration [[Configuring Airbyte - Data Retention](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#data-retention)]. If the .env file is missing, you can create one in your Airbyte directory and add the following line: TEMPORAL_HISTORY_RETENTION_IN_DAYS=7 After creating or updating the .env file, restart your Airbyte containers to apply the change. If you are unsure whether your deployment uses the .env file or another method to set environment variables, the knowledge sources do not provide explicit instructions for every possible setup. However, for standard Docker Compose deployments, the .env file is the expected location. If you are using a different deployment method (such as Kubernetes or abctl), the variable should be set in the appropriate configuration file (like values.yaml) [[Configure TEMPORAL_HISTORY_RETENTION_IN_DAYS in abctl deployment](https://github.com/airbytehq/airbyte/discussions/46355)]. If you need more specific guidance for your setup, please provide details on how you originally installed Airbyte.Akhil Kumar
09/17/2025, 4:21 PMkapa.ai
09/17/2025, 4:21 PMkapa.ai
09/17/2025, 4:21 PMglobal section in your .env file for Docker-based Airbyte deployments. The global section is used in values.yaml for Kubernetes or abctl deployments, not in .env files. For Docker, simply add the following line anywhere in your .env file (or create the file if it does not exist): TEMPORAL_HISTORY_RETENTION_IN_DAYS=7 This will set the retention period for Temporal job history. After saving the file, restart your Airbyte containers for the change to take effect. This approach is confirmed in the official documentation and community answers for Docker deployments [[Configuring Airbyte - Data Retention](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#data-retention)]. No special section or formatting is required—just add the variable as a new line.Akhil Kumar
09/17/2025, 4:36 PM