docker-registry icon indicating copy to clipboard operation
docker-registry copied to clipboard

Error on push images to private registry: HTTP Error 500 HELP PLZ

Open bengong2015 opened this issue 9 years ago • 8 comments

I've tried to push an image from 'master' to local private registry.

docker push 202.120.11.59:5000/kubernetes/pause

The push refers to a repository [202.120.11.59:5000/kubernetes/pause](len: 1) Sending image list FATA[0004]

The system log on master: May 6 11:20:47 localhost docker: time="2015-05-06T11:20:47+08:00" level="info" msg="POST /v1.18/images/202.120.11.59:5000/kubernetes/pause/push?tag="

May 6 11:20:47 localhost docker: time="2015-05-06T11:20:47+08:00" level="info" msg="+job push(202.120.11.59:5000/kubernetes/pause)"

May 6 11:20:47 localhost docker: time="2015-05-06T11:20:47+08:00" level="info" msg="+job resolve_repository(202.120.11.59:5000/kubernetes/pause)"

May 6 11:20:47 localhost docker: time="2015-05-06T11:20:47+08:00" level="info" msg="-job resolve_repository(202.120.11.59:5000/kubernetes/pause) = OK (0)"

May 6 11:20:51 localhost docker: time="2015-05-06T11:20:51+08:00" level="info" msg="authConfig does not conform to given endpoint ( != 202.120.11.59:5000)"

May 6 11:20:51 localhost docker: Error: Status 500 trying to push repository kubernetes/pause:

May 6 11:20:51 localhost docker:

500 Internal Server Error

May 6 11:20:51 localhost docker:

Internal Server Error

May 6 11:20:51 localhost docker:

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

May 6 11:20:51 localhost docker: time="2015-05-06T11:20:51+08:00" level="info" msg="-job push(202.120.11.59:5000/kubernetes/pause) = ERR (1)"

Help plz.

bengong2015 avatar May 06 '15 02:05 bengong2015

I've checked the docker-registry's logs and find an error

IntegrityError: (IntegrityError) UNIQUE constraint failed: repository.name u'INSERT INTO repository (name, description) VALUES (?, ?)' ('kubernetes/pause', '')

bengong2015 avatar May 06 '15 06:05 bengong2015

Your search index is somehow corrupted. I would recommend deleting the index.

dmp42 avatar May 06 '15 19:05 dmp42

I'm having this same issue. How do you delete and rebuild the search index?

griddle81 avatar May 11 '15 20:05 griddle81

This usually happenes when you delete the tag (from some docker registry ui). Seems like docker-registry is not updating its search index. Im digging into it and i will submit a inssu there

bydga avatar Jun 25 '15 15:06 bydga

It caused by the SELinux, the docker daemon run with SELinux in default ('--selinux-enabled'), It would be fine if adding '--privileged=true' when running docker-registry container.

bengong2015 avatar Jul 09 '15 10:07 bengong2015

Just open the the registry db in SQLite browser and delete the entry that is causing the problem. This will ensure that the next subsequent push will be successful.

javasparkle avatar Aug 11 '15 15:08 javasparkle

How can I connect to the database? Or how do I delete the index?

driv avatar Sep 24 '15 19:09 driv

Having similar trouble. I'd also like to know.

thanks

sjfloat avatar Nov 03 '15 14:11 sjfloat