kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

error checking push permissions -- make sure you entered the correct tag name

Open eravindar12 opened this issue 3 years ago • 10 comments

I see below the issue and how to fix it.

$ export DOCKER_REPOSITORY=${DOCKER_REPOSITORY:-ecommerce/$CI_PROJECT_NAME${APP:+/}$APP}
$ echo "{\"auths\":{\"$DOCKER_REGISTRY\":{\"username\":\"$DFWP_HARBOR_USER\",\"password\":\"$DFWP_HARBOR_PASS\"}}}" > /kaniko/.docker/config.json
$ /kaniko/executor \ # 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 "dfwpharb01.sial.com/ecommerce/aem-cms/aem-dispatcher:release-integration-3513e70d": POST https://dfwpharb01.sial.com/v2/ecommerce/aem-cms/aem-dispatcher/blobs/uploads/: UNAUTHORIZED: unauthorized to access repository: ecommerce/aem-cms/aem-dispatcher, action: push: unauthorized to access repository: ecommerce/aem-cms/aem-dispatcher, action: push

eravindar12 avatar Aug 24 '22 20:08 eravindar12

I'm seeing similar with pushing to GCP artifact registry, looks like possible regression of https://github.com/GoogleContainerTools/kaniko/issues/1786? Per the comments on that issue, pushing works when using 1.6.0.

indistinctTalk avatar Aug 29 '22 03:08 indistinctTalk

ECR Push operation is failing with following error using kaniko, it used to work until yesterday. Kaniko version - v1.6.0 I tried testing it out with v1.7.0, v1.9.0 (latest) but still facing same issue. Any one had same issue? and resolved? I really appreciate you help 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 "https://ecr-private-repo/uploads": Post "https://ecr-private-repo/uploads": EOF

vmamidala-conga avatar Sep 26 '22 20:09 vmamidala-conga

Yep same issue here - works with v1.6.0, but any newer and it's borked.

mofirouz avatar Nov 04 '22 00:11 mofirouz

v1.6.0 does not work for me .. all the way up to 1.12.1. It was working yesterday.

jessequinn avatar Jul 15 '23 10:07 jessequinn

Depending on this issue is not resolved, tekton kaniko version upgrade from 1.5.1 to 1.13.0 will not work

zijiwork avatar Aug 03 '23 07:08 zijiwork

ECR Push operation is failing with following error using kaniko, it used to work until yesterday. Kaniko version - v1.6.0 I tried testing it out with v1.7.0, v1.9.0 (latest) but still facing same issue. Any one had same issue? and resolved? I really appreciate you help 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 "https://ecr-private-repo/uploads": Post "https://ecr-private-repo/uploads": EOF

Hello @vmamidala-conga Were you able to fix the problem? I have the same problem; I tried v.1.16.0 and 1.17.0, nothing changed.

Thanks & Regards

tirelibirefe avatar Oct 20 '23 21:10 tirelibirefe

1.5.1

1.12.1 didn't work at me.

tirelibirefe avatar Oct 20 '23 21:10 tirelibirefe

you must verify the encoded value of auth. if you use "username:password" to authenticate you must encode it as : echo -n "username:password" | base64 and not : echo -n username:password | base64. because the double quotes makes the difference. then you can put the content below to this location /kaniko/.docker/config.json the content of the file:

{
       "auths": {
                "YOUR_CI_REGISTRY": {
                 "auth": ENCODED_BASE64_STRING"
                }
}

ALGHARRASS-AYOUB avatar May 17 '24 19:05 ALGHARRASS-AYOUB