[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Problem to push image after build



How did you deploy the registry? With --mount-host or with a PersistentVolume or neither? The volume the registry uses needs to be labeled svirt_sandbox_file_t.

On Wed, Jul 8, 2015 at 11:56 AM, Massimiliano Dessì <massimiliano dessi gmail com> wrote:
On the docker registry when the build fails the log writes this:

time="2015-07-08T15:45:48Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=11525f84-9641-4908-8c4e-81b01da61f9e http.request.method=GET http.request.remoteaddr="10.1.0.1:59768" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:45:48Z" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.30.190.40:5000" http.request.id=11525f84-9641-4908-8c4e-81b01da61f9e http.request.method=GET http.request.remoteaddr="10.1.0.1:59768" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:45:48Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=11525f84-9641-4908-8c4e-81b01da61f9e http.request.method=GET http.request.remoteaddr="10.1.0.1:59768" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=3.385283ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
10.1.0.1 - - [08/Jul/2015:15:45:48 +0000] "GET /v2/ HTTP/1.1" 401 114 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:45:48Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=be7691a9-13e0-4bbb-887b-d8aa214a6dec http.request.method=GET http.request.remoteaddr="10.1.0.1:59774" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:45:48Z" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.30.190.40:5000" http.request.id=be7691a9-13e0-4bbb-887b-d8aa214a6dec http.request.method=GET http.request.remoteaddr="10.1.0.1:59774" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:45:48Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=be7691a9-13e0-4bbb-887b-d8aa214a6dec http.request.method=GET http.request.remoteaddr="10.1.0.1:59774" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=2.836786ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
10.1.0.1 - - [08/Jul/2015:15:45:48 +0000] "GET /v2/ HTTP/1.1" 401 114 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:45:50Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=fde4cac8-00ca-4081-ba07-f4b7d0d45ad8 http.request.method=POST http.request.remoteaddr="10.1.0.1:59784" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b vars.name="wordpress/centos7-wordpress"
time="2015-07-08T15:45:50Z" level=debug msg="OpenShift auth: checking for access to repository:wordpress/centos7-wordpress:pull"
time="2015-07-08T15:45:50Z" level=debug msg="OpenShift auth: checking for access to repository:wordpress/centos7-wordpress:push"
time="2015-07-08T15:45:50Z" level=debug msg="(*layerStore).Upload" http.request.host="172.30.190.40:5000" http.request.id=fde4cac8-00ca-4081-ba07-f4b7d0d45ad8 http.request.method=POST http.request.remoteaddr="10.1.0.1:59784" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b vars.name="wordpress/centos7-wordpress"
time="2015-07-08T15:45:50Z" level=info msg=Base.PutContent trace.duration=86.281µs trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/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=1cc4e747-92f7-4759-8872-9c067b292c42 trace.line=67
time="2015-07-08T15:45:50Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=fde4cac8-00ca-4081-ba07-f4b7d0d45ad8 http.request.method=POST http.request.remoteaddr="10.1.0.1:59784" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=331.052536ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
10.1.0.1 - - [08/Jul/2015:15:45:50 +0000] "POST /v2/wordpress/centos7-wordpress/blobs/uploads/ HTTP/1.1" 500 111 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:46:00Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=e7058d10-10c2-4455-8bca-91e808ac1737 http.request.method=GET http.request.remoteaddr="10.1.0.1:59795" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:00Z" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.30.190.40:5000" http.request.id=e7058d10-10c2-4455-8bca-91e808ac1737 http.request.method=GET http.request.remoteaddr="10.1.0.1:59795" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
10.1.0.1 - - [08/Jul/2015:15:46:00 +0000] "GET /v2/ HTTP/1.1" 401 114 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:46:00Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=e7058d10-10c2-4455-8bca-91e808ac1737 http.request.method=GET http.request.remoteaddr="10.1.0.1:59795" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=2.654632ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:00Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=55aeff3e-4ce2-47dc-b34a-f066ff34ebf3 http.request.method=GET http.request.remoteaddr="10.1.0.1:59801" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:00Z" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.30.190.40:5000" http.request.id=55aeff3e-4ce2-47dc-b34a-f066ff34ebf3 http.request.method=GET http.request.remoteaddr="10.1.0.1:59801" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:00Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=55aeff3e-4ce2-47dc-b34a-f066ff34ebf3 http.request.method=GET http.request.remoteaddr="10.1.0.1:59801" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=2.221675ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
10.1.0.1 - - [08/Jul/2015:15:46:00 +0000] "GET /v2/ HTTP/1.1" 401 114 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:46:02Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=41adaaca-cbcb-45d8-a5c4-caa147ed9a8e http.request.method=POST http.request.remoteaddr="10.1.0.1:59803" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b vars.name="wordpress/centos7-wordpress"
time="2015-07-08T15:46:02Z" level=debug msg="OpenShift auth: checking for access to repository:wordpress/centos7-wordpress:pull"
time="2015-07-08T15:46:02Z" level=debug msg="OpenShift auth: checking for access to repository:wordpress/centos7-wordpress:push"
10.1.0.1 - - [08/Jul/2015:15:46:02 +0000] "POST /v2/wordpress/centos7-wordpress/blobs/uploads/ HTTP/1.1" 500 111 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:46:03Z" level=debug msg="(*layerStore).Upload" http.request.host="172.30.190.40:5000" http.request.id=41adaaca-cbcb-45d8-a5c4-caa147ed9a8e http.request.method=POST http.request.remoteaddr="10.1.0.1:59803" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b vars.name="wordpress/centos7-wordpress"
time="2015-07-08T15:46:03Z" level=info msg=Base.PutContent trace.duration=89.049µs trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/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=c095663c-912e-4337-a161-591b7dbda56a trace.line=67
time="2015-07-08T15:46:03Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=41adaaca-cbcb-45d8-a5c4-caa147ed9a8e http.request.method=POST http.request.remoteaddr="10.1.0.1:59803" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=219.36229ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:13Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=ecf77377-9af9-40a3-81e9-fb79c23992c5 http.request.method=GET http.request.remoteaddr="10.1.0.1:59818" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:13Z" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.30.190.40:5000" http.request.id=ecf77377-9af9-40a3-81e9-fb79c23992c5 http.request.method=GET http.request.remoteaddr="10.1.0.1:59818" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:13Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=ecf77377-9af9-40a3-81e9-fb79c23992c5 http.request.method=GET http.request.remoteaddr="10.1.0.1:59818" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=3.991729ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
10.1.0.1 - - [08/Jul/2015:15:46:13 +0000] "GET /v2/ HTTP/1.1" 401 114 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:46:13Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=ac1098d1-fb16-44f7-8b40-d8bde9ef676d http.request.method=GET http.request.remoteaddr="10.1.0.1:59824" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:13Z" level=error msg="error authorizing context: authorization header with basic token required" http.request.host="172.30.190.40:5000" http.request.id=ac1098d1-fb16-44f7-8b40-d8bde9ef676d http.request.method=GET http.request.remoteaddr="10.1.0.1:59824" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
time="2015-07-08T15:46:13Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=ac1098d1-fb16-44f7-8b40-d8bde9ef676d http.request.method=GET http.request.remoteaddr="10.1.0.1:59824" http.request.uri="/v2/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=2.384062ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b
10.1.0.1 - - [08/Jul/2015:15:46:13 +0000] "GET /v2/ HTTP/1.1" 401 114 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:46:14Z" level=debug msg="authorizing request" http.request.host="172.30.190.40:5000" http.request.id=da52aa3a-7de0-454c-8aed-3176d477caa4 http.request.method=POST http.request.remoteaddr="10.1.0.1:59826" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b vars.name="wordpress/centos7-wordpress"
time="2015-07-08T15:46:14Z" level=debug msg="OpenShift auth: checking for access to repository:wordpress/centos7-wordpress:pull"
time="2015-07-08T15:46:15Z" level=debug msg="OpenShift auth: checking for access to repository:wordpress/centos7-wordpress:push"
time="2015-07-08T15:46:15Z" level=debug msg="(*layerStore).Upload" http.request.host="172.30.190.40:5000" http.request.id=da52aa3a-7de0-454c-8aed-3176d477caa4 http.request.method=POST http.request.remoteaddr="10.1.0.1:59826" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b vars.name="wordpress/centos7-wordpress"
time="2015-07-08T15:46:15Z" level=info msg=Base.PutContent trace.duration=161.422µs trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/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=8204e738-96eb-4dc2-bc57-ad387ebac911 trace.line=67
10.1.0.1 - - [08/Jul/2015:15:46:14 +0000] "POST /v2/wordpress/centos7-wordpress/blobs/uploads/ HTTP/1.1" 500 111 "" "docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64"
time="2015-07-08T15:46:15Z" level=info msg="response completed" http.request.host="172.30.190.40:5000" http.request.id=da52aa3a-7de0-454c-8aed-3176d477caa4 http.request.method=POST http.request.remoteaddr="10.1.0.1:59826" http.request.uri="/v2/wordpress/centos7-wordpress/blobs/uploads/" http.request.useragent="docker/1.6.2 go/go1.4.2 kernel/3.10.0-123.6.3.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=328.523539ms http.response.written=0 instance.id=5d1bd74b-a2e9-430c-ae6b-1113601d484b




2015-07-07 18:01 GMT+02:00 Massimiliano Dessì <massimiliano dessi gmail com>:
Hi all,
after the build the log
show this error related to push the image

1 builder.go:70] Build error: Failed to push image: API error (500):  v1 ping attempt failed with error: Get http://<registryServiceIP>:5000/v1/_ping: dial tcp <registryServiceIP>:5000: i/o timeout


Curl show this
curl http://<registryServiceIP>:5000/v1/
404 page not found


with a different url
curl http://<registryServiceIP>:5000/healthz
{}

responds correctly

Any Idea to solve ?

Thanks
Max
--

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]