<@U04S8PLJWMT> Sync failed 0 bytes | no records lo...
# ask-ai
m
@kapa.ai Sync failed 0 bytes | no records loaded | 51h 0m 29s Warning from airbyte_platform: An internal transient Airbyte error has occurred. The sync should work fine on the next retry. Setting attempt to FAILED because the workflow for this connection was restarted, and existing job state was cleaned. What is this? The sync finished at 2025-09-16 170338, (logs: 2025-09-16 170338 replication-orchestrator INFO ----- END REPLICATION ----- 2025-09-16 170338 replication-orchestrator INFO 2025-09-16 170339 replication-orchestrator INFO Returning output... 2025-09-16 170339 platform INFO Closing Segment analytics client... 2025-09-16 170339 platform INFO Waiting for Segment analytic client to flush enqueued messages... 2025-09-16 170339 platform INFO Segment analytic client flush complete. 2025-09-16 170339 platform INFO Segment analytics client closed. No new events will be accepted. 2025-09-16 170339 platform ERROR Sync output exceeds the max temporal message size of 2097152, actual is 2282161. 2025-09-16 170339 platform INFO ----- START POST REPLICATION OPERATIONS ----- 2025-09-16 170339 platform INFO No post-replication operation(s) to perform. 2025-09-16 170339 platform INFO ----- END POST REPLICATION OPERATIONS -----) but then the connection was blocked during 51h. Why?
k
Based on the information and logs you provided, here’s what happened: 1. Sync Attempt and Failure The sync job ran and finished with no records loaded (0 bytes), and the logs show the replication process ended normally:
Copy code
2025-09-16 17:03:38 replication-orchestrator INFO ----- END REPLICATION -----    2025-09-16 17:03:39 platform ERROR Sync output exceeds the max temporal message size of 2097152, actual is 2282161.
The error message indicates that the sync output exceeded the maximum allowed message size for Temporal (the workflow engine Airbyte uses). This is a known limitation: if the result of a sync (the output payload) is too large, Temporal will reject it, causing the job to fail with an internal error. This is not a user error, but an internal platform constraint. 2. Internal Transient Error and Retry The warning: > An internal transient Airbyte error has occurred. The sync should work fine on the next retry. means Airbyte recognized this as a transient (temporary) internal error, and the system is designed to retry the job automatically in such cases. The retry/backoff logic is built into Airbyte, and the job will be retried up to a configured number of times, with increasing backoff intervals between attempts. This is described in the documentation: after each failed attempt, Airbyte waits longer before retrying, up to a maximum number of attempts. The backoff intervals are 10s, 30s, 90s, and 4m30s by default, and the job can be retried up to 5 times for complete failures, or 10 times in total if no data is synchronized, or 20 times if some data is synchronized. These values are configurable for OSS users. You can see the backoff and retry logic in the logs and in the documentation [here](https://docs.airbyte.com/platform/understanding-airbyte/jobs#sync-jobs). 3. Workflow Restart and Job State Cleanup The message: > Setting attempt to FAILED because the workflow for this connection was restarted, and existing job state was cleaned. means that the underlying workflow (managed by Temporal) was restarted, possibly due to the error above or a platform event (like a node maintenance or crash). When this happens, Airbyte marks the current attempt as FAILED and cleans up any job state to ensure a clean slate for the next attempt. 4. Why the Connection Was Blocked for 51 Hours The 51-hour block likely represents the time the job was stuck in a failed or retrying state, possibly due to repeated failures caused by the same internal error (output size too large). Each retry would wait for the configured backoff period, and if the error persisted (e.g., the output was always too large), the job would remain in this state until the retry limit was reached or the issue was resolved. This is consistent with the retry/backoff mechanism described above. Summary: Your sync failed because the output exceeded the maximum allowed message size for Temporal, causing an internal error. Airbyte then retried the job according to its backoff and retry policy, which can result in the connection being "blocked" (i.e., stuck in retry/failure state) for an extended period if the underlying issue is not resolved. This is expected behavior when hitting internal platform limits, and the job will only succeed if the output size is reduced or the platform limit is increased (which is not user-configurable). If this happens repeatedly, you may need to reduce the amount of data being synced in a single job (e.g., by syncing fewer streams or splitting large syncs) to avoid exceeding the message size limit. References: - [Airbyte Sync Job Retries and Backoff](https://docs.airbyte.com/platform/understanding-airbyte/jobs#sync-jobs) - [Example of Temporal message size limit error](https://github.com/airbytehq/airbyte/issues/31954)
m
@kapa.ai, I clean up the hard drive to get back some space. I've removed unused containers. I've found 34G of data in /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs How to free up that space ?
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain specific information about cleaning up the
/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs
directory or managing space used by containerd snapshots. The available documentation and forum posts focus on cleaning up Airbyte-related data, Docker volumes, and logs, but do not address containerd snapshot storage directly. If you need to free up space related to Airbyte, you can: - Remove unused Docker containers and images. - Clean up Airbyte workspace data if it is taking up space, as discussed in several forum posts. - Use commands like
docker system prune
for Docker environments, or manually delete files in Airbyte's workspace or log directories if appropriate for your deployment ([example](https://discuss.airbyte.io/t/2417)). However, for containerd-specific cleanup, the knowledge sources do not provide guidance. Please consult containerd or system administration documentation for safe cleanup procedures.
m
@kapa.ai does Kind abctl version includes garbage collection (gc) ?
k
A message from kapa.ai
Based on the provided knowledge sources, there is no explicit mention that the Kind cluster created by
abctl
(the Airbyte CLI tool) includes built-in garbage collection (GC) features for cleaning up unused resources, images, or volumes. The documentation describes how
abctl
uses Kind to create a local Kubernetes cluster inside Docker and deploys Airbyte using Helm, but it does not mention any automatic garbage collection functionality as part of
abctl
or the Kind cluster it manages [abctl overview](https://docs.airbyte.com/platform/1.8/deploying-airbyte/abctl). If you need to clean up resources, you would typically use standard Docker or Kubernetes tools and commands to remove unused containers, images, or volumes. The documentation does not indicate that
abctl
or Kind handles this automatically. In summary: I'm sorry, but there's no information in the knowledge sources indicating that the Kind cluster managed by
abctl
includes automatic garbage collection. You may need to manage cleanup manually using Docker or Kubernetes tools.
m
@kapa.ai I've cleaned inactive images. Since then, sync are long or fail Exemple: this sync is blocked to the early stage 2025-11-10 210151 platform INFO APPLY Stage: BUILD — (workloadId=29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check) 2025-11-10 210151 platform INFO APPLY Stage: CLAIM — (workloadId=29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check) 2025-11-10 210151 platform INFO Claimed: true for 29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check via API for ef12e747-c4cb-4afe-8fbd-103298762b98 2025-11-10 210151 platform INFO APPLY Stage: LOAD_SHED — (workloadId=29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check) 2025-11-10 210151 platform INFO APPLY Stage: CHECK_STATUS — (workloadId=29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check) 2025-11-10 210151 platform INFO No pod found running for workload 29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check 2025-11-10 210151 platform INFO APPLY Stage: MUTEX — (workloadId=29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check) 2025-11-10 210151 platform INFO No mutex key specified for workload: 29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check. Continuing... 2025-11-10 210151 platform INFO APPLY Stage: LAUNCH — (workloadId=29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check) 2025-11-10 210151 platform INFO [initContainer] image: airbyte/workload-init-container:1.6.2 resources: ResourceRequirements(claims=[], limits={}, requests={}, additionalProperties={})
k
A message from kapa.ai
Based on the knowledge sources, when you clean up inactive images, it is possible that some images required by Airbyte sync jobs are also removed. If a required image (such as a connector or the workload init container) is missing, Kubernetes will attempt to pull it again when launching a new sync job. If the image cannot be pulled (due to network issues, registry authentication, or the image being unavailable), the pod will not start, and the sync will remain stuck in the early stages, as shown in your logs:
Copy code
2025-11-10 21:01:51 platform INFO No pod found running for workload 29b1f86c-9bd8-4d28-a4cd-58eec7b85212_224697_0_check ... 2025-11-10 21:01:51 platform INFO [initContainer] image: airbyte/workload-init-container:1.6.2 resources: ...
This pattern—where the sync is stuck at the LAUNCH stage and no pod is found running—matches issues reported when required images are missing or cannot be pulled. Similar symptoms are described in the knowledge sources, where syncs get stuck in "Queued" or "Starting" states, often due to resource or image issues. Users have resolved such issues by ensuring all required images are available and that the cluster has access to pull them ([All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812)). What you should check: - Make sure all Airbyte connector images and the workload init container image (
airbyte/workload-init-container:1.6.2
in your case) are present or can be pulled from the registry. - Check your Kubernetes events and pod status for image pull errors. - If you are using a private registry, ensure credentials are still valid. If images are missing and cannot be pulled, sync jobs will not start, leading to the behavior you are seeing. If you need to recover, you may need to re-pull the required images or redeploy Airbyte to ensure all necessary images are available to your cluster. If you continue to see issues after confirming image availability, please provide additional logs or error messages for further troubleshooting.
m
@kapa.ai when i want to upgrade to airbyte 2.0, I get Encountered an issue deploying Airbyte: Pod: airbyte-db-0.1876c93edd2047d7 Reason: BackOff Message: Back-off restarting failed container airbyte-db-container in pod airbyte-db-0_airbyte-abctl(fe896d7c-f263-4dae-acd9-179e18c5088d) Count: 69 Logs: chown: /var/lib/postgresql/data/pgdata: Operation not permitted chmod: /var/lib/postgresql/data/pgdata: Operation not permitted The files belonging to this database system will be owned by user "postgres". This user must also own the server process. initdb: error: could not access directory "/var/lib/postgresql/data/pgdata": Permission denied The database cluster will be initialized with locale "en_US.utf8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled.
k
A message from kapa.ai
The error you are encountering during your upgrade to Airbyte 2.0:
Copy code
chown: /var/lib/postgresql/data/pgdata: Operation not permitted chmod: /var/lib/postgresql/data/pgdata: Operation not permitted initdb: error: could not access directory "/var/lib/postgresql/data/pgdata": Permission denied
is a known issue related to file system permissions for the Postgres data directory inside the Airbyte database pod. This problem has been reported by multiple users when installing or upgrading Airbyte, especially when using
abctl
, Docker, or Kubernetes environments where the underlying storage does not allow the container to change ownership or permissions of the mounted volume. Key points from the knowledge sources: - The error occurs because the Postgres container tries to set ownership and permissions on
/var/lib/postgresql/data/pgdata
, but the operation is not permitted by the host file system or the way the volume is mounted. - This is commonly seen on cloud VMs, certain Linux distributions, and when persistent volumes are reused or not properly cleaned up between installs. - Users have resolved this by manually setting the correct ownership on the host directory to match the expected UID/GID of the Postgres user inside the container (usually
70:70
) before starting the Airbyte deployment. For example, running:
Copy code
sudo chown -R 70:70 ~/.airbyte/abctl/data/airbyte-volume-db
on the host, as suggested by a user in the knowledge sources, has resolved the issue for some [Permission issue while installing Airbyte with abctl](https://github.com/airbytehq/airbyte/issues/62093). Summary: This is a file system permissions issue on the Postgres data directory. To resolve it, ensure the directory used for the Postgres data volume is owned by the correct user and group (typically
70:70
). If you are using
abctl
, this is usually under
~/.airbyte/abctl/data/airbyte-volume-db
. Set the ownership before starting the upgrade. If you continue to have issues, double-check that no other process is locking the directory and that your storage backend supports the required permissions and ownership changes. If you need more detailed, environment-specific steps, please provide your OS and deployment details.