<@U04S8PLJWMT> after a long running sync the pod w...
# ask-ai
h
@kapa.ai after a long running sync the pod with 3 replicas throws an 2/3 error and no more records are loaded.
Copy code
kubectl describe pod output:

Source container (airbyte/source-mongodb-v2:2.0.4)

State: Terminated (Error)
Exit Code: 1

Destination and orchestrator are still running.

Pod Ready=False because one container failed.
what else can I give you that will provide more info?
k
To help diagnose why your Airbyte sync pod (with 3 containers) is failing with a 2/3 error after a long-running sync—where the source container (airbyte/source-mongodb-v2:2.0.4) terminates with exit code 1, and no more records are loaded—here’s what additional information would be most useful: 1. Source Container Logs: The most critical next step is to provide the full logs from the source container (airbyte/source-mongodb-v2:2.0.4) for the failed sync attempt. These logs will often contain error messages or stack traces that explain why the container exited with code 1. You can retrieve them with:
Copy code
kubectl logs <pod-name> -c <source-container-name>
Replace
<pod-name>
and
<source-container-name>
with your actual pod and container names. 2. Airbyte Job Logs: If possible, also provide the Airbyte job logs for the failed sync. These can sometimes be accessed via the Airbyte UI or from your configured log storage (e.g., S3, local disk). 3. Sync Summary and Failure Messages: If available, include the sync summary and any failure messages reported in the Airbyte UI or logs. These often contain structured error information (e.g., "Saved offset is not valid", "Cannot invoke ... because ... is null", etc.) that can help pinpoint the root cause. 4. Kubernetes Events: Run
kubectl describe pod <pod-name>
and include the "Events" section. This can reveal if there were resource issues (e.g., OOMKilled, node pressure), image pull errors, or other Kubernetes-level problems. 5. Resource Usage: Information about resource requests/limits for the pod and node status can help determine if the container was killed due to resource exhaustion. 6. Connection Configuration: If the error is related to MongoDB CDC (Change Data Capture), details about your oplog retention, sync frequency, and whether you recently reset the connection can be relevant, as issues like "Saved offset is not valid" are common with MongoDB sources if the oplog is too short or syncs are too infrequent [source-mongodb-v2 errors](https://github.com/airbytehq/airbyte/issues/46569). Why this is important: Exit code 1 is a generic error, and the actual cause can range from configuration issues, network problems, resource exhaustion, to connector-specific bugs. The logs and events will provide the necessary context to narrow down the root cause. If you can provide the above details, especially the source container logs and any error messages, it will be much easier to help you troubleshoot the issue further.