clever-policeman-58407
12/04/2024, 10:38 PMβΉ deploy.foobar-api β Aborting because upstream dependency failed.
β build.foobar β Failed resolving status for Build type=container name=foobar (took 23.36 sec). This is what happened:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Unable to query registry for image status: Command "skopeo --command-timeout=30s inspect --raw --authfile ~/.docker/config.json docker://<aws_id>.dkr.ecr.us-west-2.amazonaws.com/garden/foobar:v-710dceec9b" failed: Failed with exit code 1.
Here are the logs until the error occurred:
time="2024-12-04T21:32:21Z" level=fatal msg="Error parsing image name \"docker://<aws_id>.dkr.ecr.us-west-2.amazonaws.com/garden/foobar:v-710dceec9b\": reading manifest v-710dceec9b in <aws_id>.dkr.ecr.us-west-2.amazonaws.com/garden/foobar: authentication required"
I have tried:
- Variations of restarting the daemon and accompany services: garden util sync daemon stop
+ `etc.
- Upgrading / Fresh Reinstallation of Local machine's Garden CLI
- Forced deletion and recreation of ECR secrets / configuration
- Reinstallation of local Docker
I can say with 100% certainty that the Docker CLI and authentication is working as expected, as I can pull and push images to the same registry using the same credentials without fail if I run the commands directly. Garden, however, is not able to do the same and consistently returns the above error.
In my testing, the only thing that seems to fix this issue is completely deleting the cluster that has this error. However once recreated, the error returns after some unknown amount of time and is only fixed by deletion.
Can also confirm that running the skopeo command it fails on returns the same error when run directly outside of Garden. Potentially an upstream bug?
Is this a known problem?brief-restaurant-63679
12/05/2024, 1:40 PMkaniko
. Would switching to cluster-buildkit
work for your use case?
It's configured in the kubernetes
provider project level provider config like so:
kind: Project
name: my-project
#...
providers:
- name: kubernetes
buildMode: cluster-buildkit # <--- Set this value
With the cluster-buildkit
there's a single Buildkit Deployment for each namespace whereas with kaniko
Garden creates a Pod for each build. We've started recommending the former because we've seen a few stability issues with kaniko
in the past.
Let us know if that helps or if you continue having auth issues. That would at least narrow it down.clever-policeman-58407
12/08/2024, 11:26 PMcluster-buildkit
so I wonder if the actual problem is that it's trying to run Kaniko commands in a buildkit environmentbrief-restaurant-63679
12/09/2024, 7:45 AMclever-policeman-58407
12/16/2024, 7:34 PMskopeo
commands shouldn't be being called at all if you're not using kaniko
?little-army-47606
12/18/2024, 10:26 PMbuildMode
? If so, you could verify which build mode garden "believes" it is negotiating.freezing-pharmacist-34446
01/09/2025, 1:21 PMcluster-buildkit
in the util
sidecar container to check the build status of an image. The imagePullSecret
is mounted at /home/user/.docker
in the util sidecar container. Could you shell into that container and take a look at the contents of this file @clever-policeman-58407 ?clever-policeman-58407
01/10/2025, 6:49 PM{"experimental":"enabled","auths":{},"credHelpers":{"<account_id>.dkr.ecr.us-west-2.amazonaws.com":"ecr-login"}}
clever-policeman-58407
01/10/2025, 6:49 PMfreezing-pharmacist-34446
01/13/2025, 9:55 AMfreezing-pharmacist-34446
01/13/2025, 9:58 AMclever-policeman-58407
01/14/2025, 12:27 AMclever-policeman-58407
01/14/2025, 12:28 AMgarden version: 0.13.47
skopeo version 1.16.1
clever-policeman-58407
01/14/2025, 12:36 AMclever-policeman-58407
01/14/2025, 12:37 AMfreezing-pharmacist-34446
01/14/2025, 1:14 PMlittle-army-47606
01/23/2025, 8:42 PMgarden deploy --env remote
I was suddenly able to. It was after a return from holiday, and it only successfully built for a short while that day. @clever-policeman-58407 and I are on the same team, if that's not already clear.little-army-47606
01/23/2025, 8:42 PMskopeo
commands from my host, but the garden builds fail to.little-army-47606
01/23/2025, 8:50 PM~/.docker/config.json
reads:
{
"auths": {},
"credsStore": "ecr-login",
"credHelpers": {
"<account_id>.dkr.ecr.us-west-2.amazonaws.com": "ecr-login"
},
"currentContext": "desktop-linux",
"plugins": {
"-x-cli-hints": {
"enabled": "true"
}
}
}
little-army-47606
01/23/2025, 9:22 PM23.4.0
little-army-47606
01/23/2025, 9:32 PMgarden deploy <repo_name> --env remote --force-refresh
big-spring-14945
01/28/2025, 1:23 PMbig-spring-14945
01/28/2025, 1:24 PMlittle-army-47606
01/29/2025, 6:29 PMfreezing-pharmacist-34446
02/06/2025, 12:39 PM