{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker-registry/issues/892","labels_url":"https://api.github.com/repos/docker/docker-registry/issues/892/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-registry/issues/892/comments","events_url":"https://api.github.com/repos/docker/docker-registry/issues/892/events","html_url":"https://github.com/docker/docker-registry/issues/892","id":53916945,"number":892,"title":"Registry fails on startup : `OSError: [Errno 2] No such file or directory: './registry._setup_database.lock'`","user":{"login":"ankushagarwal","id":796949,"avatar_url":"https://avatars.githubusercontent.com/u/796949?v=3","gravatar_id":"","url":"https://api.github.com/users/ankushagarwal","html_url":"https://github.com/ankushagarwal","followers_url":"https://api.github.com/users/ankushagarwal/followers","following_url":"https://api.github.com/users/ankushagarwal/following{/other_user}","gists_url":"https://api.github.com/users/ankushagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/ankushagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankushagarwal/subscriptions","organizations_url":"https://api.github.com/users/ankushagarwal/orgs","repos_url":"https://api.github.com/users/ankushagarwal/repos","events_url":"https://api.github.com/users/ankushagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/ankushagarwal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-09T21:28:17Z","updated_at":"2015-01-12T19:29:32Z","closed_at":null,"body":"I have seen similar issues related to registry here, but this one seems different. I ran a `docker run -d --name registry -p 80:5000 registry` on my Mac in boot2docker.\r\n\r\n```\r\n$ docker version                                                                                                                                                                                                          \r\nClient version: 1.4.1\r\nClient API version: 1.16\r\nGo version (client): go1.3.3\r\nGit commit (client): 5bc2ff8\r\nOS/Arch (client): darwin/amd64\r\nServer version: 1.4.1\r\nServer API version: 1.16\r\nGo version (server): go1.3.3\r\nGit commit (server): 5bc2ff8\r\n```\r\n```\r\n$ docker logs registry                                                                                                             \r\n[2015-01-09 21:22:06 +0000] [1] [INFO] Starting gunicorn 19.1.1\r\n[2015-01-09 21:22:06 +0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)\r\n[2015-01-09 21:22:06 +0000] [1] [INFO] Using worker: gevent\r\n[2015-01-09 21:22:06 +0000] [14] [INFO] Booting worker with pid: 14\r\n[2015-01-09 21:22:06 +0000] [15] [INFO] Booting worker with pid: 15\r\n[2015-01-09 21:22:06 +0000] [16] [INFO] Booting worker with pid: 16\r\n[2015-01-09 21:22:06 +0000] [21] [INFO] Booting worker with pid: 21\r\n09/Jan/2015:21:22:06 +0000 WARNING: Cache storage disabled!\r\n09/Jan/2015:21:22:06 +0000 WARNING: Cache storage disabled!\r\n09/Jan/2015:21:22:06 +0000 WARNING: Cache storage disabled!\r\n09/Jan/2015:21:22:06 +0000 WARNING: LRU cache disabled!\r\n09/Jan/2015:21:22:06 +0000 WARNING: LRU cache disabled!\r\n09/Jan/2015:21:22:06 +0000 WARNING: LRU cache disabled!\r\n09/Jan/2015:21:22:06 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n09/Jan/2015:21:22:06 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n09/Jan/2015:21:22:06 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n09/Jan/2015:21:22:06 +0000 WARNING: Cache storage disabled!\r\n09/Jan/2015:21:22:06 +0000 WARNING: LRU cache disabled!\r\n09/Jan/2015:21:22:06 +0000 DEBUG: Will return docker-registry.drivers.file.Storage\r\n09/Jan/2015:21:22:06 +0000 WARNING: Another process is creating the search database\r\n09/Jan/2015:21:22:06 +0000 WARNING: DB is disconnected. Reconnect to it.\r\n09/Jan/2015:21:22:06 +0000 WARNING: DB is disconnected. Reconnect to it.\r\n[2015-01-09 21:22:06 +0000] [14] [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[2015-01-09 21:22:06 +0000] [21] [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[2015-01-09 21:22:06 +0000] [14] [INFO] Worker exiting (pid: 14)\r\n[2015-01-09 21:22:06 +0000] [21] [INFO] Worker exiting (pid: 21)\r\n[2015-01-09 21:22:07 +0000] [16] [INFO] Worker exiting (pid: 16)\r\n[2015-01-09 21:22:07 +0000] [15] [INFO] Worker exiting (pid: 15)\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/gunicorn\", line 11, in <module>\r\n    sys.exit(run())\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py\", line 74, in run\r\n    WSGIApplication(\"%(prog)s [OPTIONS] [APP_MODULE]\").run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py\", line 185, in run\r\n    super(Application, self).run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py\", line 71, in run\r\n    Arbiter(self).run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py\", line 196, in run\r\n    self.halt(reason=inst.reason, exit_status=inst.exit_status)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py\", line 292, in halt\r\n    self.stop()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py\", line 343, in stop\r\n    time.sleep(0.1)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py\", line 209, in handle_chld\r\n    self.reap_workers()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py\", line 459, in reap_workers\r\n    raise HaltServer(reason, self.WORKER_BOOT_ERROR)\r\ngunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker-registry/issues/comments/69629756","html_url":"https://github.com/docker/docker-registry/issues/892#issuecomment-69629756","issue_url":"https://api.github.com/repos/docker/docker-registry/issues/892","id":69629756,"user":{"login":"dmp42","id":332946,"avatar_url":"https://avatars.githubusercontent.com/u/332946?v=3","gravatar_id":"","url":"https://api.github.com/users/dmp42","html_url":"https://github.com/dmp42","followers_url":"https://api.github.com/users/dmp42/followers","following_url":"https://api.github.com/users/dmp42/following{/other_user}","gists_url":"https://api.github.com/users/dmp42/gists{/gist_id}","starred_url":"https://api.github.com/users/dmp42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmp42/subscriptions","organizations_url":"https://api.github.com/users/dmp42/orgs","repos_url":"https://api.github.com/users/dmp42/repos","events_url":"https://api.github.com/users/dmp42/events{/privacy}","received_events_url":"https://api.github.com/users/dmp42/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T19:29:32Z","updated_at":"2015-01-12T19:29:32Z","body":"Thanks.\r\nWeird that it would crash there then. I'll have another look."}}