Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign updocker push failed due to "Error pushing to registry: Authentication is required." if build(buildconfig) created first #4518
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 4, 2015
Member
OK, it is NOT related to deploymentConfig and "second time". I found the correct order.
Reproduce steps (updated):
- step-1. Extract buildconfig and imagestream
# oc new-app https://github.com/nak3/helloworld-v3.git -o json > helloworld-v3.json
# cat helloworld-v3.json | jq .items[0] > imageStream.json
# cat helloworld-v3.json | jq .items[1] > buildConfig.json
- step-2 cretae build(buildconfig) before imagestream.
# oc create -f buildConfig.json
# oc create -f imageStream.json
- step-3. Get the auth error.
# oc build-logs helloworld-v3-1
...
I0903 09:42:29.887911 1 cfg.go:44] Locating docker auth for image 172.30.123.155:5000/default/helloworld-v3:latest and type PUSH_DOCKERCFG_PATH
I0903 09:42:29.888014 1 cfg.go:52] Problem accessing /root/.docker/config.json: stat /root/.docker/config.json: no such file or directory
I0903 09:42:29.888057 1 sti.go:151] Pushing 172.30.123.155:5000/default/helloworld-v3:latest image ...
F0903 09:42:31.505566 1 builder.go:47] Build error: Failed to push image: Error pushing to registry: Authentication is required.
|
OK, it is NOT related to deploymentConfig and "second time". I found the correct order. Reproduce steps (updated):
|
nak3
changed the title from
Second docker push failed due to "Error pushing to registry: Authentication is required." without deploymentConfig
to
docker push failed due to "Error pushing to registry: Authentication is required." if build(buildconfig) created first
Sep 4, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 5, 2015
Member
This will cause timing issue. For example, if you wrote BuildConifg ealier than ImageStream in the resource list like:
"items": [
{
"kind": "BuildConfig",
"apiVersion": "v1",
....
{
"kind": "ImageStream",
"apiVersion": "v1",
I wrote the example json, and it 100% caused Auth error with this command.
oc create -f https://gist.githubusercontent.com/nak3/2cbdc3fe9ce6ffce8fe5/raw/56234e102fe6c142b70e4b5bb022b9b15bccd857/auth-error.json
|
This will cause timing issue. For example, if you wrote BuildConifg ealier than ImageStream in the resource list like:
I wrote the example json, and it 100% caused Auth error with this command.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
sosiouxme
Sep 5, 2015
Member
I get the same thing every time with origin master and:
oc new-app 'https://github.com/sosiouxme/example-header-server.git#d78af60c2ec4dcfa860b1007c89e41d6fdd75eea'
Repeating the build or re-creating the BC doesn't seem to make any difference.
|
I get the same thing every time with origin master and:
Repeating the build or re-creating the BC doesn't seem to make any difference. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
sosiouxme
Sep 5, 2015
Member
openshift ex diagnostics reveals errors in the registry logs:
time="2015-09-05T19:53:39Z" level=debug msg="authorizing request" http.request.host="172.30.90.128:5000" http.request.id=d4d7d357-d58c-4267-b451-edc7a6c8a639 http.request.method=POST http.request.remoteaddr="10.1.1.1:59360" http.request.uri="/v2/default/example-header-server/blobs/uploads/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.11.1.el7.x86_64 os/linux arch/amd64" instance.id=091fdad7-7f84-4977-a397-e0607b27a6aa vars.name="default/example-header-server"
time="2015-09-05T19:53:39Z" level=debug msg="Origin auth: checking for access to repository:default/example-header-server:pull"
time="2015-09-05T19:53:39Z" level=error msg="OpenShift client error: User \"system:serviceaccount:default:builder\" cannot create localsubjectaccessreviews in project \"default\""
time="2015-09-05T19:53:39Z" level=error msg="error authorizing context: access denied" http.request.host="172.30.90.128:5000" http.request.id=d4d7d357-d58c-4267-b451-edc7a6c8a639 http.request.method=POST http.request.remoteaddr="10.1.1.1:59360" http.request.uri="/v2/default/example-header-server/blobs/uploads/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.11.1.el7.x86_64 os/linux arch/amd64" instance.id=091fdad7-7f84-4977-a397-e0607b27a6aa vars.name="default/example-header-server"
10.1.1.1 - - [05/Sep/2015:19:53:39 +0000] "POST /v2/default/example-header-server/blobs/uploads/ HTTP/1.1" 401 265 "" "docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.11.1.el7.x86_64 os/linux arch/amd64"
time="2015-09-05T19:53:39Z" level=info msg="response completed" http.request.host="172.30.90.128:5000" http.request.id=d4d7d357-d58c-4267-b451-edc7a6c8a639 http.request.method=POST http.request.remoteaddr="10.1.1.1:59360" http.request.uri="/v2/default/example-header-server/blobs/uploads/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.11.1.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=15.874426ms http.response.written=0 instance.id=091fdad7-7f84-4977-a397-e0607b27a6aa
"system:serviceaccount:default:builder" cannot create localsubjectaccessreviews in project "default" seems to be the central problem. Not sure if this is the same problem you're reporting or something else.
|
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
liggitt
Sep 5, 2015
Contributor
Does this happen if you create a new project, or just in the default project?
|
Does this happen if you create a new project, or just in the default project? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 6, 2015
Member
I tested default project, but if I created a new project, I got the error. (However if I tested with F21 with latest origin source, the message was a little changed, although still authentication error.)
I0906 04:55:45.638278 1 cfg.go:52] Problem accessing /root/.docker/config.json: stat /root/.docker/config.json: no such file or directory
I0906 04:55:45.638307 1 sti.go:151] Pushing 172.30.233.38:5000/demoproject/helloworld-v3:latest image ...
F0906 04:55:45.681072 1 builder.go:47] Build error: Failed to push image: Post http://172.30.233.38:5000/v2/demoproject/helloworld-v3/blobs/uploads/: no basic auth credentials
|
I tested default project, but if I created a new project, I got the error. (However if I tested with F21 with latest origin source, the message was a little changed, although still authentication error.)
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 7, 2015
Member
If I used openshift ex diagsnotics, I got this message.
$ openshift ex diagnostics
[Note] Determining if client configuration exists for client/cluster diagnostics
Info: Successfully read a client config file at '/home/knakayam/.kube/config'
[Note] Summary of diagnostics execution (version v1.0.5-264-g11321c4):
[Note] Errors seen: 1
While building the diagnostics, a panic was encountered.
This is a bug in diagnostics. Stack trace follows :
runtime error: invalid memory address or nil pointer dereference
|
If I used
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 7, 2015
Member
Different error message has bee appeared from newest sour code or docker 1.8.
I0907 17:14:15.979723 1 cfg.go:52] Problem accessing /root/.docker/config.json: stat /root/.docker/config.json: no such file or directory
I0907 17:14:15.979736 1 sti.go:151] Pushing 172.30.187.40:5000/demoproject/helloworld-v3:latest image ...
F0907 17:14:16.021194 1 builder.go:47] Build error: Failed to push image: Post http://172.30.187.40:5000/v2/demoproject/helloworld-v3/blobs/uploads/: no basic auth credentials
Following creation order (BuildConfig->ImageStream) causes above error.
oc create -f https://gist.githubusercontent.com/nak3/887503f9376ee2528d6a/raw/7f018a0a400dfbdb8a3014c66d07a7890453df63/bc.json
oc create -f https://gist.githubusercontent.com/nak3/64498d3e992d0c1492eb/raw/826acc37c68e1ffc6bcd27cbe6edee3e47a80054/is.json
|
Different error message has bee appeared from newest sour code or docker 1.8.
Following creation order (BuildConfig->ImageStream) causes above error.
|
sosiouxme
referenced this issue
Sep 8, 2015
Closed
diagnostics stack trace doesn't print a stack trace #4578
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
deads2k
Sep 8, 2015
Contributor
@bparees I remember similar errors happening when the build is started before an image stream has a IP for pushing. It happened because there was no way to auto-detect which dockercfg secrets might be valid and so none were chosen. The choice of secret was made (or not made) even though the information was present to know that there wasn't enough information to choose, but it was never re-checked.
Is this the same error with a different manifestation?
|
@bparees I remember similar errors happening when the build is started before an image stream has a IP for pushing. It happened because there was no way to auto-detect which dockercfg secrets might be valid and so none were chosen. The choice of secret was made (or not made) even though the information was present to know that there wasn't enough information to choose, but it was never re-checked. Is this the same error with a different manifestation? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bparees
Sep 8, 2015
Contributor
it could be. loglevel 5 build logs would give us more info about what, if any, push secret is being used by the build.
|
it could be. loglevel 5 build logs would give us more info about what, if any, push secret is being used by the build. |
bparees
added
kind/bug
component/build
priority/P2
labels
Sep 9, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 10, 2015
Member
I couldn't find any clue after setting Loglevel 5.- https://paste.fedoraproject.org/265517/
After fixed openshift ex diagnostics, the outputs says "error authorizing context: authorization header with basic token required".
time="2015-09-10T01:47:44Z" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.30.102.58:5000" http.request.id=68318684-ce54-412f-8ed0-78464616ed79 http.request.method=GET http.request.remoteaddr="172.17.42.1:60110" http.request.uri="/v2/" http.request.useragent="docker/1.8.1.fc21 go/go1.4.2 kernel/4.1.5-100.fc21.x86_64 os/linux arch/amd64" instance.id=3c555917-9a63-4ad1-9304-746234f05cd8
time="2015-09-10T01:51:45Z" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.30.102.58:5000" http.request.id=8af0b0f6-a408-49b4-8700-cf36d875afa1 http.request.method=GET http.request.remoteaddr="172.17.42.1:60514" http.request.uri="/v2/" http.request.useragent="docker/1.8.1.fc21 go/go1.4.2 kernel/4.1.5-100.fc21.x86_64 os/linux arch/amd64" instance.id=3c555917-9a63-4ad1-9304-746234f05cd8
entire messages - https://paste.fedoraproject.org/265485/
|
I couldn't find any clue after setting Loglevel 5.- https://paste.fedoraproject.org/265517/ After fixed
entire messages - https://paste.fedoraproject.org/265485/ |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
liggitt
Sep 10, 2015
Contributor
Can you include the JSON build definition and secrets from the namespace? (oc get builds,secrets -o json) Trying to figure out why the auth to the registry isn't getting propagated
|
Can you include the JSON build definition and secrets from the namespace? ( |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 10, 2015
Member
Sure here is the output of oc get builds,secrets -n demoproject -o json https://paste.fedoraproject.org/265528/
|
Sure here is the output of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
liggitt
Sep 10, 2015
Contributor
thanks, can you also include the JSON definitions of the pod created to run the build?
|
thanks, can you also include the JSON definitions of the pod created to run the build? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
deads2k
Sep 10, 2015
Contributor
The build's output stanza does not include a pushSecret value. If you do oc start-build to get a new build, does it have the pushSecret populated?
|
The build's |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 11, 2015
Member
thanks, can you also include the JSON definitions of the pod created to run the build?
OK, here it is. https://paste.fedoraproject.org/265912/
The build's output stanza does not include a pushSecret value. If you do oc start-build to get a new build, does it have the pushSecret populated?
Yes, oc start-build worked(build was completed) and it has the pushSecret https://paste.fedoraproject.org/265920/
OK, here it is. https://paste.fedoraproject.org/265912/
Yes, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 11, 2015
Member
thanks, can you also include the JSON definitions of the pod created to run the build?
OK, here it is. https://paste.fedoraproject.org/265912/
Sorry my mistake. Here is the json definitions of the pod created to run the build (builder container pod)
https://paste.fedoraproject.org/265923/
Sorry my mistake. Here is the json definitions of the pod created to run the build (builder container pod) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bparees
Sep 14, 2015
Contributor
no push secret populated. and "172.30.50.7:5000/demoproject/helloworld-v3:latest" definitely matches the current docker registry ip?
seems like maybe the issue is that something is getting mismatched between the ip you have credentials for and the ip we're trying to push to, which means we don't find an appropriate secret to attach to the pod.
is this consistently recreatable?
|
no push secret populated. and "172.30.50.7:5000/demoproject/helloworld-v3:latest" definitely matches the current docker registry ip? seems like maybe the issue is that something is getting mismatched between the ip you have credentials for and the ip we're trying to push to, which means we don't find an appropriate secret to attach to the pod. is this consistently recreatable? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Sep 15, 2015
Member
no push secret populated. and "172.30.50.7:5000/demoproject/helloworld-v3:latest" definitely matches the current docker registry ip?
Yes, it is match the current docker registry ip.
is this consistently recreatable?
Yes, it is recreatable. Following commnad will reproduce it. (Need to create bc.json first)
oc create -f https://gist.githubusercontent.com/nak3/887503f9376ee2528d6a/raw/7f018a0a400dfbdb8a3014c66d07a7890453df63/bc.json
oc create -f https://gist.githubusercontent.com/nak3/64498d3e992d0c1492eb/raw/826acc37c68e1ffc6bcd27cbe6edee3e47a80054/is.json
When I failed to build with this error, following messages output to server log. After failed to create secret with resolveImageSecret in pkg/build/generator/generator.go, it seems that it wouldn't try to create the secret again.
Failed log (bc -> is)
I0915 14:25:40.153218 2897 generator.go:404] Resolving ImageStreamReference php:latest of Kind ImageStreamTag in namespace openshift
I0915 14:25:40.155065 2897 generator.go:428] Resolved ImageStreamTag php:latest to image sha256:ea8cf49363284860de3b5650e713bfe10a8ad03d460151a4bf2025b6418d43b4 with reference openshift/php-55-centos7@sha256:ea8cf49363284860de3b5650e713bfe10a8ad03d460151a4bf2025b6418d43b4 in namespace openshift
I0915 14:25:40.159789 2897 generator.go:445] Resolving ImageStreamReference helloworld-v3:latest of Kind ImageStreamTag in namespace demoproject
I0915 14:25:40.160018 2897 generator.go:463] Error getting ImageStream demoproject/helloworld-v3: imageStream "helloworld-v3" not found
I0915 14:25:40.160029 2897 generator.go:493] Unable to resolve the image name for demoproject/&{ImageStreamTag helloworld-v3:latest }: imageStream "helloworld-v3" not found
I0915 14:25:40.160044 2897 generator.go:445] Resolving ImageStreamReference openshift/php-55-centos7@sha256:ea8cf49363284860de3b5650e713bfe10a8ad03d460151a4bf2025b6418d43b4 of Kind DockerImage in namespace demoproject
I0915 14:25:40.160152 2897 generator.go:506] No secrets found for pushing or pulling the DockerImage demoproject/openshift/php-55-centos7@sha256:ea8cf49363284860de3b5650e713bfe10a8ad03d460151a4bf2025b6418d43b4
...
I0915 14:25:46.326024 2897 controller.go:79] Handling Build demoproject/helloworld-v3-1
I0915 14:25:46.328657 2897 admission.go:91] getting security context constraints for pod helloworld-v3-1-build (generate: ) in namespace demoproject with user info &{system:serviceaccount:demoproject:builder [system:serviceaccounts system:serviceaccounts:demoproject]}
I0915 14:25:46.328683 2897 admission.go:100] getting security context constraints for pod helloworld-v3-1-build (generate: ) with service account info &{system:serviceaccount:demoproject:builder [system:serviceaccounts system:serviceaccounts:demoproject]}
I0915 14:25:46.328695 2897 admission.go:374] validating pod helloworld-v3-1-build (generate: ) against providers
Success log (is -> bc)
I0915 14:28:02.809786 2897 generator.go:404] Resolving ImageStreamReference php:latest of Kind ImageStreamTag in namespace openshift
I0915 14:28:02.811467 2897 generator.go:428] Resolved ImageStreamTag php:latest to image sha256:ea8cf49363284860de3b5650e713bfe10a8ad03d460151a4bf2025b6418d43b4 with reference openshift/php-55-centos7@sha256:ea8cf49363284860de3b5650e713bfe10a8ad03d460151a4bf2025b6418d43b4 in namespace openshift
I0915 14:28:02.817672 2897 generator.go:445] Resolving ImageStreamReference helloworld-v3:latest of Kind ImageStreamTag in namespace demoproject
I0915 14:28:02.818299 2897 generator.go:474] Resolved ImageStreamTag demoproject/helloworld-v3:latest to repository 172.30.237.193:5000/demoproject/helloworld-v3
I0915 14:28:02.818445 2897 generator.go:445] Resolving ImageStreamReference openshift/php-55-centos7@sha256:ea8cf49363284860de3b5650e713bfe10a8ad03d460151a4bf2025b6418d43b4 of Kind DockerImage in namespace demoproject
I0915 14:28:02.818570 2897 generator.go:506] No secrets found for pushing or pulling the DockerImage demoproject/openshift/php-55-centos7@sha256:ea8cf49363284860de3b5650e713bfe10a8ad03d460151a4bf2025b6418d43b4
...
I0915 14:28:02.822225 2897 controller.go:79] Handling Build demoproject/helloworld-v3-1
I0915 14:28:02.822324 2897 config_controller.go:20] Handling BuildConfig demoproject/helloworld-v3
I0915 14:28:02.837651 2897 admission.go:91] getting security context constraints for pod helloworld-v3-1-build (generate: ) in namespace demoproject with user info &{system:serviceaccount:demoproject:builder [system:serviceaccounts system:serviceaccounts:demoproject]}
I0915 14:28:02.837677 2897 admission.go:100] getting security context constraints for pod helloworld-v3-1-build (generate: ) with service account info &{system:serviceaccount:demoproject:builder [system:serviceaccounts system:serviceaccounts:demoproject]}
I0915 14:28:02.837689 2897 admission.go:374] validating pod helloworld-v3-1-build (generate: ) against providers
Yes, it is match the current docker registry ip.
Yes, it is recreatable. Following commnad will reproduce it. (Need to create bc.json first)
When I failed to build with this error, following messages output to server log. After failed to create secret with Failed log (bc -> is)
Success log (is -> bc)
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bparees
Sep 15, 2015
Contributor
ok here's what's happening.
during the generation of the build object, we try to resolve the output IST so we can decide what secret we need to use with it. the resolution fails so we don't setup any push secret, but that does not (and should not) fail the creation of the build object.
So a build object gets created.
Then the build controller sees it and tries to process the build object. part of processing the build object requires resolving the output IST (so we know where to push). Since we can't do this (no IST yet), the build hangs in a retry state until the IST gets created.
Finally the IST gets created and the build proceeds, but the push secret was never set up.
The right fix for this is to resolve the output push location at the time we create the build also, but i think there are some flow challenges with doing that. Another option would be to update the push secret when we resolve the reference in the build controller, instead of when creating the build in the buildconfig controller.
either way it's a real bug, you need to create your IST before launching the build if you don't want to hit it, but since that's fairly easily worked around i'm lowering it to a sev3.
|
ok here's what's happening. during the generation of the build object, we try to resolve the output IST so we can decide what secret we need to use with it. the resolution fails so we don't setup any push secret, but that does not (and should not) fail the creation of the build object. So a build object gets created. Then the build controller sees it and tries to process the build object. part of processing the build object requires resolving the output IST (so we know where to push). Since we can't do this (no IST yet), the build hangs in a retry state until the IST gets created. Finally the IST gets created and the build proceeds, but the push secret was never set up. The right fix for this is to resolve the output push location at the time we create the build also, but i think there are some flow challenges with doing that. Another option would be to update the push secret when we resolve the reference in the build controller, instead of when creating the build in the buildconfig controller. either way it's a real bug, you need to create your IST before launching the build if you don't want to hit it, but since that's fairly easily worked around i'm lowering it to a sev3. |
bparees
added
priority/P3
and removed
priority/P2
labels
Sep 15, 2015
bparees
self-assigned this
Sep 15, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
liggitt
Sep 15, 2015
Contributor
also, a second build would work, even if the first encounters this bug, right?
|
also, a second build would work, even if the first encounters this bug, right? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bparees
Sep 15, 2015
Contributor
yes that's what i meant by "fairly easily worked around" but i guess I didn't complete the thought.
|
yes that's what i meant by "fairly easily worked around" but i guess I didn't complete the thought. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nak3
Jan 20, 2016
Member
@bparees Yes, that's also the reason I thought it might be better written documentation of template section.
After developers create a new template, it will pass their tests (with second build) and be released. That could cause mysterious situation for all users who use the template after release.
|
@bparees Yes, that's also the reason I thought it might be better written documentation of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jorgemoralespou
Jan 25, 2016
@bparees I think this should be bumped in priority, as one thing we are doing is:
- Create the project and deploy resources in "copy&paste" format in learning material
- Create the project and deploy resources in "CI" environments
jorgemoralespou
commented
Jan 25, 2016
|
@bparees I think this should be bumped in priority, as one thing we are doing is:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
david-strejc
Mar 4, 2016
I don't know if it will help but:
- my first build of my template passed in namespace1
- my second build of the same template failed in namespace2 (I was still logged in as same user)
- my third build inside namespace3 failed - both of them failed with:
Error: build error: Failed to push image. Response from registry is: Post http://172.30.106.181:5000/v2/smith/redmine/blobs/uploads/: no basic auth credentials
I am using same template for deployments.
Edit: I've tried fourth build and it passed - same template nothing modified.
david-strejc
commented
Mar 4, 2016
|
I don't know if it will help but:
I am using same template for deployments. Edit: I've tried fourth build and it passed - same template nothing modified. |
mfojtik
added
priority/P1
and removed
priority/P3
labels
Mar 4, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@jorgemoralespou @david-strejc prio bumped. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
msirovy
commented
Mar 4, 2016
|
thanks form EASY!!! |
bparees
added
priority/P2
and removed
priority/P1
labels
Mar 4, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bparees
Mar 4, 2016
Contributor
this issue exists to resolve exactly one problem, the one described here:
#4518 (comment)
please open a separate issue if you are having push issues under another scenario.
|
this issue exists to resolve exactly one problem, the one described here: please open a separate issue if you are having push issues under another scenario. |
david-strejc
referenced this issue
Mar 7, 2016
Closed
Push of image failed "no basic auth credentials" #7825
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
paralin
Mar 25, 2016
Contributor
The no basic auth creds problem is still happening for me, and starting a new build doesnt always fix it.
|
The no basic auth creds problem is still happening for me, and starting a new build doesnt always fix it. |
This was referenced Apr 4, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
debianmaster
Aug 9, 2016
facing the same issue
E0808 18:46:41.896388 1 cfg.go:57] Reading /var/run/secrets/openshift.io/push failed: read /var/run/secrets/openshift.io/push: is a directory
I0808 18:46:41.896421 1 sti.go:215] No push secret provided
I0808 18:46:41.896426 1 sti.go:217] Pushing 172.30.79.164:5000/development/welcome:latest image ...
F0808 18:46:41.908998 1 builder.go:59] Build error: Failed to push image. Response from registry is: Post http://172.30.79.164:5000/v2/development/welcome/blobs/uploads/: no basic auth credentials
debianmaster
commented
Aug 9, 2016
|
facing the same issue E0808 18:46:41.896388 1 cfg.go:57] Reading /var/run/secrets/openshift.io/push failed: read /var/run/secrets/openshift.io/push: is a directory
I0808 18:46:41.896421 1 sti.go:215] No push secret provided
I0808 18:46:41.896426 1 sti.go:217] Pushing 172.30.79.164:5000/development/welcome:latest image ...
F0808 18:46:41.908998 1 builder.go:59] Build error: Failed to push image. Response from registry is: Post http://172.30.79.164:5000/v2/development/welcome/blobs/uploads/: no basic auth credentials |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@debianmaster are all your builds failing or just the first one? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
debianmaster
commented
Aug 9, 2016
|
@bparees all build not just first one, iam not able to do any s2i |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bparees
Aug 9, 2016
Contributor
@debianmaster then you have a different issue, not this one. likely your project/service account is missing the tokens that should be autogenerated. please open a new issue and tag @liggitt and @deads2k.
|
@debianmaster then you have a different issue, not this one. likely your project/service account is missing the tokens that should be autogenerated. please open a new issue and tag @liggitt and @deads2k. |
added a commit
to appuio/appuio-docker-builder
that referenced
this issue
Aug 21, 2016
bparees
referenced this issue
Aug 24, 2016
Closed
[DO_NOT_MERGE] resolve secrets at pod creation time #10604
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
So how this one is going on? still bumpt? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bparees
Dec 6, 2016
Contributor
@mangirdaz it's still an issue and we still want to fix it, it's not a trivial issue to resolve due to needing to refactor significant chunks of code and given that there are easy workarounds (wait a few seconds after creating a project before you create a build, or rerun your failed build), it's not a high priority.
|
@mangirdaz it's still an issue and we still want to fix it, it's not a trivial issue to resolve due to needing to refactor significant chunks of code and given that there are easy workarounds (wait a few seconds after creating a project before you create a build, or rerun your failed build), it's not a high priority. |
guangxuli
referenced this issue
Dec 22, 2016
Closed
Unable to push image to integrete docker registry #12299
added a commit
to rtnpro/kompose
that referenced
this issue
Dec 28, 2016
kadel
referenced this issue
Mar 20, 2017
Closed
Docker build fails: Failed to push image: unauthized:authentication required #496
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bparees
Apr 19, 2017
Contributor
we're now tracking this in bugzilla, closing this issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1443163
|
we're now tracking this in bugzilla, closing this issue. |
nak3 commentedSep 4, 2015
NOTE: It might be expected behaivor, but please allow me to file the report.
Env
Issue
_(Removed reprodce steps, because I wrote wrong steps. I updated below)_