Hi. I am getting this error from our MySQl to BigQ...
# ask-ai
r
Hi. I am getting this error from our MySQl to BigQuery pipeline
[transient_error] Airbyte could not start the sync process or track the progress of the sync
. The VM we're using is barely using 20% of it's resources for the Airbuyte sync. What else could we do to prevent this from happening?
k
The error
[transient_error] Airbyte could not start the sync process or track the progress of the sync
in your MySQL to BigQuery pipeline can be caused by several factors beyond just VM resource utilization. Here are some possible causes and troubleshooting steps based on the knowledge sources: 1. Transient Issues and Heartbeats Airbyte uses a heartbeating mechanism to monitor the responsiveness of sources and destinations. If a source or destination does not respond within a certain timeframe, Airbyte triggers a heartbeat error and restarts the job. These errors are often transient and may resolve automatically, but persistent issues indicate a deeper problem. Common causes include: - Slow database queries (e.g., unindexed columns, under-provisioned database) - Slow destination write operations (e.g., BigQuery resource availability) - API rate limits or asynchronous responses (less likely for MySQL/BigQuery) If the error persists, it may be a sign of a more serious issue that needs investigation, such as network connectivity, database performance, or configuration problems. Restarting the job is Airbyte's default response to avoid endless jobs and highlight potential issues for users to address. [See more on heartbeats and known causes](https://docs.airbyte.com/platform/understanding-airbyte/heartbeats) 2. MySQL-Specific Issues - Query Timeouts: If MySQL queries take too long, Airbyte may abort the sync. Check your MySQL server's
max_execution_time
and ensure it is set higher than Airbyte's checkpoint interval. - Binlog Retention (for CDC): If using CDC, ensure your MySQL binlog retention is set high enough to avoid missing offsets between syncs. - Connection Issues: Double-check network connectivity, credentials, and any firewall or VPC settings that could intermittently block access. [See MySQL troubleshooting guide](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting) 3. Resource Allocation Even if your VM is underutilized, Airbyte jobs may be limited by container resource settings (CPU/memory limits) or by the number of allowed concurrent workers. Consider increasing the memory and CPU limits for Airbyte jobs, and review the relevant environment variables (e.g.,
JOB_MAIN_CONTAINER_MEMORY_LIMIT
,
JOB_MAIN_CONTAINER_CPU_LIMIT
) to ensure they are not set too low. [See scaling and resource allocation discussion](https://discuss.airbyte.io/t/995) 4. Other Considerations - Check for any errors in the Airbyte logs related to network, authentication, or schema validation. - Ensure both Airbyte and your connectors are up to date, as bugs and performance issues are regularly addressed in new releases. - If you are syncing a large number of tables or a large volume of data, consider splitting your syncs into smaller batches. If the issue continues after these checks, please provide more detailed logs or error messages for further diagnosis. Summary: The error is likely due to transient connectivity, database performance, or configuration issues rather than VM resource exhaustion. Review heartbeats, MySQL settings, Airbyte job/container resource limits, and connector versions to identify and resolve the root cause. If you need more targeted help, sharing the full sync logs and details about your Airbyte and connector versions will help the community provide more specific advice.
r
@kapa.ai The job does not restart at all, it is just in a suspended state.
k
A message from kapa.ai
Thank you for clarifying that the job does not restart and remains in a suspended state. Based on the knowledge sources, this behavior—where sync jobs hang indefinitely or remain stuck in a "pending," "queued," or "starting" state without progressing or restarting—has been reported by other users as well. This is not the expected behavior for Airbyte, which should either retry the job or fail it after a certain period, according to its retry and backoff logic. When jobs remain suspended, it often points to an internal state or orchestration issue within Airbyte itself, rather than a simple transient error or resource exhaustion. Key points from the sources: - Users have reported sync jobs hanging indefinitely, sometimes after a failed or problematic sync, and even after cancelling jobs or restarting deployments, the jobs remain stuck and do not progress or restart. This can affect all connections, regardless of the connector used. [See: All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812), [All syncs hanging indefinitely](https://github.com/airbytehq/airbyte/discussions/55833), [Sync job hangs for days](https://github.com/airbytehq/airbyte/issues/38345), [All Airbyte Syncs stopped for several days](https://discuss.airbyte.io/t/1018) - In some cases, users have found that only a full restart of the Airbyte platform (e.g.,
docker-compose restart
or redeploying on Kubernetes) temporarily resolves the issue, but the root cause may persist or recur. - There is no official solution documented in the knowledge sources for this specific "suspended state" problem. The Airbyte team and community have suggested: - Restarting the Airbyte platform or relevant pods/services. - Upgrading Airbyte and connectors to the latest versions, as some bugs have been fixed in newer releases. - Checking for stuck or orphaned jobs in the Airbyte UI and cancelling them. - Reviewing logs for errors related to workflow orchestration (e.g., Temporal errors) or state management. - If the problem persists after these steps, it may indicate a deeper issue with Airbyte's internal state or orchestration layer, which may require intervention from the Airbyte engineering team. Summary: When Airbyte jobs remain suspended and do not restart, it is likely due to an internal orchestration or state management issue. Restarting Airbyte or upgrading may help, but if the issue continues, you may need to escalate it with detailed logs to the Airbyte team, as there is no documented workaround or fix in the current knowledge sources for this specific scenario. If you have not already, please try: - Restarting the Airbyte platform. - Upgrading to the latest Airbyte and connector versions. - Cancelling all stuck jobs and re-running the syncs. If the issue persists, consider opening a detailed issue with logs, as this appears to be a known but unresolved problem in some Airbyte deployments [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812) [Sync job hangs for days](https://github.com/airbytehq/airbyte/issues/38345).