{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/1750","repository_url":"https://api.github.com/repos/docker/distribution","labels_url":"https://api.github.com/repos/docker/distribution/issues/1750/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/1750/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/1750/events","html_url":"https://github.com/docker/distribution/issues/1750","id":157210604,"number":1750,"title":"OSError: [Errno 2] No such file or directory: './registry._setup_database.lock'","user":{"login":"EvertMDC","id":19346117,"avatar_url":"https://avatars.githubusercontent.com/u/19346117?v=3","gravatar_id":"","url":"https://api.github.com/users/EvertMDC","html_url":"https://github.com/EvertMDC","followers_url":"https://api.github.com/users/EvertMDC/followers","following_url":"https://api.github.com/users/EvertMDC/following{/other_user}","gists_url":"https://api.github.com/users/EvertMDC/gists{/gist_id}","starred_url":"https://api.github.com/users/EvertMDC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvertMDC/subscriptions","organizations_url":"https://api.github.com/users/EvertMDC/orgs","repos_url":"https://api.github.com/users/EvertMDC/repos","events_url":"https://api.github.com/users/EvertMDC/events{/privacy}","received_events_url":"https://api.github.com/users/EvertMDC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T13:47:36Z","updated_at":"2016-05-27T15:55:17Z","closed_at":null,"body":"Hello,\r\n\r\nI was trying to move from registry 2.1 to the latest build but it gives me the errors below.\r\nInitially I was mapping the /var/lib/registry to my host to preserve the data and I imagined it did not like the transition. However when this was removed (only certificates are mapped now) it still gives me this error.\r\nThere does not seem to be an issue open for this. Come somebody shed some light on this?\r\n\r\n```\r\n[2016-05-27 15:40:20 +0000] [1] [INFO] Starting gunicorn 19.1.1\r\n[2016-05-27 15:40:20 +0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)\r\n[2016-05-27 15:40:20 +0000] [1] [INFO] Using worker: gevent\r\n[2016-05-27 15:40:20 +0000] [22] [INFO] Booting worker with pid: 22\r\n[2016-05-27 15:40:20 +0000] [23] [INFO] Booting worker with pid: 23\r\n[2016-05-27 15:40:20 +0000] [24] [INFO] Booting worker with pid: 24\r\n[2016-05-27 15:40:20 +0000] [25] [INFO] Booting worker with pid: 25\r\n27/May/2016:15:40:20 +0000 WARNING: Cache storage disabled!\r\n27/May/2016:15:40:20 +0000 WARNING: LRU cache disabled!\r\n27/May/2016:15:40:20 +0000 WARNING: Cache storage disabled!\r\n27/May/2016:15:40:20 +0000 WARNING: LRU cache disabled!\r\n27/May/2016:15:40:20 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n27/May/2016:15:40:20 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n27/May/2016:15:40:20 +0000 WARNING: Cache storage disabled!\r\n27/May/2016:15:40:20 +0000 WARNING: LRU cache disabled!\r\n27/May/2016:15:40:20 +0000 WARNING: Cache storage disabled!\r\n27/May/2016:15:40:20 +0000 WARNING: LRU cache disabled!\r\n27/May/2016:15:40:20 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n27/May/2016:15:40:20 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n27/May/2016:15:40:21 +0000 WARNING: Another process is creating the search database\r\n27/May/2016:15:40:21 +0000 WARNING: Another process is creating the search database\r\n27/May/2016:15:40:21 +0000 WARNING: DB is disconnected. Reconnect to it.\r\n[2016-05-27 15:40:21 +0000] [22] [ERROR] Exception in worker process:\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py\", line 507, in spawn_worker\r\n    worker.init_process()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py\", line 193, in init_process\r\n    super(GeventWorker, self).init_process()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py\", line 114, in init_process\r\n    self.wsgi = self.app.wsgi()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py\", line 66, in wsgi\r\n    self.callable = self.load()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py\", line 65, in load\r\n    return self.load_wsgiapp()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py\", line 52, in load_wsgiapp\r\n    return util.import_app(self.app_uri)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/util.py\", line 356, in import_app\r\n    __import__(module)\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/wsgi.py\", line 27, in <module>\r\n    from .search import *  # noqa\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/search.py\", line 14, in <module>\r\n    INDEX = index.load(cfg.search_backend.lower())\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/lib/index/__init__.py\", line 82, in load\r\n    return db.SQLAlchemyIndex()\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/lib/index/db.py\", line 86, in __init__\r\n    self._setup_database()\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/toolkit.py\", line 330, in wrapper\r\n    os.remove(lock_path)\r\nOSError: [Errno 2] No such file or directory: './registry._setup_database.lock'\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py\", line 507, in spawn_worker\r\n    worker.init_process()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py\", line 193, in init_process\r\n    super(GeventWorker, self).init_process()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py\", line 114, in init_process\r\n    self.wsgi = self.app.wsgi()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py\", line 66, in wsgi\r\n    self.callable = self.load()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py\", line 65, in load\r\n    return self.load_wsgiapp()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py\", line 52, in load_wsgiapp\r\n    return util.import_app(self.app_uri)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/util.py\", line 356, in import_app\r\n    __import__(module)\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/wsgi.py\", line 27, in <module>\r\n    from .search import *  # noqa\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/search.py\", line 14, in <module>\r\n    INDEX = index.load(cfg.search_backend.lower())\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/lib/index/__init__.py\", line 82, in load\r\n    return db.SQLAlchemyIndex()\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/lib/index/db.py\", line 86, in __init__\r\n    self._setup_database()\r\n  File \"/usr/local/lib/python2.7/dist-packages/docker_registry/toolkit.py\", line 330, in wrapper\r\n    os.remove(lock_path)\r\nOSError: [Errno 2] No such file or directory: './registry._setup_database.lock'\r\n[2016-05-27 15:40:21 +0000] [22] [INFO] Worker exiting (pid: 22)\r\n[2016-05-27 15:40:22 +0000] [25] [INFO] Worker exiting (pid: 25)\r\n[2016-05-27 15:40:22 +0000] [24] [INFO] Worker exiting (pid: 24)\r\n[2016-05-27 15:40:22 +0000] [23] [INFO] Worker exiting (pid: 23)\r\n[2016-05-27 15:40:22 +0000] [1] [INFO] Shutting down: Master\r\n[2016-05-27 15:40:22 +0000] [1] [INFO] Reason: Worker failed to boot.\r\n[2016-05-27 15:40:22 +0000] [1] [INFO] Starting gunicorn 19.1.1\r\n[2016-05-27 15:40:22 +0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)\r\n[2016-05-27 15:40:22 +0000] [1] [INFO] Using worker: gevent\r\n[2016-05-27 15:40:22 +0000] [22] [INFO] Booting worker with pid: 22\r\n[2016-05-27 15:40:22 +0000] [23] [INFO] Booting worker with pid: 23\r\n[2016-05-27 15:40:22 +0000] [24] [INFO] Booting worker with pid: 24\r\n[2016-05-27 15:40:22 +0000] [26] [INFO] Booting worker with pid: 26\r\n27/May/2016:15:40:23 +0000 WARNING: Cache storage disabled!\r\n27/May/2016:15:40:23 +0000 WARNING: LRU cache disabled!\r\n27/May/2016:15:40:23 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n27/May/2016:15:40:23 +0000 WARNING: Cache storage disabled!\r\n27/May/2016:15:40:23 +0000 WARNING: LRU cache disabled!\r\n27/May/2016:15:40:23 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n27/May/2016:15:40:23 +0000 WARNING: Cache storage disabled!\r\n27/May/2016:15:40:23 +0000 WARNING: LRU cache disabled!\r\n27/May/2016:15:40:23 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n27/May/2016:15:40:23 +0000 WARNING: Cache storage disabled!\r\n27/May/2016:15:40:23 +0000 WARNING: LRU cache disabled!\r\n27/May/2016:15:40:23 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/222184080","html_url":"https://github.com/docker/distribution/issues/1750#issuecomment-222184080","issue_url":"https://api.github.com/repos/docker/distribution/issues/1750","id":222184080,"user":{"login":"dmcgowan","id":169601,"avatar_url":"https://avatars.githubusercontent.com/u/169601?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcgowan","html_url":"https://github.com/dmcgowan","followers_url":"https://api.github.com/users/dmcgowan/followers","following_url":"https://api.github.com/users/dmcgowan/following{/other_user}","gists_url":"https://api.github.com/users/dmcgowan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcgowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcgowan/subscriptions","organizations_url":"https://api.github.com/users/dmcgowan/orgs","repos_url":"https://api.github.com/users/dmcgowan/repos","events_url":"https://api.github.com/users/dmcgowan/events{/privacy}","received_events_url":"https://api.github.com/users/dmcgowan/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T15:55:17Z","updated_at":"2016-05-27T15:55:17Z","body":"The v2 registry does not require gunicorn so not sure I understand your setup of a 2.1 registry. I would encourage you to start with the deployment instructions specified here https://docs.docker.com/registry/deploying/."}}
{"actor":{"display_login":"dmcgowan"}}