{"action":"created","issue":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2043","repository_url":"https://api.github.com/repos/rtfd/readthedocs.org","labels_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2043/labels{/name}","comments_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2043/comments","events_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2043/events","html_url":"https://github.com/rtfd/readthedocs.org/issues/2043","id":137980342,"number":2043,"title":"Unable to launch local instance with gunicorn","user":{"login":"HarryRybacki","id":2614670,"avatar_url":"https://avatars.githubusercontent.com/u/2614670?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryRybacki","html_url":"https://github.com/HarryRybacki","followers_url":"https://api.github.com/users/HarryRybacki/followers","following_url":"https://api.github.com/users/HarryRybacki/following{/other_user}","gists_url":"https://api.github.com/users/HarryRybacki/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryRybacki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryRybacki/subscriptions","organizations_url":"https://api.github.com/users/HarryRybacki/orgs","repos_url":"https://api.github.com/users/HarryRybacki/repos","events_url":"https://api.github.com/users/HarryRybacki/events{/privacy}","received_events_url":"https://api.github.com/users/HarryRybacki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T20:16:49Z","updated_at":"2016-03-02T23:38:21Z","closed_at":null,"body":"## Details\r\nWhile attempting to launch an instance of readthedocs with gunicorn I'm running into an odd import error. \r\n\r\n### System info:\r\n* Operating System: Fedora22\r\n\r\n## Steps to reproduce:\r\n1. git clone https://github.com/rtfd/readthedocs.org.git \r\n2. cd ./readthedocs.org && git reset --hard bc1decf4524c8a876c344d08d2da42aeeea19c72  # running the latest version will leave all builds stuck in a *triggerd* state indefintely (can't find any useful log to debug)\r\n3. pip install -r requirements.txt\r\n4. pip install gunicorn\r\n5. ./manage.py migrate\r\n6. ./manage.py createsuperuser\r\n7. ./manage.py collectstatic\r\n8. ./manage.py loaddata test_data\r\n9. gunicorn readthedocs.wsgi\r\n\r\n## Expected output:\r\n    ...\r\n    Starting development server at http://127.0.0.1:8000/\r\n    Quit the server with CONTROL-C.\r\n\r\n## Actual output:\r\n    [root@<host> readthedocs.org]# gunicorn readthedocs.wsgi\r\n    [2016-03-02 14:59:44 +0000] [6616] [INFO] Starting gunicorn 19.4.5\r\n    [2016-03-02 14:59:44 +0000] [6616] [INFO] Listening at: http://127.0.0.1:8000 (6616)\r\n    [2016-03-02 14:59:44 +0000] [6616] [INFO] Using worker: sync\r\n    [2016-03-02 14:59:44 +0000] [6621] [INFO] Booting worker with pid: 6621\r\n    [2016-03-02 14:59:45 +0000] [6621] [ERROR] Exception in worker process:\r\n    Traceback (most recent call last):\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/arbiter.py\", line 515, in spawn_worker\r\n    worker.init_process()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/workers/base.py\", line 122, in init_process\r\n    self.load_wsgi()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/workers/base.py\", line 130, in load_wsgi\r\n    self.wsgi = self.app.wsgi()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/app/base.py\", line 67, in wsgi\r\n    self.callable = self.load()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py\", line 65, in load\r\n    return self.load_wsgiapp()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py\", line 52, in load_wsgiapp\r\n    return util.import_app(self.app_uri)\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/util.py\", line 357, in import_app\r\n    __import__(module)\r\n      File \"/root/rtd/readthedocs.org/readthedocs/wsgi.py\", line 9, in <module>\r\n    application = get_wsgi_application()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/core/wsgi.py\", line 14, in get_wsgi_application\r\n    django.setup()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/__init__.py\", line 17, in setup\r\n    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/conf/__init__.py\", line 48, in __getattr__\r\n    self._setup(name)\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/conf/__init__.py\", line 44, in _setup\r\n    self._wrapped = Settings(settings_module)\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/conf/__init__.py\", line 92, in __init__\r\n    mod = importlib.import_module(self.SETTINGS_MODULE)\r\n      File \"/usr/lib64/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\n    ImportError: No module named settings.postgres\r\n    Traceback (most recent call last):\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/arbiter.py\", line 515, in spawn_worker\r\n    worker.init_process()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/workers/base.py\", line 122, in init_process\r\n    self.load_wsgi()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/workers/base.py\", line 130, in load_wsgi\r\n    self.wsgi = self.app.wsgi()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/app/base.py\", line 67, in wsgi\r\n    self.callable = self.load()\r\n     File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py\", line 65, in load\r\n    return self.load_wsgiapp()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py\", line 52, in load_wsgiapp\r\n    return util.import_app(self.app_uri)\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/gunicorn/util.py\", line 357, in import_app\r\n    __import__(module)\r\n      File \"/root/rtd/readthedocs.org/readthedocs/wsgi.py\", line 9, in <module>\r\n    application = get_wsgi_application()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/core/wsgi.py\", line 14, in get_wsgi_application\r\n    django.setup()\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/__init__.py\", line 17, in setup\r\n    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/conf/__init__.py\", line 48, in __getattr__\r\n    self._setup(name)\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/conf/__init__.py\", line 44, in _setup\r\n    self._wrapped = Settings(settings_module)\r\n      File \"/root/rtd/venv/lib/python2.7/site-packages/django/conf/__init__.py\", line 92, in __init__\r\n    mod = importlib.import_module(self.SETTINGS_MODULE)\r\n      File \"/usr/lib64/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\n    ImportError: No module named settings.postgres\r\n    [2016-03-02 14:59:45 +0000] [6621] [INFO] Worker exiting (pid: 6621)\r\n    [2016-03-02 14:59:46 +0000] [6616] [INFO] Shutting down: Master\r\n    [2016-03-02 14:59:46 +0000] [6616] [INFO] Reason: Worker failed to boot.\r\n"},"comment":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/comments/191494434","html_url":"https://github.com/rtfd/readthedocs.org/issues/2043#issuecomment-191494434","issue_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2043","id":191494434,"user":{"login":"agjohnson","id":1140183,"avatar_url":"https://avatars.githubusercontent.com/u/1140183?v=3","gravatar_id":"","url":"https://api.github.com/users/agjohnson","html_url":"https://github.com/agjohnson","followers_url":"https://api.github.com/users/agjohnson/followers","following_url":"https://api.github.com/users/agjohnson/following{/other_user}","gists_url":"https://api.github.com/users/agjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/agjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agjohnson/subscriptions","organizations_url":"https://api.github.com/users/agjohnson/orgs","repos_url":"https://api.github.com/users/agjohnson/repos","events_url":"https://api.github.com/users/agjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/agjohnson/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T23:38:21Z","updated_at":"2016-03-02T23:38:21Z","body":"The error\r\n\r\n```\r\nImportError: No module named settings.postgres\r\n```\r\n\r\nimplies you aren't able to import the settings file. Try `readthedocs.settings.postgres`"}}