I've airbyte running in kubernetes, the connectors...
# ask-ai
m
I've airbyte running in kubernetes, the connectors pod have ImagePullBackOff state, how to troubleshoot it?
k
When Airbyte connector pods in Kubernetes are in the ImagePullBackOff state, it means Kubernetes is unable to pull the required Docker images for those pods. Here are some troubleshooting steps based on the knowledge sources: 1. Check Image Name and Tag - Ensure the image name and tag are correct and exist in the registry. Typos or non-existent tags will cause pull failures. 2. Check Image Registry Access - If you are using a private registry, make sure your Kubernetes cluster has the correct image pull secrets configured. Missing or incorrect secrets will result in authorization errors (e.g., 401 errors) when pulling images. For example, if you see errors like
failed to authorize: failed to fetch anonymous token: unexpected status: 401
, check your image pull secret configuration and ensure the secret is referenced in your deployment or Helm values. Some Airbyte versions may not use the expected secret variable, so upgrading to a newer version may help if you are on an older release [CONTAINER_ORCHESTRATOR_ENABLED is not working](https://github.com/airbytehq/airbyte/issues/28032). 3. Check for Docker Hub Rate Limits - If you see errors mentioning "429 Too Many Requests" or "toomanyrequests: You have reached your pull rate limit," you are hitting Docker Hub's unauthenticated pull rate limits. You can resolve this by authenticating with Docker Hub or using a proxy cache or private registry [Docker pull rate-limit on abctl local install](https://github.com/airbytehq/airbyte/issues/46309). 4. Custom Image Registries and Helm Chart Version - If you are using a custom image registry (e.g., a proxy cache), ensure your Helm chart version supports overriding the registry for connectors. This feature was fixed after Helm Chart v1.2.0. If you are on an older version, upgrade to at least v1.5.1 to ensure all images (including connectors) are pulled from your custom registry [Custom image registry failed to apply for connectors](https://github.com/airbytehq/airbyte/discussions/57509). 5. Resource Constraints - Insufficient node resources (CPU, memory) can also cause pods to be stuck in ImagePullBackOff. Upgrading your node size may resolve the issue [abctl install stuck at pulling images](https://github.com/airbytehq/airbyte/issues/48720). 6. Kubernetes Policy Restrictions - Some environments require explicit registry prefixes (e.g., `docker.io/airbyte/source-postgres:1.0.35`). If your cluster enforces such policies, ensure all image references include the required prefix [Airbyte on K8s/helm: Add registry prefix for all image tag references](https://github.com/airbytehq/airbyte/issues/21123). 7. For Local Kind Clusters (abctl) - If running Airbyte in kind (Kubernetes in Docker), you must manually load custom connector images into the cluster using:
Copy code
kind load docker-image <image-name>:<image-tag> -n airbyte-abctl
For example:
Copy code
kind load docker-image airbyte/source-custom:1 -n airbyte-abctl
[Loading connector docker containers into kind](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#loading-connector-docker-containers-into-kind) Summary: Check your image names, registry access (including secrets and rate limits), Helm chart version, node resources, and any cluster image policy requirements. For kind clusters, load images manually. If you continue to have issues, review the pod events and logs for more specific error messages.
m
this is the issue @kapa.ai Back-off pulling image "airbyte/connector-sidecar:1.6.3"
k
A message from kapa.ai
The error message
Back-off pulling image "airbyte/connector-sidecar:1.6.3"
indicates that Kubernetes is unable to pull the specified image for the connector-sidecar. Based on the knowledge sources, here are the most relevant troubleshooting steps: 1. Check Image Registry Access and Authentication If you are using a private registry or a proxy cache, ensure that your Kubernetes cluster is configured with the correct image pull secrets. Missing or incorrect secrets can cause pull failures. If you are using a custom registry, make sure your Helm chart version is at least v1.2.0, as earlier versions do not support overriding the registry for all images, including connector-sidecar [Custom image registry failed to apply for connectors](https://github.com/airbytehq/airbyte/discussions/57509). 2. Docker Hub Rate Limits If you are pulling from Docker Hub and see errors about rate limits (e.g., "429 Too Many Requests"), you may have hit Docker Hub's unauthenticated pull rate limit. In this case, consider authenticating with Docker Hub, or use a proxy cache/private registry to avoid rate limits [Docker pull rate-limit on abctl local install](https://github.com/airbytehq/airbyte/issues/46309). 3. Network or Regional Restrictions In some regions (e.g., Iran, Cuba), Docker Hub access may be restricted due to sanctions. In such cases, you need to use a proxy or a private registry that is accessible from your location [bootloader pod hangs during installation](https://github.com/airbytehq/airbyte/issues/58086). 4. Resource Constraints Insufficient node resources can also cause image pull issues. One user resolved similar issues by upgrading their node size [abctl install stuck at pulling images](https://github.com/airbytehq/airbyte/issues/48720). 5. Helm Chart Values If you are customizing image locations in your Helm values, ensure the correct structure is used. There was a known issue with the Helm chart where the image path in values.yaml was not correctly referenced. A workaround is to ensure your values.yaml uses the correct structure:
Copy code
yaml    workload-launcher:      connectorSidecar:        image: airbyte/connector-sidecar
And that the Helm chart is patched to reference these values correctly [[platform] unknown object type "nil" in ConfigMap.data.CONNECTOR_SIDECAR_IMAGE](https://github.com/airbytehq/airbyte/issues/44171). If you have checked all of the above and the issue persists, please review the pod events and logs for more specific error messages, as they may provide additional clues. If you are running Airbyte in a kind cluster (Kubernetes in Docker), you may need to manually load the image into the cluster:
Copy code
bash kind load docker-image airbyte/connector-sidecar:1.6.3 -n airbyte-abctl
[Loading connector docker containers into kind](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#loading-connector-docker-containers-into-kind) If you need more specific help, please provide the full error message from the pod events or logs.
m
This side car image is remote, in docker hub managed by airbyte @kapa.ai
k
A message from kapa.ai
Thank you for clarifying that the sidecar image (
airbyte/connector-sidecar:1.6.3
) is remote and hosted on Docker Hub. Based on the knowledge sources, here are the most likely causes and solutions for the
Back-off pulling image
issue when pulling official Airbyte images from Docker Hub: 1. Docker Hub Rate Limits If your cluster is pulling images from Docker Hub without authentication, you may hit Docker Hub's unauthenticated pull rate limits. This is a common cause for
ImagePullBackOff
errors, especially with popular images like Airbyte's. The error message may include "429 Too Many Requests" or similar. Solution: - Authenticate your Kubernetes cluster to Docker Hub using an image pull secret. - Alternatively, use a proxy cache or mirror registry to avoid rate limits [Docker pull rate-limit on abctl local install](https://github.com/airbytehq/airbyte/issues/46309). 2. Network or Regional Restrictions In some regions, Docker Hub may be inaccessible due to sanctions or network policies. In such cases, Kubernetes cannot pull images from Docker Hub, resulting in
ImagePullBackOff
. Solution: - Use a private registry or proxy that is accessible from your region [bootloader pod hangs during installation](https://github.com/airbytehq/airbyte/issues/58086). 3. Kubernetes Image Pull Secret If your cluster requires authentication to pull from Docker Hub, ensure you have created a Kubernetes secret with your Docker Hub credentials and referenced it in your deployment or Helm values. Solution: - Create a secret with your Docker Hub credentials and add it to your Airbyte Helm values under
imagePullSecrets
 [Step 1: Customize Airbyte to use your image registry](https://docs.airbyte.com/platform/1.6/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry). 4. Resource Constraints or Temporary Docker Hub Issues Sometimes, temporary issues with Docker Hub or insufficient node resources can cause image pull failures. Solution: - Retry the installation after some time. - Ensure your nodes have sufficient resources [abctl install stuck at pulling images](https://github.com/airbytehq/airbyte/issues/48720). Summary: If you are seeing
Back-off pulling image "airbyte/connector-sidecar:1.6.3"
and the image is remote on Docker Hub, the most common issues are Docker Hub rate limits or missing authentication. Set up a Docker Hub image pull secret in your Kubernetes cluster, or use a proxy/private registry to avoid these issues. If you are in a restricted region, use a registry that is accessible from your location. If you need step-by-step instructions for creating and using an image pull secret, let me know!
m
full error @kapa.ai │ Warning Failed 91s (x3 over 2m21s) kubelet Failed to pull image "airbyte/connector-sidecar:1.6.3": failed to pull and unpack image "docker.io/airbyte/connector-sidecar:1.6.3": failed to copy: │ │ httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/airbyte/connector-sidecar/manifests/sha256:f412b21c6d3f46bc260153b0279a0a58799e19104e3e17463ad4a0e8a6fee8a4: 429 Too Many Req │ │ uests - Server message: toomanyrequests: You have reached your unauthenticated pull rate limit. https://www.docker.com/increase-rate-limit
k
A message from kapa.ai
Your error message:
Copy code
Failed to pull image "airbyte/connector-sidecar:1.6.3": ... 429 Too Many Requests - Server message: toomanyrequests: You have reached your unauthenticated pull rate limit. https://www.docker.com/increase-rate-limit
means your Kubernetes cluster is hitting Docker Hub's unauthenticated pull rate limit. This is a common issue when pulling Airbyte images directly from Docker Hub without authentication or a proxy cache. How to resolve: 1. Authenticate to Docker Hub using an image pull secret: Create a Kubernetes secret with your Docker Hub credentials and reference it in your Airbyte deployment. This will allow Kubernetes to pull images as an authenticated user, increasing your rate limit. Example command:
Copy code
bash    kubectl create secret docker-registry regcred \      --docker-username=<your-dockerhub-username> \      --docker-password=<your-dockerhub-password> \      --docker-email=<your-email>
Then, add the secret to your `values.yaml`:
Copy code
yaml    global:      imagePullSecrets:        - name: regcred
[Step 1: Customize Airbyte to use your image registry](https://docs.airbyte.com/platform/1.6/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry) 2. Use a proxy cache or private registry: If you have a proxy cache (e.g., Harbor, ECR pull-through cache), configure Airbyte to pull images from there by setting the
global.image.registry
value in your Helm chart. This avoids Docker Hub rate limits for all Airbyte images [Custom image registry failed to apply for connectors](https://github.com/airbytehq/airbyte/discussions/57509). 3. Upgrade your Helm chart if needed: If you are using an older Helm chart, note that support for overriding the registry for all images (including connectors) was added in v1.2.0 and later. Upgrade if necessary to ensure all images are pulled from your configured registry. Summary: You are hitting Docker Hub's rate limits. Authenticate with Docker Hub using an image pull secret, or use a proxy/private registry to resolve the issue. This is a well-documented problem and solution in the Airbyte community and docs. If you need step-by-step instructions for your specific setup, let me know!
m
@kapa.ai create the secret in a given namespace
k
A message from kapa.ai
To create a Docker registry image pull secret in a specific Kubernetes namespace, use the following command (replace the placeholders with your actual values):
Copy code
bash kubectl create secret docker-registry regcred \   --docker-username=<your-dockerhub-username> \   --docker-password=<your-dockerhub-password> \   --docker-email=<your-email> \   --namespace <your-namespace>
This will create a secret named
regcred
in the namespace you specify. You can then reference this secret in your Airbyte
values.yaml
under `global.imagePullSecrets`:
Copy code
yaml global:   imagePullSecrets:     - name: regcred
This approach is documented in the Airbyte docs for configuring custom image registries and handling Docker Hub authentication [Step 1: Customize Airbyte to use your image registry](https://docs.airbyte.com/platform/1.6/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry).
m
I've configured my repo, I've pulled images locally and then pushed to my private repo. I'm facing this issue with bootloader: /entrypoint.sh: exec format error @kapa.ai
k
A message from kapa.ai
The error
/entrypoint.sh: exec format error
typically indicates that the Docker image you are using was built for a different CPU architecture than the one your Kubernetes node is running. For example, if your node is ARM64 (such as AWS Graviton or Apple M1) but the image is AMD64, or vice versa, you will see this error. This issue has been reported in the Airbyte community, especially when running on ARM64 nodes. Even if the image appears to support multiple architectures, there can still be compatibility issues if the image was not properly built or pushed for your architecture. This is confirmed in a community post where a similar error was observed for normalization containers on ARM64 EKS nodes, despite the image being multi-arch on Docker Hub [Destination Snowflake - Normalization Architecture Exec Issue](https://discuss.airbyte.io/t/2517). What you should check: - Ensure that when you pull and push images to your private registry, you are using the correct architecture. If you are using
docker pull
and
docker push
, by default, Docker will use the architecture of your local machine. If your local machine is not the same architecture as your Kubernetes nodes, this can cause the problem. - If you are using multi-arch images, make sure your private registry supports and serves the correct manifest for your node's architecture. If you are on ARM64 nodes: - You must ensure that the image you push to your private registry is built for ARM64. You can specify the platform when pulling or building images:
Copy code
bash   docker pull --platform=linux/arm64 airbyte/bootloader:1.6.3   docker tag airbyte/bootloader:1.6.3 <your-private-repo>/airbyte/bootloader:1.6.3   docker push <your-private-repo>/airbyte/bootloader:1.6.3
- If you are on AMD64, use
--platform=linux/amd64
. Summary: The
exec format error
is almost always an architecture mismatch between your image and your node. Double-check the architecture of your Kubernetes nodes and ensure you are pushing the correct image variant to your private registry. This issue is known in the Airbyte community, especially for ARM64 environments [Destination Snowflake - Normalization Architecture Exec Issue](https://discuss.airbyte.io/t/2517). If you need more help, please specify your node architecture and how you are pulling/pushing images.
m
I'm using AMD64 nodes @kapa.ai
k
A message from kapa.ai
If you are using AMD64 nodes and encounter the error
/entrypoint.sh: exec format error
with the Airbyte bootloader after pushing images to your private repository, this typically means the image in your private registry is not compatible with the AMD64 architecture of your nodes. Based on the knowledge sources, this error is most often caused by an architecture mismatch—such as pushing an ARM64 image and trying to run it on AMD64 nodes. Even if you are on AMD64, if you accidentally pulled or built the image for another architecture (like ARM64), you will see this error. This issue has been reported in the Airbyte community, especially when dealing with custom or private registries and multi-arch images [Destination Snowflake - Normalization Architecture Exec Issue](https://discuss.airbyte.io/t/2517). What to check and do: - Ensure that the image you pulled and pushed to your private registry is for the AMD64 architecture. - When pulling the image from Docker Hub before pushing to your private registry, explicitly specify the platform:
Copy code
bash   docker pull --platform=linux/amd64 airbyte/bootloader:1.6.3   docker tag airbyte/bootloader:1.6.3 <your-private-repo>/airbyte/bootloader:1.6.3   docker push <your-private-repo>/airbyte/bootloader:1.6.3
- Double-check that your private registry is serving the correct AMD64 image to your Kubernetes cluster. If you have already done this and still see the error, it is possible that the image in your private registry is not the correct architecture. Re-pull the image with the
--platform=linux/amd64
flag and re-push it to your registry. If the problem persists, the knowledge sources do not provide further troubleshooting steps specific to this scenario, and you may need to investigate your image build and push process in more detail.
m
@kapa.ai This is the command docker pull --platform=linux/amd64 airbyte/bootloader:1.6.3 # Tag the image for your ACR docker tag airbyte/bootloader:1.6.3 myrepo.azurecr.io/airbyte/bootloader:1.6.3 # Push the tagged image to your ACR docker push myrepo.azurecr.io/airbyte/bootloader:1.6.3
k
A message from kapa.ai
Your command sequence for pulling, tagging, and pushing the Airbyte bootloader image for AMD64 to your Azure Container Registry (ACR) is correct and aligns with best practices described in the Airbyte documentation. Here’s a step-by-step review based on the knowledge sources: 1. Pull the AMD64 Image from Docker Hub:
Copy code
bash    docker pull --platform=linux/amd64 airbyte/bootloader:1.6.3
This ensures you are pulling the image built for the AMD64 architecture, which matches your Kubernetes nodes. This step is important to avoid architecture mismatches that can cause errors like
/entrypoint.sh: exec format error
 [Destination Snowflake - Normalization Architecture Exec Issue](https://discuss.airbyte.io/t/2517). 2. Tag the Image for Your ACR:
Copy code
bash    docker tag airbyte/bootloader:1.6.3 myrepo.azurecr.io/airbyte/bootloader:1.6.3
This prepares the image for upload to your private registry. 3. Push the Tagged Image to Your ACR:
Copy code
bash    docker push myrepo.azurecr.io/airbyte/bootloader:1.6.3
This uploads the image to your Azure Container Registry, making it available for your Kubernetes cluster to pull. This workflow is consistent with Airbyte’s documented approach for using a private registry: pull the correct image, tag it for your registry, and push it to your private repo [Step 2: Tag and push Airbyte images](https://docs.airbyte.com/platform/1.6/enterprise-setup/implementation-guide#configure-a-custom-image-registry). Summary: Your commands are correct for ensuring the right architecture and for pushing Airbyte images to your private registry. If you continue to see
/entrypoint.sh: exec format error
, double-check that your Kubernetes deployment is referencing the image from your ACR and not accidentally pulling from another source.