<@U04S8PLJWMT> Defaulted container "connector-side...
# ask-ai
k
@kapa.ai Defaulted container "connector-sidecar" out of: connector-sidecar, main, init (init), unable to retrieve container logs for containerd://
k
It looks like you’re hitting two related symptoms seen in recent Airbyte Kubernetes deployments: - “Defaulted container ‘connector-sidecar’ out of: connector-sidecar, main, init (init)” is a normal K8s message indicating which container was selected for logs, but it often shows up when the init or main containers haven’t started or have failed. - “unable to retrieve container logs for containerd://…” typically appears when the pod/container terminated very quickly or logging paths aren’t available anymore. From the issues: - On EKS, workers showed quick startup/shutdown around Temporal initialization and then kubectl couldn’t fetch the container logs (no such file), producing multiple “unable to retrieve container logs…” lines. In that case the pod was terminating rapidly after initialization, so logs were no longer present. [[Temporal on EKS](https://github.com/airbytehq/airbyte/issues/59730); [Temporal on EKS 2](https://github.com/airbytehq/airbyte/issues/59730)]. - In abctl local installs, users saw 502 errors and workload pods not launching connector pods until a bearer token secret was (re)created and env propagated to the worker and workload API server. After fixing the token, pods started, but the sidecar still printed the “Defaulted container…” header and continued. [[source-file 502](https://github.com/airbytehq/airbyte/issues/65574)]. What you can try: 1) Check whether the pod actually failed/terminated - Describe the pod to see why containers exited: kubectl describe pod <name>. If init failed, main/sidecar will sit pending; if containers completed quickly, logs may be gone (hence the containerd log errors). This matches the EKS case above. [[Temporal on EKS](https://github.com/airbytehq/airbyte/issues/59730)]. 2) If you’re using abctl (local or abctl-managed K8s) - Ensure the workload API bearer token secret exists and matches env on both airbyte-abctl-worker and airbyte-abctl-workload-api-server. A missing/incorrect token prevented workload pods from being launched until users recreated the secret and set WORKLOAD_API_BEARER_TOKEN on both deployments. [[source-file 502](https://github.com/airbytehq/airbyte/issues/65574)]. 3) Helm/K8s environment propagation and service account - Some reports showed workload pods missing expected env vars in init/main while sidecar had them, causing init failure and leaving other containers in PodInitializing. Verify your values.yaml and that global env_vars are applied to all workload containers (init, main, sidecar). [[Airbyte 1.2.0 EKS source test](https://github.com/airbytehq/airbyte/issues/48809)]. - Also confirm pods are using the intended serviceAccount (not default) if your cluster needs specific permissions. Missing/incorrect SA has been observed in workload pods in some setups. [[Workload pods SA](https://github.com/airbytehq/airbyte/issues/50979); [Airbyte 1.2.0 EKS source test 2](https://github.com/airbytehq/airbyte/issues/48809)]. 4) S3/GCS doc store or logging backends - If your sidecar or workers write outputs to S3/GCS, ensure the region and credentials are correct; wrong region/headers can surface as sidecar errors that then cause early termination. [[S3 wrong region](https://github.com/airbytehq/airbyte/issues/48407)]. 5) If you upgraded charts/abctl recently - There are known bumps where Helm values or env config changed (e.g., image/env keys for sidecar/init/orchestrator). Mis-set or nil values can break init or sidecar and leave pods pending. Double-check your chart version and rendered env-configmap values. [[ConfigMap nil images](https://github.com/airbytehq/airbyte/issues/44171); [abctl 0.30.1 helm breakage](https://github.com/airbytehq/airbyte/issues/65129)]. If you can share: - The pod describe (kubectl describe pod …) and the init container status, - Whether this is abctl local vs. Helm on a cluster, - Any workload-api/worker logs about auth to the workload API, I can map it more precisely. As-is, the knowledge points to quick container termination (hence containerd log retrieval failures), or a workload-launch/auth/env propagation issue preventing the workload from fully starting. [[Temporal on EKS](https://github.com/airbytehq/airbyte/issues/59730); [source-file 502](https://github.com/airbytehq/airbyte/issues/65574); [Airbyte 1.2.0 EKS source test](https://github.com/airbytehq/airbyte/issues/48809)].