You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dockerfile
Execution fails prior to reaching the actual docker build step.
Build Context
Execution fails prior to reaching the actual docker build step.
Kaniko Image (fully qualified with digest)
gcr.io/kaniko-project/executor:debug
gcr.io/kaniko-project/executor@sha256:f60ace157b4ce9dd2275981838351da93ed7e0c1eca0efbd82512ee57e95cb59
GitLab CI Log
Running with gitlab-runner 16.4.2 (e77af703)
on XXXXXXXX, system ID: XXXXXXXX
Resolving secrets 00:00
Preparing the "docker+machine" executor 00:06
Using Docker executor with image gcr.io/kaniko-project/executor:debug ...
Pulling docker image gcr.io/kaniko-project/executor:debug ...
Using docker image sha256:070be4aeed707aa03c2670dde249126c51f38fb0741e48ac00d48e4da0990e64 for gcr.io/kaniko-project/executor:debug with digest gcr.io/kaniko-project/executor@sha256:f60ace157b4ce9dd2275981838351da93ed7e0c1eca0efbd82512ee57e95cb59 ...
Preparing environment 00:01
Running on XXXXXXXX via XXXXXXXX...
Getting source from Git repository 00:12
Fetching changes with git depth set to 20...
Initialized empty Git repository in /builds/XXXXXXXX/XXXXXXXX/.git/
Created fresh repository.
Checking out XXXXXXXX as detached HEAD (ref is XXXXXXXX)...
Skipping Git submodules setup
Executing "step_script" stage of the job script 00:01
Using docker image sha256:070be4aeed707aa03c2670dde249126c51f38fb0741e48ac00d48e4da0990e64 for gcr.io/kaniko-project/executor:debug with digest gcr.io/kaniko-project/executor@sha256:f60ace157b4ce9dd2275981838351da93ed7e0c1eca0efbd82512ee57e95cb59 ...
$ cd dockerimages/src/main/docker/$CONTAINER_NAME # collapsed multi-line command
error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "[MASKED].dkr.ecr.eu-central-1.amazonaws.com/XXXXXXXX/dev/XXXXXXXX:XXXXXXXX": POST https://[MASKED].dkr.ecr.eu-central-1.amazonaws.com/v2/XXXXXXXX/dev/XXXXXXXX/blobs/uploads/: unexpected status code 401 Unauthorized: Not Authorized
Triage Notes for the Maintainers
Description
Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
The text was updated successfully, but these errors were encountered:
ChristopherKlinge
changed the title
authentication error in newest version of kaniko/executor:debug
ECR authentication fails in kaniko-project/executor:v1.19.0-debug
Dec 15, 2023
ChristopherKlinge
changed the title
ECR authentication fails in kaniko-project/executor:v1.19.0-debug
ECR authentication fails in kaniko-project/executor:v1.19.1-debug
Dec 15, 2023
ChristopherKlinge
changed the title
ECR authentication fails in kaniko-project/executor:v1.19.1-debug
ECR authentication fails in gcr.io/kaniko-project/executor:debug since version 1.19.1
Dec 15, 2023
Thanks for flagging this, kaniko has rolled back latest, debug and slim tags to v1.18.0. Closing this issue as dupe, there is another tracking bug here - #2882
Actual behavior
As of release 1.19.1 kaniko is no longer able to connect to ECR.
Expected behavior
Authentication for ECR should work as it did in earlier releases.
To Reproduce
Steps to reproduce the behavior:
gcr.io/kaniko-project/executor:v1.19.1-debug
Additional Information
Execution fails prior to reaching the actual docker build step.
Execution fails prior to reaching the actual docker build step.
gcr.io/kaniko-project/executor:debug
gcr.io/kaniko-project/executor@sha256:f60ace157b4ce9dd2275981838351da93ed7e0c1eca0efbd82512ee57e95cb59
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: