Why can't I push the image to the registry ?
Issue
- BUILD LOG:
I1001 05:15:32.025816 1 sti.go:251] Successfully built 172.x.x.x:5000/test/test:latest
I1001 05:15:32.044147 1 cleanup.go:23] Removing temporary directory /tmp/sti478141593
I1001 05:15:32.044185 1 fs.go:99] Removing directory '/tmp/sti478141593'
I1001 05:15:32.045850 1 sti.go:146] Using provided push secret for pushing 172.30.178.159:5000/test/test:latest image
I1001 05:15:32.045863 1 sti.go:149] Pushing 172.x.x.x:5000/test/test:latest image ...
E1001 05:15:35.930820 1 dockerutil.go:50] push for image 172.x.x.x:5000/test/test:latest failed, will retry in 10s ...
E1001 05:15:49.603965 1 dockerutil.go:50] push for image 172.x.x.x:5000/test/test:latest failed, will retry in 10s ...
F1001 05:16:06.096877 1 builder.go:65] Build error: Failed to push image: Error pushing to registry: Server error: unexpected 500 response status trying to initiate upload of test/test
- DOCKER REGISTRY :
10.x.x.x - - [01/Oct/2015:05:15:59 -0400] "GET /v2/ HTTP/1.1" 401 114 "" "docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64"
10.x.x.x - - [01/Oct/2015:05:15:59 -0400] "GET /v2/ HTTP/1.1" 401 114 "" "docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64"
time="2015-10-01T05:15:59-04:00" level=debug msg="authorizing request" http.request.host="172.x.x.x:5000" http.request.id=e1642490-3c86-4d0b-801a-e91ff526fe80 http.request.method=GET http.request.remoteaddr="10.x.x.x:49635" http.request.uri="/v2/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64" instance.id=9378ef99-70b9-450e-a5ef-23c7467f5f15
time="2015-10-01T05:15:59-04:00" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.x.x.x:5000" http.request.id=e1642490-3c86-4d0b-801a-e91ff526fe80 http.request.method=GET http.request.remoteaddr="10.x.x.x:49635" http.request.uri="/v2/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64" instance.id=9378ef99-70b9-450e-a5ef-23c7467f5f15
time="2015-10-01T05:15:59-04:00" level=info msg="response completed" http.request.host="172.x.x.x:5000" http.request.id=e1642490-3c86-4d0b-801a-e91ff526fe80 http.request.method=GET http.request.remoteaddr="10.x.x.x:49635" http.request.uri="/v2/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=1.595089ms http.response.written=0 instance.id=9378ef99-70b9-450e-a5ef-23c7467f5f15
time="2015-10-01T05:15:59-04:00" level=debug msg="authorizing request" http.request.host="172.30.178.159:5000" http.request.id=2ca8c28c-4689-46fa-8dcb-1c0dcaa3c438 http.request.method=POST http.request.remoteaddr="10.x.x.x:49637" http.request.uri="/v2/test/test/blobs/uploads/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64" instance.id=9378ef99-70b9-450e-a5ef-23c7467f5f15 vars.name="test/test"
time="2015-10-01T05:15:59-04:00" level=debug msg="OpenShift auth: checking for access to repository:test/test:pull"
time="2015-10-01T05:16:05-04:00" level=debug msg="OpenShift auth: checking for access to repository:test/test:push"
time="2015-10-01T05:16:06-04:00" level=debug msg="(*layerStore).Upload" http.request.host="172.x.x.x:5000" http.request.id=2ca8c28c-4689-46fa-8dcb-1c0dcaa3c438 http.request.method=POST http.request.remoteaddr="10.x.x.x:49637" http.request.uri="/v2/test/test/blobs/uploads/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64" instance.id=9378ef99-70b9-450e-a5ef-23c7467f5f15 vars.name="test/test"
10.x.x.x - - [01/Oct/2015:05:15:59 -0400] "POST /v2/test/test/blobs/uploads/ HTTP/1.1" 500 146 "" "docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64"
time="2015-10-01T05:16:06-04:00" level=info msg=Base.PutContent trace.duration=1.836534ms trace.file="/builddir/build/BUILD/openshift-git-503.7cc6deb/_thirdpartyhacks/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=8afbbd5f-2dee-4ec7-b5df-ca56782d467e trace.line=67
time="2015-10-01T05:16:06-04:00" level=info msg="response completed" http.request.host="172.x.x.x:5000" http.request.id=2ca8c28c-4689-46fa-8dcb-1c0dcaa3c438 http.request.method=POST http.request.remoteaddr="10.x.x.x:49637" http.request.uri="/v2/test/test/blobs/uploads/" http.request.useragent="docker/1.7.1 go/go1.4.2 kernel/3.10.0-229.14.1.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=6.201461766s http.response.written=0 instance.id=9378ef99-70b9-450e-a5ef-23c7467f5f15
Environment
- Openshift v3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
