{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker-registry/issues/904","labels_url":"https://api.github.com/repos/docker/docker-registry/issues/904/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-registry/issues/904/comments","events_url":"https://api.github.com/repos/docker/docker-registry/issues/904/events","html_url":"https://github.com/docker/docker-registry/issues/904","id":54959960,"number":904,"title":"Unable to push image","user":{"login":"soupdiver","id":800562,"avatar_url":"https://avatars.githubusercontent.com/u/800562?v=3","gravatar_id":"","url":"https://api.github.com/users/soupdiver","html_url":"https://github.com/soupdiver","followers_url":"https://api.github.com/users/soupdiver/followers","following_url":"https://api.github.com/users/soupdiver/following{/other_user}","gists_url":"https://api.github.com/users/soupdiver/gists{/gist_id}","starred_url":"https://api.github.com/users/soupdiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupdiver/subscriptions","organizations_url":"https://api.github.com/users/soupdiver/orgs","repos_url":"https://api.github.com/users/soupdiver/repos","events_url":"https://api.github.com/users/soupdiver/events{/privacy}","received_events_url":"https://api.github.com/users/soupdiver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-21T00:14:31Z","updated_at":"2015-01-21T00:39:10Z","closed_at":null,"body":"I'm running the registry via `docker run -i -t -p 127.0.0.1:6000:5000 -e DEBUG=true registry`\r\nI've got nginx in place with my own CA.\r\nThe CA is added to the client as well.\r\n\r\n```\r\ndocker login https://registry.XXX.com:8888\r\n```\r\n\r\ngives `Login Succeeded`\r\n\r\n`docker push registry.XXX.com:8888/foo` results in\r\n\r\n```\r\nThe push refers to a repository [registry.XXX.com:8888/foo] (len: 1)\r\nSending image list\r\nPushing repository registry..com:8888/foo (1 tags)\r\n511136ea3c5a: Pushing [==================================================>] 1.536 kB/1.536 kB\r\n```\r\n\r\nand on the server side\r\n```\r\n172.17.42.1 - - [20/Jan/2015:23:57:02 +0000] \"GET /v1/_ping HTTP/1.0\" 200 1547 \"-\" \"Go 1.1 package http\"\r\n172.17.42.1 - - [20/Jan/2015:23:57:02 +0000] \"GET /v1/_ping HTTP/1.0\" 200 1547 \"-\" \"Go 1.1 package http\"\r\n20/Jan/2015:23:57:02 +0000 DEBUG: args = {'namespace': 'library', 'repository': u'foo'}\r\n172.17.42.1 - - [20/Jan/2015:23:57:02 +0000] \"PUT /v1/repositories/foo/ HTTP/1.0\" 200 2 \"-\" \"docker/1.3.3 go/go1.3.3 git-commit/d344625 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n20/Jan/2015:23:57:02 +0000 DEBUG: args = {'image_id': u'511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158'}\r\n20/Jan/2015:23:57:02 +0000 DEBUG: api_error: Image not found\r\n172.17.42.1 - - [20/Jan/2015:23:57:02 +0000] \"GET /v1/images/511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158/json HTTP/1.0\" 404 28 \"-\" \"docker/1.3.3 go/go1.3.3 git-commit/d344625 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n20/Jan/2015:23:57:02 +0000 DEBUG: args = {'image_id': u'511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158'}\r\n172.17.42.1 - - [20/Jan/2015:23:57:02 +0000] \"PUT /v1/images/511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158/json HTTP/1.0\" 200 4 \"-\" \"docker/1.3.3 go/go1.3.3 git-commit/d344625 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n```\r\n\r\nSo there is a 404 occuring?\r\n\r\nTrying `docker push registry.XXX:8888/foo` again gives\r\n\r\n```\r\n172.17.42.1 - - [20/Jan/2015:23:57:19 +0000] \"GET /v1/_ping HTTP/1.0\" 200 1547 \"-\" \"Go 1.1 package http\"\r\n172.17.42.1 - - [20/Jan/2015:23:57:19 +0000] \"GET /v1/_ping HTTP/1.0\" 200 1547 \"-\" \"Go 1.1 package http\"\r\n20/Jan/2015:23:57:19 +0000 DEBUG: args = {'namespace': 'library', 'repository': u'foo'}\r\n172.17.42.1 - - [20/Jan/2015:23:57:19 +0000] \"PUT /v1/repositories/foo/ HTTP/1.0\" 200 2 \"-\" \"docker/1.3.3 go/go1.3.3 git-commit/d344625 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n20/Jan/2015:23:57:19 +0000 DEBUG: args = {'image_id': u'511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158'}\r\n20/Jan/2015:23:57:19 +0000 DEBUG: api_error: Image is being uploaded, retry later\r\n172.17.42.1 - - [20/Jan/2015:23:57:19 +0000] \"GET /v1/images/511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158/json HTTP/1.0\" 400 49 \"-\" \"docker/1.3.3 go/go1.3.3 git-commit/d344625 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n20/Jan/2015:23:57:19 +0000 DEBUG: args = {'image_id': u'511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158'}\r\n172.17.42.1 - - [20/Jan/2015:23:57:19 +0000] \"PUT /v1/images/511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158/json HTTP/1.0\" 200 4 \"-\" \"docker/1.3.3 go/go1.3.3 git-commit/d344625 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n```\r\n\r\nNow it says, the image is being uploaded but nothing is happening.\r\nI also tried to push different images and **always** it only pushes\r\n\r\n```\r\nPushing [==================================================>] 1.536 kB/1.536 kB\r\n```\r\nthese **1.536 kB**\r\n\r\nnginx error log shows nothing and the `client_max_body_size 2000M;` should be big enough.\r\n\r\nI basically followed this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-14-04\r\n\r\nWhen I access `/v1/_ping` I get\r\n```\r\n{\r\n  \"host\": [\"Linux\", \"0da9265cd8c4\", \"3.5.0-37-generic\", \"#58~precise1-Ubuntu SMP Wed Jul 10 17:48:11 UTC 2013\", \"x86_64\", \"x86_64\"],\r\n  \"launch\": [\"/usr/local/bin/gunicorn\", \"--access-logfile\", \"-\", \"--error-logfile\", \"-\", \"--max-requests\", \"100\", \"-k\", \"gevent\", \"--graceful-timeout\", \"3600\", \"-t\", \"3600\", \"-w\", \"4\", \"-b\", \"0.0.0.0:5000\", \"--reload\", \"docker_registry.wsgi:application\"],\r\n  \"versions\": {\r\n    \"M2Crypto.m2xmlrpclib\": \"0.22\",\r\n    \"SocketServer\": \"0.4\",\r\n    \"argparse\": \"1.1\",\r\n    \"backports.lzma\": \"0.0.3\",\r\n    \"blinker\": \"1.3\",\r\n    \"cPickle\": \"1.71\",\r\n    \"cgi\": \"2.6\",\r\n    \"ctypes\": \"1.1.0\",\r\n    \"decimal\": \"1.70\",\r\n    \"distutils\": \"2.7.6\",\r\n    \"docker_registry.app\": \"0.9.1\",\r\n    \"docker_registry.core\": \"2.0.3\",\r\n    \"docker_registry.server\": \"0.9.1\",\r\n    \"email\": \"4.0.3\",\r\n    \"flask\": \"0.10.1\",\r\n    \"gevent\": \"1.0.1\",\r\n    \"greenlet\": \"0.4.5\",\r\n    \"gunicorn\": \"19.1.1\",\r\n    \"gunicorn.arbiter\": \"19.1.1\",\r\n    \"gunicorn.config\": \"19.1.1\",\r\n    \"gunicorn.six\": \"1.2.0\",\r\n    \"jinja2\": \"2.7.3\",\r\n    \"json\": \"2.0.9\",\r\n    \"logging\": \"0.5.1.2\",\r\n    \"parser\": \"0.5\",\r\n    \"pickle\": \"$Revision: 72223 $\",\r\n    \"platform\": \"1.0.7\",\r\n    \"pyexpat\": \"2.7.6\",\r\n    \"python\": \"2.7.6 (default, Mar 22 2014, 22:59:56) \\n[GCC 4.8.2]\",\r\n    \"re\": \"2.2.1\",\r\n    \"redis\": \"2.10.3\",\r\n    \"requests\": \"2.3.0\",\r\n    \"requests.packages.chardet\": \"2.2.1\",\r\n    \"requests.packages.urllib3\": \"dev\",\r\n    \"requests.packages.urllib3.packages.six\": \"1.2.0\",\r\n    \"requests.utils\": \"2.3.0\",\r\n    \"simplejson\": \"3.6.2\",\r\n    \"sqlalchemy\": \"0.9.4\",\r\n    \"tarfile\": \"$Revision: 85213 $\",\r\n    \"urllib\": \"1.17\",\r\n    \"urllib2\": \"2.7\",\r\n    \"werkzeug\": \"0.9.6\",\r\n    \"xml.parsers.expat\": \"$Revision: 17640 $\",\r\n    \"xmlrpclib\": \"1.0.1\",\r\n    \"yaml\": \"3.11\",\r\n    \"zlib\": \"1.0\"\r\n  }\r\n}\r\n```\r\n\r\nAny ideas what's going wrong here?"},"comment":{"url":"https://api.github.com/repos/docker/docker-registry/issues/comments/70764026","html_url":"https://github.com/docker/docker-registry/issues/904#issuecomment-70764026","issue_url":"https://api.github.com/repos/docker/docker-registry/issues/904","id":70764026,"user":{"login":"noxiouz","id":664573,"avatar_url":"https://avatars.githubusercontent.com/u/664573?v=3","gravatar_id":"","url":"https://api.github.com/users/noxiouz","html_url":"https://github.com/noxiouz","followers_url":"https://api.github.com/users/noxiouz/followers","following_url":"https://api.github.com/users/noxiouz/following{/other_user}","gists_url":"https://api.github.com/users/noxiouz/gists{/gist_id}","starred_url":"https://api.github.com/users/noxiouz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noxiouz/subscriptions","organizations_url":"https://api.github.com/users/noxiouz/orgs","repos_url":"https://api.github.com/users/noxiouz/repos","events_url":"https://api.github.com/users/noxiouz/events{/privacy}","received_events_url":"https://api.github.com/users/noxiouz/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T00:39:10Z","updated_at":"2015-01-21T00:39:10Z","body":"Looks similar to #823. And nginx version is the same. What's ur nginx configuration file? Is it proper for version < 1.3.9?"}}