Registry doesn't work properly after backup and restore to another server
After I backup and restore the gitlab to another server, the registry doesn't work as usual.
The Gitlab version is 11.1.4.
When I try to delete an image, the registry UI displays "something went wrong on our backend", the corresponding log says:
2018-08-08_04:02:58.10264 time="2018-08-08T12:02:58.102558133+08:00" level=info msg="response completed" environment=production go.version=go1.10.3 http.request.host="localhost:5000" http.request.id=1ef5d84d-927e-4fe6-827d-6e1d2b5140d6 http.request.method=HEAD http.request.remoteaddr="127.0.0.1:55482" http.request.uri="/v2/corp/qj-ui/manifests/master" http.request.useragent="Faraday v0.12.2" http.response.contenttype="application/vnd.docker.distribution.manifest.v2+json" http.response.duration=3.110397ms http.response.status=200 http.response.written=1159 instance.id=543e5782-aa71-4c3e-8e1f-35b2d993cf1a service=registry version=v2.6.2-2-g91c17ef 2018-08-08_04:02:58.10269 127.0.0.1 - - [08/Aug/2018:12:02:58 +0800] "HEAD /v2/corp/qj-ui/manifests/master HTTP/1.1" 200 1159 "" "Faraday v0.12.2" 2018-08-08_04:02:58.10806 time="2018-08-08T12:02:58.107968069+08:00" level=error msg="response completed with error" auth.user.name= environment=production err.code=unknown err.message="unknown error" go.version=go1.10.3 http.request.host="localhost:5000" http.request.id=8af6f762-7ab8-4199-b008-fde60d501b9a http.request.method=DELETE http.request.remoteaddr="127.0.0.1:55484" http.request.uri="/v2/corp/qj-ui/manifests/sha256:b51f067cd92cddeda30bcac352e9499b0d7e6f47272374c75907fa660bb08bc3" http.request.useragent="Faraday v0.12.2" http.response.contenttype="application/json; charset=utf-8" http.response.duration=3.816856ms http.response.status=500 http.response.written=58 instance.id=543e5782-aa71-4c3e-8e1f-35b2d993cf1a service=registry vars.name="corp/qj-ui" vars.reference="sha256:b51f067cd92cddeda30bcac352e9499b0d7e6f47272374c75907fa660bb08bc3" version=v2.6.2-2-g91c17ef 2018-08-08_04:02:58.10810 127.0.0.1 - - [08/Aug/2018:12:02:58 +0800] "DELETE /v2/corp/qj-ui/manifests/sha256:b51f067cd92cddeda30bcac352e9499b0d7e6f47272374c75907fa660bb08bc3 HTTP/1.1" 500 58 "" "Faraday v0.12.2"
BTW, docker login
and docker pull
of the image still works.