{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker-registry/issues/900","labels_url":"https://api.github.com/repos/docker/docker-registry/issues/900/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-registry/issues/900/comments","events_url":"https://api.github.com/repos/docker/docker-registry/issues/900/events","html_url":"https://github.com/docker/docker-registry/issues/900","id":54472923,"number":900,"title":"504 Errors on Push","user":{"login":"wozz","id":139927,"avatar_url":"https://avatars.githubusercontent.com/u/139927?v=3","gravatar_id":"","url":"https://api.github.com/users/wozz","html_url":"https://github.com/wozz","followers_url":"https://api.github.com/users/wozz/followers","following_url":"https://api.github.com/users/wozz/following{/other_user}","gists_url":"https://api.github.com/users/wozz/gists{/gist_id}","starred_url":"https://api.github.com/users/wozz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wozz/subscriptions","organizations_url":"https://api.github.com/users/wozz/orgs","repos_url":"https://api.github.com/users/wozz/repos","events_url":"https://api.github.com/users/wozz/events{/privacy}","received_events_url":"https://api.github.com/users/wozz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-15T16:50:31Z","updated_at":"2015-06-24T18:53:14Z","closed_at":null,"body":"I get this error on the client side when doing a push:\r\n\r\n4b06ea88509c: Pushing\r\n4b06ea88509c: Buffering to disk\r\ntime=\"2015-01-14T20:46:38Z\" level=\"fatal\" msg=\"HTTP code 504 while uploading metadata: invalid character '<' looking for beginning of value\"\r\n\r\nI'm running docker-registry docker container behind NGINX.\r\n\r\nLogs from the registry:\r\n\r\n[2015-01-14 20:32:05 +0000] [53] [INFO] Autorestarting worker after current request.\r\n172.17.42.1 - - [14/Jan/2015:20:32:06 +0000] \"GET /v1/images/4b06ea88509c2377f94a9d0f4f260247dfa6b195e716fd3a14c1c52b17a01bf1/json HTTP/1.0\" 404 28 \"-\" \"docker/1.4.1 go/go1.3.3 git-commit/5bc2ff8 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n[2015-01-14 20:32:06 +0000] [53] [INFO] Worker exiting (pid: 53)\r\n[2015-01-14 20:32:06 +0000] [61] [INFO] Booting worker with pid: 61\r\n172.17.42.1 - - [14/Jan/2015:20:32:06 +0000] \"PUT /v1/images/4b06ea88509c2377f94a9d0f4f260247dfa6b195e716fd3a14c1c52b17a01bf1/json HTTP/1.0\" 200 4 \"-\" \"docker/1.4.1 go/go1.3.3 git-commit/5bc2ff8 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n[2015-01-14 20:32:09 +0000] [56] [INFO] Autorestarting worker after current request.\r\n172.17.42.1 - - [14/Jan/2015:20:32:09 +0000] \"PUT /v1/images/4b06ea88509c2377f94a9d0f4f260247dfa6b195e716fd3a14c1c52b17a01bf1/layer HTTP/1.0\" 200 4 \"-\" \"docker/1.4.1 go/go1.3.3 git-commit/5bc2ff8 kernel/3.13.0-36-generic os/linux arch/amd64\"\r\n[2015-01-14 20:32:10 +0000] [56] [INFO] Worker exiting (pid: 56)\r\n[2015-01-14 20:32:10 +0000] [62] [INFO] Booting worker with pid: 62\r\n\r\nThese errors happen every 4-5 image pushes and then I restart the docker-registry.  I've been having these issues frequently on stable and recent master releases.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker-registry/issues/comments/114979299","html_url":"https://github.com/docker/docker-registry/issues/900#issuecomment-114979299","issue_url":"https://api.github.com/repos/docker/docker-registry/issues/900","id":114979299,"user":{"login":"trinitronx","id":122524,"avatar_url":"https://avatars.githubusercontent.com/u/122524?v=3","gravatar_id":"","url":"https://api.github.com/users/trinitronx","html_url":"https://github.com/trinitronx","followers_url":"https://api.github.com/users/trinitronx/followers","following_url":"https://api.github.com/users/trinitronx/following{/other_user}","gists_url":"https://api.github.com/users/trinitronx/gists{/gist_id}","starred_url":"https://api.github.com/users/trinitronx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinitronx/subscriptions","organizations_url":"https://api.github.com/users/trinitronx/orgs","repos_url":"https://api.github.com/users/trinitronx/repos","events_url":"https://api.github.com/users/trinitronx/events{/privacy}","received_events_url":"https://api.github.com/users/trinitronx/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T18:53:14Z","updated_at":"2015-06-24T18:53:14Z","body":"Just to add a data point:  After enabling the `SEARCH_BACKEND` and `GUNICORN_OPTS='[--preload]'` options to the docker registry, we ran into [stability issues (docker/docker-registry#540)][1].\r\n\r\nAfter disabling both of these options, these stability issues went away and errors became much less frequent (although seemed to be present but still sometimes occurred)\r\n\r\n[1]: https://github.com/docker/docker-registry/issues/540"}}