Hi <@U04S8PLJWMT> getting this error Failed to p...
# ask-ai
i
Hi @kapa.ai getting this error Failed to pull image "airbyte/workload-init-container:1.8.3": failed to pull and unpack image "docker.io/airbyte/workload-init-container:1.8.3": failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/airbyte/workload-init-container/manifests/sha256:8ed2a62c29a8432cdfb8114c498101d80de28b77865a0ede0736118d10f36f3e: 429 Too Many Requests - Server message: toomanyrequests: You have reached your unauthenticated pull rate limit.
k
The error you're encountering is a Docker Hub rate limit issue (HTTP 429 - Too Many Requests). This occurs when you've exceeded Docker Hub's unauthenticated pull rate limit while trying to pull the
airbyte/workload-init-container:1.8.3
image. ## Solutions Based on the knowledge sources, here are the recommended approaches: ### 1. Use a Custom Image Registry Configure Airbyte to use a custom Docker registry or a Docker Hub proxy cache to avoid rate limits. According to the [Custom image registry discussion](https://github.com/airbytehq/airbyte/discussions/57509), you can set up a custom registry in your Helm chart:
Copy code
yaml global:   image:     registry: your-registry.example.com/
Note: This feature works properly in Helm Chart version 1.2.0 and later. ### 2. Authenticate with Docker Hub For Docker-compose deployments, you can authenticate to Docker Hub using a service account as mentioned in the [custom connectors documentation](https://docs.airbyte.com/platform/1.8/operator-guides/using-custom-connectors#3-adhere-to-airbytes-docker-image-requirements). ### 3. Use Cloud Provider Container Registries If you're using a cloud provider, you can authenticate to their container registry services: - AWS ECR: Use
aws ecr get-login-password
command - GCP Artifact Registry: Use
gcloud
credential helper - Azure Container Registry: Use
az acr login
command For Kubernetes deployments, if you're using EKS, GKE, or AKS, your cluster likely already has permissions to pull from the respective cloud provider's registry. ### 4. Configure Image Pull Secrets For Kubernetes deployments, you can create a Secret with your Docker Hub credentials and configure it:
Copy code
yaml jobs:   main_container_image_pull_secret: "dockerhub-secret"
Or set the environment variable:
Copy code
JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET=dockerhub-secret
The knowledge sources indicate that Docker Hub rate limits are a common issue, and using authenticated pulls or a custom registry is the most reliable solution.
i
@kapa.ai is there any other way to handle this ?
k
A message from kapa.ai
i
can we save the images pulled into a common storage across the kubernetes cluster ?
k
Based on the knowledge sources, here are additional approaches to handle Docker Hub rate limits: ## Alternative Solutions ### 1. Use ECR Pull-Through Cache According to a [GitHub issue comment](https://github.com/airbytehq/airbyte/issues/21123), you can configure an ECR pull-through cache for Docker Hub:
Copy code
yaml global:   image:     registry: 123456789.dkr.ecr.us-east-1.amazonaws.com/dockerhub
This approach was confirmed to work for Airbyte platform containers in Helm Chart v1.2.0 and later. ### 2. Database-Level Workaround for Connector Images If you're specifically having issues with connector images (not platform images), one user shared a [database workaround](https://github.com/airbytehq/airbyte/issues/21123) by directly modifying the Airbyte database:
Copy code
sql UPDATE actor_definition_version SET docker_repository = '<your_registry>' || docker_repository;
You can also create a trigger to maintain this prefix:
Copy code
sql CREATE OR REPLACE FUNCTION prefix_docker_repository() RETURNS TRIGGER AS $$ BEGIN     IF NEW.docker_repository NOT LIKE '<your_registry>%' THEN         NEW.docker_repository := '<your_registry>' || NEW.docker_repository;     END IF;     RETURN NEW; END; $$ LANGUAGE plpgsql;  CREATE TRIGGER check_and_prefix_docker_repository BEFORE INSERT OR UPDATE ON actor_definition_version FOR EACH ROW EXECUTE FUNCTION prefix_docker_repository();
Note: This workaround may be overwritten during updates, so the trigger helps maintain the prefix. ### 3. Pre-pull Images with abctl According to a [GitHub issue comment](https://github.com/airbytehq/airbyte/issues/46309), newer versions of
abctl
will pull images before deploying the chart, which can help avoid rate limit issues during deployment. ### Important Limitation The knowledge sources indicate that while
global.image.registry
works for platform images, it historically did not affect connector images in older Helm chart versions. This was resolved in Helm Chart v1.2.0+, as confirmed in the [custom image registry discussion](https://github.com/airbytehq/airbyte/discussions/57509).
i
@kapa.ai if i go via the custom registry route, do i need to save all connector images on my registry then ?
k
A message from kapa.ai
Based on the knowledge sources, yes, you need to push connector images to your custom registry before using them, but you don't necessarily need to push all connector images upfront. ## How It Works According to the [custom image registry documentation](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/custom-image-registries), when you configure a custom image registry, Airbyte pulls both platform images and connector images from that registry. The documentation explicitly states: > "You can also pull Airbyte's connector images from Docker, tag them, and push them to your custom image registry. **You must do this prior to adding a source or destination.**" ## Practical Approach You can push connector images on an as-needed basis:
Copy code
bash # Example: Pull, tag, and push a specific connector docker pull airbyte/destination-google-sheets:latest docker tag airbyte/destination-google-sheets:latest ghcr.io/NAMESPACE/destination-google-sheets:latest docker push ghcr.io/NAMESPACE/destination-google-sheets:latest
## Important Exception The [custom image registry documentation](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/custom-image-registries) notes one exception: > "Custom Docker connectors in your workspace that specify an image using a fully qualified domain name (for example, `example.com/airbyte/your-custom-source`) ignore your configured custom image registry and pull images from the domain specified by that connector." So you only need to push the standard Airbyte connector images you plan to use to your custom registry. You can add them incrementally as you need new connectors, rather than pushing all available connectors upfront.
i
@kapa.ai if the image is already there on the disk, why would airbyte pull it ?
k
A message from kapa.ai
Based on the knowledge sources, I can see evidence of Airbyte checking for existing images, but the knowledge sources don't explicitly explain why Airbyte would attempt to pull an image that's already on disk. However, from the GitHub issues provided, I can observe that
abctl
does check for existing images. In the [abctl local install issue](https://github.com/airbytehq/airbyte/issues/50429), the debug logs show:
Copy code
DEBUG   found existing image with ref docker.io/airbyte/bootloader:1.3.1 DEBUG   found existing image with ref docker.io/airbyte/connector-builder-server:1.3.1 ...
And in another [GitHub issue](https://github.com/airbytehq/airbyte/issues/48720), the logs show:
Copy code
DEBUG   image already exists: sha256:ae0480e034a40b91dabc54e68e8017f44afa5ead8f81b4981b68e6b3119736e8
This suggests that Airbyte's tooling does detect existing images. However, the knowledge sources don't provide information about: 1. Why Airbyte might still attempt to pull an image that exists locally 2. Whether there are specific conditions or configurations that control this behavior 3. How Kubernetes image pull policies interact with Airbyte's image management The knowledge sources do not contain enough information to definitively explain why Airbyte would pull an image that's already on disk in your specific scenario. This behavior might be related to Kubernetes image pull policies (like
Always
vs
IfNotPresent
) or specific Airbyte configuration settings, but these details aren't covered in the provided documentation.
i
@kapa.ai updating this main_container_image_pull_secret will also mean it will pull connector images with authentication along with platform images ?
k
A message from kapa.ai
Based on the knowledge sources, I cannot find explicit documentation that confirms whether
main_container_image_pull_secret
applies to both platform images and connector images. However, there is relevant evidence from a [GitHub issue](https://github.com/airbytehq/airbyte/issues/42091) where a user reported that setting
main_container_image_pull_secret
did not work as expected for the
orchestrator-repl-job
pods. The user configured:
Copy code
yaml jobs:   main_container_image_pull_secret: "dockerhub-secret"
And noted that while the environment variable was set:
Copy code
- name: JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET   value: dockerhub-secret
The pods still attempted to pull from Docker Hub without authentication, resulting in rate limit errors. ## Recommended Approach The knowledge sources consistently recommend using the
global.imagePullSecrets
configuration instead, which is documented to work for both platform and connector images. According to the [custom image registry documentation](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry):
Copy code
yaml global:   image:     registry: ghcr.io/NAMESPACE   imagePullSecrets:     - name: regcred
This approach is the documented method for authenticating image pulls across all Airbyte images when using a custom registry. The knowledge sources do not explicitly confirm whether
main_container_image_pull_secret
alone will handle authentication for both platform and connector images.
i
@kapa.ai what is this registry name ?registry: ghcr.io/NAMESPACE
k
A message from kapa.ai
Based on the knowledge sources,
ghcr.io/NAMESPACE
is a placeholder example for configuring a custom image registry in Airbyte. ## What it represents: -
ghcr.io
- This is GitHub Container Registry (GitHub's Docker registry service) -
NAMESPACE
- This is a placeholder that you need to replace with your actual GitHub organization or username ## How to use it: According to the [custom image registry documentation](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry), you should replace
NAMESPACE
with your actual registry namespace:
Copy code
yaml global:   image:     registry: ghcr.io/YOUR-ACTUAL-NAMESPACE
For example: - If your GitHub organization is
mycompany
, it would be:
ghcr.io/mycompany
- If your GitHub username is
johndoe
, it would be:
ghcr.io/johndoe
## Other registry options: The documentation shows that
ghcr.io
is just one example. You can use other registries by replacing the entire value: - AWS ECR:
123456789.dkr.ecr.us-east-1.amazonaws.com/your-namespace
- Google Artifact Registry:
us-docker.pkg.dev/your-project/your-repo
- Azure Container Registry:
yourregistry.azurecr.io
- DockerHub:
docker.io/your-username
The key is that you need to replace both the registry URL and the namespace with your actual values where you've pushed your Airbyte images.
i
@kapa.ai can i use my docker creds for personal account and pull from airbyte's registry to atleast get some more limit on the pulls
k
A message from kapa.ai
Based on the knowledge sources, yes, you can authenticate with your Docker Hub personal account to increase your pull rate limits when pulling from Airbyte's registry on Docker Hub. ## For Docker-compose deployments: According to the [custom connectors documentation](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#3-adhere-to-airbytes-docker-image-requirements), you can authenticate to Docker Hub: > "You can use Docker Desktop to authenticate your local machine to your DockerHub registry by signing in on the desktop application using your DockerID. You need to use a [service account](https://docs.docker.com/docker-hub/service-accounts/) to authenticate your Airbyte instance to your DockerHub registry." The documentation recommends using a service account for your Airbyte instance, but you can authenticate with your personal Docker Hub credentials. ## For Kubernetes deployments: You can create a Kubernetes secret with your Docker Hub credentials and configure Airbyte to use it. According to the [custom image registry documentation](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry): 1. Create a Kubernetes secret with your Docker Hub credentials:
Copy code
bash kubectl create secret generic regcred \ --from-file=.dockerconfigjson=<path/to/.docker/config.json> \ --type=kubernetes.io/dockerconfigjson
2. Add the secret to your `values.yaml`:
Copy code
yaml global:   imagePullSecrets:     - name: regcred
This will authenticate your pulls to Docker Hub using your credentials, which should give you the authenticated rate limit (200 pulls per 6 hours for free accounts) instead of the unauthenticated limit (100 pulls per 6 hours per IP).
i
@kapa.ai i addded this secret to airbyte apiVersion: v1 kind: Secret metadata: name: airbyte-docker-secret namespace: airbyte type: Opaque stringData: docker-server: docker-username: docker-password: docker-email: But i dont think i am getting the authenticated limits for pulls
k
A message from kapa.ai
Based on the knowledge sources, the issue is that you've created a secret of type
Opaque
, but **Docker registry authentication requires a secret of type `kubernetes.io/dockerconfigjson`**. ## The correct approach: According to the [custom image registry documentation](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry), you should create the secret using this format:
Copy code
bash kubectl create secret generic regcred \ --from-file=.dockerconfigjson=<path/to/.docker/config.json> \ --type=kubernetes.io/dockerconfigjson
This creates a secret from your Docker config file that contains your authentication credentials. ## Then reference it in your values.yaml:
Copy code
yaml global:   imagePullSecrets:     - name: regcred
## Alternative: Create the secret directly with Docker credentials You can also create the secret directly using kubectl with your Docker Hub credentials:
Copy code
bash kubectl create secret docker-registry regcred \   --docker-server=https://index.docker.io/v1/ \   --docker-username=<your-username> \   --docker-password=<your-password> \   --docker-email=<your-email> \   --namespace airbyte
The key differences from your current secret: 1. Type: Must be
kubernetes.io/dockerconfigjson
(or use
docker-registry
with kubectl) 2. Format: The secret needs to be in the Docker config JSON format, not as individual string data fields 3. Reference: Must be referenced in
global.imagePullSecrets
in your Helm values Your current
Opaque
secret with individual fields won't work for Docker registry authentication, which is why you're not getting authenticated pull limits.
i
@kapa.ai how do i configure it in my yaml, the secret type ?
k
A message from kapa.ai
Based on the knowledge sources, you cannot directly configure the secret type in your YAML manifest - you need to create the secret using the correct kubectl command, and then reference it in your Airbyte Helm values. ## Step 1: Create the Docker registry secret Use kubectl to create the secret with the correct type:
Copy code
bash kubectl create secret docker-registry airbyte-docker-secret \   --docker-server=https://index.docker.io/v1/ \   --docker-username=<your-username> \   --docker-password=<your-password> \   --docker-email=<your-email> \   --namespace airbyte
This automatically creates a secret of type
kubernetes.io/dockerconfigjson
. ## Step 2: Reference the secret in your Airbyte values.yaml According to the [custom image registry documentation](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry), add the secret reference to your Helm values:
Copy code
yaml global:   imagePullSecrets:     - name: airbyte-docker-secret
## Alternative: Create from Docker config file If you already have a Docker config file with your credentials (typically at
~/.docker/config.json
), you can create the secret from that file:
Copy code
bash kubectl create secret generic airbyte-docker-secret \   --from-file=.dockerconfigjson=<path/to/.docker/config.json> \   --type=kubernetes.io/dockerconfigjson \   --namespace airbyte
The key point is that **the secret type must be `kubernetes.io/dockerconfigjson`**, which is automatically set when using the
kubectl create secret docker-registry
command or explicitly specified with
--type
when creating from a config file. You cannot achieve this with a standard YAML manifest using
type: Opaque
.