Django app Deploying on Heroku (code=H10 desc="App crashed")
Open
Igor-Kuz
opened this issue 5 years ago
•
37 comments
Good day! I'm trying to deploy app at heroku. When I've push it to heroku I receive such heroku logs tail.
020-02-22T15:59:50.492247+00:00 heroku[web.1]: State changed from crashed to starting
2020-02-22T15:59:56.792128+00:00 heroku[web.1]: Starting process with command gunicorn website.wsgi
2020-02-22T16:00:00.152822+00:00 heroku[web.1]: State changed from starting to up
2020-02-22T15:59:59.738473+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [4] [INFO] Starting gunicorn 20.0.4
2020-02-22T15:59:59.739497+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [4] [INFO] Listening at: http://0.0.0.0:22744 (4)
2020-02-22T15:59:59.739668+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [4] [INFO] Using worker: sync
2020-02-22T15:59:59.747403+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [10] [INFO] Booting worker with pid: 10
2020-02-22T15:59:59.850927+00:00 app[web.1]: [2020-02-22 15:59:59 +0000] [11] [INFO] Booting worker with pid: 11
2020-02-22T16:00:00.131538+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [10] [ERROR] Exception in worker process
2020-02-22T16:00:00.131544+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:00.131545+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-22T16:00:00.131589+00:00 app[web.1]: worker.init_process()
2020-02-22T16:00:00.131590+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-02-22T16:00:00.131591+00:00 app[web.1]: self.load_wsgi()
2020-02-22T16:00:00.131591+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-02-22T16:00:00.131592+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-22T16:00:00.131593+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-22T16:00:00.131593+00:00 app[web.1]: self.callable = self.load()
2020-02-22T16:00:00.131594+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-22T16:00:00.131594+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-22T16:00:00.131595+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-02-22T16:00:00.131595+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-22T16:00:00.131596+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-22T16:00:00.131596+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-22T16:00:00.131597+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-02-22T16:00:00.131598+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:00.131599+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:00.131599+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:00.131600+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:00.131600+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:00.131600+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:00.131601+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:00.131602+00:00 app[web.1]: File "/app/website/wsgi.py", line 16, in
2020-02-22T16:00:00.131602+00:00 app[web.1]: application = get_wsgi_application()
2020-02-22T16:00:00.131603+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-02-22T16:00:00.131603+00:00 app[web.1]: django.setup(set_prefix=False)
2020-02-22T16:00:00.131604+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init .py", line 19, in setup
2020-02-22T16:00:00.131604+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-02-22T16:00:00.131605+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 76, in getattr
2020-02-22T16:00:00.131605+00:00 app[web.1]: self._setup(name)
2020-02-22T16:00:00.131605+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 63, in _setup
2020-02-22T16:00:00.131606+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-02-22T16:00:00.131606+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 142, in init
2020-02-22T16:00:00.131607+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-02-22T16:00:00.131608+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-02-22T16:00:00.131608+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:00.131609+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:00.131609+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:00.131610+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:00.131610+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:00.131611+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:00.131612+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:00.131612+00:00 app[web.1]: File "/app/website/settings.py", line 2, in
2020-02-22T16:00:00.131613+00:00 app[web.1]: import django_heroku
2020-02-22T16:00:00.131613+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2020-02-22T16:00:00.139976+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-02-22T16:00:00.284918+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [11] [ERROR] Exception in worker process
2020-02-22T16:00:00.284921+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:00.284922+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-22T16:00:00.284923+00:00 app[web.1]: worker.init_process()
2020-02-22T16:00:00.284923+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-02-22T16:00:00.284924+00:00 app[web.1]: self.load_wsgi()
2020-02-22T16:00:00.284924+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-02-22T16:00:00.284925+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-22T16:00:00.284926+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-22T16:00:00.284926+00:00 app[web.1]: self.callable = self.load()
2020-02-22T16:00:00.284926+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-22T16:00:00.284927+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-22T16:00:00.284927+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-02-22T16:00:00.284928+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-22T16:00:00.284928+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-22T16:00:00.284931+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-22T16:00:00.284931+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-02-22T16:00:00.284932+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:00.284932+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:00.284933+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:00.284933+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:00.284933+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:00.284934+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:00.284934+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:00.284935+00:00 app[web.1]: File "/app/website/wsgi.py", line 16, in
2020-02-22T16:00:00.284935+00:00 app[web.1]: application = get_wsgi_application()
2020-02-22T16:00:00.284935+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-02-22T16:00:00.284936+00:00 app[web.1]: django.setup(set_prefix=False)
2020-02-22T16:00:00.284936+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init .py", line 19, in setup
2020-02-22T16:00:00.284937+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-02-22T16:00:00.284937+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 76, in getattr
2020-02-22T16:00:00.284937+00:00 app[web.1]: self._setup(name)
2020-02-22T16:00:00.284938+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 63, in _setup
2020-02-22T16:00:00.284938+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-02-22T16:00:00.284939+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 142, in init
2020-02-22T16:00:00.284939+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-02-22T16:00:00.284939+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-02-22T16:00:00.284940+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:00.284940+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:00.284941+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:00.284941+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:00.284941+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:00.284942+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:00.284942+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:00.284942+00:00 app[web.1]: File "/app/website/settings.py", line 2, in
2020-02-22T16:00:00.284943+00:00 app[web.1]: import django_heroku
2020-02-22T16:00:00.284950+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2020-02-22T16:00:00.285705+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [11] [INFO] Worker exiting (pid: 11)
2020-02-22T16:00:00.446010+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [4] [INFO] Shutting down: Master
2020-02-22T16:00:00.446358+00:00 app[web.1]: [2020-02-22 16:00:00 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-02-22T16:00:00.566254+00:00 heroku[web.1]: State changed from up to crashed
2020-02-22T16:00:00.569748+00:00 heroku[web.1]: State changed from crashed to starting
2020-02-22T16:00:00.543964+00:00 heroku[web.1]: Process exited with status 3
2020-02-22T16:00:05.483596+00:00 heroku[web.1]: Starting process with command gunicorn website.wsgi
2020-02-22T16:00:08.225034+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [4] [INFO] Starting gunicorn 20.0.4
2020-02-22T16:00:08.225976+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [4] [INFO] Listening at: http://0.0.0.0:58623 (4)
2020-02-22T16:00:08.226158+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [4] [INFO] Using worker: sync
2020-02-22T16:00:08.232684+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [10] [INFO] Booting worker with pid: 10
2020-02-22T16:00:08.258598+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [11] [INFO] Booting worker with pid: 11
2020-02-22T16:00:08.711773+00:00 heroku[web.1]: State changed from starting to up
2020-02-22T16:00:08.684556+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [11] [ERROR] Exception in worker process
2020-02-22T16:00:08.684584+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:08.684585+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-22T16:00:08.684586+00:00 app[web.1]: worker.init_process()
2020-02-22T16:00:08.684587+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-02-22T16:00:08.684587+00:00 app[web.1]: self.load_wsgi()
2020-02-22T16:00:08.684588+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-02-22T16:00:08.684588+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-22T16:00:08.684589+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-22T16:00:08.684589+00:00 app[web.1]: self.callable = self.load()
2020-02-22T16:00:08.684589+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-22T16:00:08.684590+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-22T16:00:08.684590+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-02-22T16:00:08.684591+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-22T16:00:08.684591+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-22T16:00:08.684591+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-22T16:00:08.684592+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-02-22T16:00:08.684592+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:08.684593+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:08.684593+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:08.684594+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:08.684594+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:08.684594+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:08.684595+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:08.684595+00:00 app[web.1]: File "/app/website/wsgi.py", line 16, in
2020-02-22T16:00:08.684595+00:00 app[web.1]: application = get_wsgi_application()
2020-02-22T16:00:08.684596+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-02-22T16:00:08.684596+00:00 app[web.1]: django.setup(set_prefix=False)
2020-02-22T16:00:08.684596+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init .py", line 19, in setup
2020-02-22T16:00:08.684597+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-02-22T16:00:08.684597+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 76, in getattr
2020-02-22T16:00:08.684597+00:00 app[web.1]: self._setup(name)
2020-02-22T16:00:08.684598+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 63, in _setup
2020-02-22T16:00:08.684598+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-02-22T16:00:08.684598+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 142, in init
2020-02-22T16:00:08.684599+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-02-22T16:00:08.684599+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-02-22T16:00:08.684600+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:08.684600+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:08.684600+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:08.684600+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:08.684601+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:08.684601+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:08.684601+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:08.684601+00:00 app[web.1]: File "/app/website/settings.py", line 2, in
2020-02-22T16:00:08.684602+00:00 app[web.1]: import django_heroku
2020-02-22T16:00:08.684602+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2020-02-22T16:00:08.691208+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [11] [INFO] Worker exiting (pid: 11)
2020-02-22T16:00:08.695854+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [10] [ERROR] Exception in worker process
2020-02-22T16:00:08.695857+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:08.695858+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-02-22T16:00:08.695859+00:00 app[web.1]: worker.init_process()
2020-02-22T16:00:08.695860+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-02-22T16:00:08.695860+00:00 app[web.1]: self.load_wsgi()
2020-02-22T16:00:08.695861+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-02-22T16:00:08.695861+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-02-22T16:00:08.695862+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-02-22T16:00:08.695863+00:00 app[web.1]: self.callable = self.load()
2020-02-22T16:00:08.695863+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-02-22T16:00:08.695864+00:00 app[web.1]: return self.load_wsgiapp()
2020-02-22T16:00:08.695864+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-02-22T16:00:08.695865+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-02-22T16:00:08.695865+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-02-22T16:00:08.695866+00:00 app[web.1]: mod = importlib.import_module(module)
2020-02-22T16:00:08.695866+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-02-22T16:00:08.695867+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:08.695867+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:08.695868+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:08.695868+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:08.695869+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:08.695869+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:08.695870+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:08.695870+00:00 app[web.1]: File "/app/website/wsgi.py", line 16, in
2020-02-22T16:00:08.695870+00:00 app[web.1]: application = get_wsgi_application()
2020-02-22T16:00:08.695871+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-02-22T16:00:08.695871+00:00 app[web.1]: django.setup(set_prefix=False)
2020-02-22T16:00:08.695872+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init .py", line 19, in setup
2020-02-22T16:00:08.695872+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-02-22T16:00:08.695872+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 76, in getattr
2020-02-22T16:00:08.695873+00:00 app[web.1]: self._setup(name)
2020-02-22T16:00:08.695878+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 63, in _setup
2020-02-22T16:00:08.695879+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-02-22T16:00:08.695879+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 142, in init
2020-02-22T16:00:08.695880+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-02-22T16:00:08.695880+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-02-22T16:00:08.695881+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-02-22T16:00:08.695886+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-02-22T16:00:08.695886+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-02-22T16:00:08.695887+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-02-22T16:00:08.695887+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-02-22T16:00:08.695888+00:00 app[web.1]: File "", line 678, in exec_module
2020-02-22T16:00:08.695888+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-02-22T16:00:08.695888+00:00 app[web.1]: File "/app/website/settings.py", line 2, in
2020-02-22T16:00:08.695889+00:00 app[web.1]: import django_heroku
2020-02-22T16:00:08.695889+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
2020-02-22T16:00:08.696550+00:00 app[web.1]: [2020-02-22 16:00:08 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-02-22T16:00:08.768751+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:08.768803+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 209, in run
2020-02-22T16:00:08.769251+00:00 app[web.1]: self.sleep()
2020-02-22T16:00:08.769289+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 357, in sleep
2020-02-22T16:00:08.769678+00:00 app[web.1]: ready = select.select([self.PIPE[0]], [], [], 1.0)
2020-02-22T16:00:08.769717+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2020-02-22T16:00:08.770004+00:00 app[web.1]: self.reap_workers()
2020-02-22T16:00:08.770047+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2020-02-22T16:00:08.770495+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2020-02-22T16:00:08.770562+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2020-02-22T16:00:08.770594+00:00 app[web.1]:
2020-02-22T16:00:08.770595+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2020-02-22T16:00:08.770595+00:00 app[web.1]:
2020-02-22T16:00:08.770628+00:00 app[web.1]: Traceback (most recent call last):
2020-02-22T16:00:08.770657+00:00 app[web.1]: File "/app/.heroku/python/bin/gunicorn", line 8, in
2020-02-22T16:00:08.770835+00:00 app[web.1]: sys.exit(run())
2020-02-22T16:00:08.770873+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
2020-02-22T16:00:08.771084+00:00 app[web.1]: WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
2020-02-22T16:00:08.771134+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 228, in run
2020-02-22T16:00:08.771329+00:00 app[web.1]: super().run()
2020-02-22T16:00:08.771333+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 72, in run
2020-02-22T16:00:08.771485+00:00 app[web.1]: Arbiter(self).run()
2020-02-22T16:00:08.771490+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 229, in run
2020-02-22T16:00:08.771679+00:00 app[web.1]: self.halt(reason=inst.reason, exit_status=inst.exit_status)
2020-02-22T16:00:08.771683+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 342, in halt
2020-02-22T16:00:08.771911+00:00 app[web.1]: self.stop()
2020-02-22T16:00:08.771955+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
2020-02-22T16:00:08.772195+00:00 app[web.1]: time.sleep(0.1)
2020-02-22T16:00:08.772200+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2020-02-22T16:00:08.772398+00:00 app[web.1]: self.reap_workers()
2020-02-22T16:00:08.772403+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2020-02-22T16:00:08.772657+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2020-02-22T16:00:08.772687+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2020-02-22T16:00:08.893332+00:00 heroku[web.1]: State changed from up to crashed
2020-02-22T16:00:08.877687+00:00 heroku[web.1]: Process exited with status 1
at=error code=H10 desc="App crashed" method=GET path="/" host=arcane-citadel-79281.herokuapp.com request_id=ac173fdb-c496-44b3-959a-96001a054c68 fwd="217.175.129.145" dyno= connect= service= status=503 bytes= protocol=https
2020-02-22T16:08:56.016148+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=arcane-citadel-79281.herokuapp.com request_id=84ba30e5-1f3a-4dba-8266-40c0fe4340a6 fwd="217.175.129.145" dyno= connect= service= status=503 bytes= protocol=https
How can I solve this problem??
Can Anyone Please help us . I am getting the same error !!.
Please help
Can you paste the content of your "Procfile" here? On the heroku app page > Overview, what is the value for "Dyno formation"?
@AdarshPan @Igor-Kuz
@ezyhacks Using Free dynos getting the same error
Procfile Content:
gunicorn projectname.wsgi:application --log-file - --log-level debug
I have same problem. How to fix? Can anyone help us
Hi guys. Looking at the error message, it seems there are some apps defined in settings.py which are not in use or not needed or you have not installed required packages for deployment.
@vikaspal1704 In your error messages, for example, you have this error 2020-02-22T16:00:08.695889+00:00 app[web.1]: ModuleNotFoundError: No module named 'django_heroku'
Fix
"pip install django-heroku" on your local instance before you push and deploy to Heroku
@github-samir Please paste the error messages you have and also, the contents of your Procfile.
@vikaspal1704
Procfile Content:
gunicorn projectname.wsgi:application --log-file - --log-level debug
Your Procfile should look like this web: gunicorn ecommerce.wsgi --log-file -
ecommerce is my project name
@ezyhacks
Error:
2020-08-23T03:33:14.518851+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-08-23T03:33:14.518852+00:00 app[web.1]: File "", line 678, in exec_module
2020-08-23T03:33:14.518852+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-08-23T03:33:14.518852+00:00 app[web.1]: File "/app/taskmaster/wsgi.py", line 16, in
2020-08-23T03:33:14.518853+00:00 app[web.1]: application = get_wsgi_application()
2020-08-23T03:33:14.518853+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-08-23T03:33:14.518853+00:00 app[web.1]: django.setup(set_prefix=False)
2020-08-23T03:33:14.518854+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init .py", line 19, in setup
2020-08-23T03:33:14.518854+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-08-23T03:33:14.518854+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 79, in getattr
2020-08-23T03:33:14.518854+00:00 app[web.1]: self._setup(name)
2020-08-23T03:33:14.518855+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 66, in _setup
2020-08-23T03:33:14.518855+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-08-23T03:33:14.518855+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 157, in init
2020-08-23T03:33:14.518856+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-08-23T03:33:14.518856+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-08-23T03:33:14.518857+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-08-23T03:33:14.518857+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-08-23T03:33:14.518857+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-08-23T03:33:14.518858+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-08-23T03:33:14.518858+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-08-23T03:33:14.518859+00:00 app[web.1]: File "", line 678, in exec_module
2020-08-23T03:33:14.518859+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-08-23T03:33:14.518859+00:00 app[web.1]: File "/app/taskmaster/settings.py", line 21, in
2020-08-23T03:33:14.518860+00:00 app[web.1]: ALLOWED_HOSTS=[env('DJANGO_ALLOWED_HOSTS')]
2020-08-23T03:33:14.518860+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/environ/environ.py", line 123, in call
2020-08-23T03:33:14.518860+00:00 app[web.1]: return self.get_value(var, cast=cast, default=default, parse_default=parse_default)
2020-08-23T03:33:14.518861+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/environ/environ.py", line 277, in get_value
2020-08-23T03:33:14.518861+00:00 app[web.1]: raise ImproperlyConfigured(error_msg)
2020-08-23T03:33:14.518900+00:00 app[web.1]: django.core.exceptions.ImproperlyConfigured: Set the DJANGO_ALLOWED_HOSTS environment variable
2020-08-23T03:33:14.519518+00:00 app[web.1]: [2020-08-23 03:33:14 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-08-23T03:33:14.526343+00:00 app[web.1]: /app/.heroku/python/lib/python3.6/site-packages/environ/environ.py:639: UserWarning: Error reading /app/.env - if you're not configuring your environment separately, check this.
2020-08-23T03:33:14.526345+00:00 app[web.1]: "environment separately, check this." % env_file)
2020-08-23T03:33:14.531230+00:00 app[web.1]: [2020-08-23 03:33:14 +0000] [11] [ERROR] Exception in worker process
2020-08-23T03:33:14.531232+00:00 app[web.1]: Traceback (most recent call last):
2020-08-23T03:33:14.531232+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/environ/environ.py", line 273, in get_value
2020-08-23T03:33:14.531233+00:00 app[web.1]: value = self.ENVIRON[var]
2020-08-23T03:33:14.531234+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/os.py", line 669, in getitem
2020-08-23T03:33:14.531234+00:00 app[web.1]: raise KeyError(key) from None
2020-08-23T03:33:14.531235+00:00 app[web.1]: KeyError: 'DJANGO_ALLOWED_HOSTS'
2020-08-23T03:33:14.531235+00:00 app[web.1]:
2020-08-23T03:33:14.531235+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2020-08-23T03:33:14.531236+00:00 app[web.1]:
2020-08-23T03:33:14.531236+00:00 app[web.1]: Traceback (most recent call last):
2020-08-23T03:33:14.531237+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2020-08-23T03:33:14.531237+00:00 app[web.1]: worker.init_process()
2020-08-23T03:33:14.531238+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2020-08-23T03:33:14.531238+00:00 app[web.1]: self.load_wsgi()
2020-08-23T03:33:14.531238+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2020-08-23T03:33:14.531239+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2020-08-23T03:33:14.531239+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2020-08-23T03:33:14.531240+00:00 app[web.1]: self.callable = self.load()
2020-08-23T03:33:14.531240+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2020-08-23T03:33:14.531240+00:00 app[web.1]: return self.load_wsgiapp()
2020-08-23T03:33:14.531379+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2020-08-23T03:33:14.531380+00:00 app[web.1]: return util.import_app(self.app_uri)
2020-08-23T03:33:14.531380+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
2020-08-23T03:33:14.531381+00:00 app[web.1]: mod = importlib.import_module(module)
2020-08-23T03:33:14.531381+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-08-23T03:33:14.531382+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-08-23T03:33:14.531382+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-08-23T03:33:14.531382+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-08-23T03:33:14.531383+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-08-23T03:33:14.531383+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-08-23T03:33:14.531383+00:00 app[web.1]: File "", line 678, in exec_module
2020-08-23T03:33:14.531384+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-08-23T03:33:14.531384+00:00 app[web.1]: File "/app/taskmaster/wsgi.py", line 16, in
2020-08-23T03:33:14.531385+00:00 app[web.1]: application = get_wsgi_application()
2020-08-23T03:33:14.531385+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-08-23T03:33:14.531385+00:00 app[web.1]: django.setup(set_prefix=False)
2020-08-23T03:33:14.531386+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/init .py", line 19, in setup
2020-08-23T03:33:14.531386+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-08-23T03:33:14.531386+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 79, in getattr
2020-08-23T03:33:14.531386+00:00 app[web.1]: self._setup(name)
2020-08-23T03:33:14.531387+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 66, in _setup
2020-08-23T03:33:14.531387+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2020-08-23T03:33:14.531388+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/init .py", line 157, in init
2020-08-23T03:33:14.531388+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-08-23T03:33:14.531388+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/importlib/init .py", line 126, in import_module
2020-08-23T03:33:14.531389+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2020-08-23T03:33:14.531389+00:00 app[web.1]: File "", line 994, in _gcd_import
2020-08-23T03:33:14.531389+00:00 app[web.1]: File "", line 971, in _find_and_load
2020-08-23T03:33:14.531389+00:00 app[web.1]: File "", line 955, in _find_and_load_unlocked
2020-08-23T03:33:14.531390+00:00 app[web.1]: File "", line 665, in _load_unlocked
2020-08-23T03:33:14.531390+00:00 app[web.1]: File "", line 678, in exec_module
2020-08-23T03:33:14.531390+00:00 app[web.1]: File "", line 219, in _call_with_frames_removed
2020-08-23T03:33:14.531391+00:00 app[web.1]: File "/app/taskmaster/settings.py", line 21, in
2020-08-23T03:33:14.531391+00:00 app[web.1]: ALLOWED_HOSTS=[env('DJANGO_ALLOWED_HOSTS')]
2020-08-23T03:33:14.531391+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/environ/environ.py", line 123, in call
2020-08-23T03:33:14.531392+00:00 app[web.1]: return self.get_value(var, cast=cast, default=default, parse_default=parse_default)
2020-08-23T03:33:14.531392+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/environ/environ.py", line 277, in get_value
2020-08-23T03:33:14.531392+00:00 app[web.1]: raise ImproperlyConfigured(error_msg)
2020-08-23T03:33:14.531624+00:00 app[web.1]: django.core.exceptions.ImproperlyConfigured: Set the DJANGO_ALLOWED_HOSTS environment variable
2020-08-23T03:33:14.532342+00:00 app[web.1]: [2020-08-23 03:33:14 +0000] [11] [INFO] Worker exiting (pid: 11)
2020-08-23T03:33:14.691235+00:00 app[web.1]: [2020-08-23 03:33:14 +0000] [4] [INFO] Shutting down: Master
2020-08-23T03:33:14.691331+00:00 app[web.1]: [2020-08-23 03:33:14 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-08-23T03:33:14.798149+00:00 heroku[web.1]: Process exited with status 3
2020-08-23T03:33:14.847333+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-23T04:09:35.215920+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=vikastodoapp.herokuapp.com request_id=09d6daf7-55fc-4bb2-b9b7-70f66764a940 fwd="103.238.104.40" dyno= connect= service= status=503 bytes= protocol=https
2020-08-23T04:09:36.990516+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=vikastodoapp.herokuapp.com request_id=c3003a02-9f05-4d59-a67c-3215692e4f79 fwd="103.238.104.40" dyno= connect= service= status=503 bytes= protocol=https
@vikaspal1704 Looks like you are making some progress. Now you need to set the allowed host in your settings.py.
This is what I have for mine so it works with any URL.
ALLOWED_HOSTS = ['*']
If you want to be specific, you can assign your heroku URL like so:
ALLOWED_HOSTS = ['your_herokuapp_name.herokuapp.com']
Remember not to include the protocol (https://)
@vikaspal1704 You are welcome and I'm glad to be of help to you. Happy coding!
Thank You So much Like I was just gonna lose hope and thought that all my work in going to vain .Thank you Once Again
@ezyhacks
@ezyhacks plz help me as well
I am getting the following error:
I need an urgent help plz,i am chasing a deadline , plz help me .
(duplicater) C:\Desktop\Tp>git add --all
(duplicater) C:\Desktop\Tp>git commit -m "Madhav"
[master 8723e70] hey Gwen
1 file changed, 1 insertion(+), 1 deletion(-)
(duplicater) C:\Desktop\Tp>git push heroku master
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 298 bytes | 49.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-18 stack
remote: -----> Python app detected
remote: ! Python has released a security update! Please consider upgrading
to python-3.6.12
remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> No change in requirements detected, installing from cache
remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote: -----> $ python HealTech/HealthTechnology/manage.py collectstatic --noin
put
remote: 2021-01-12 19:57:12.566761: W tensorflow/stream_executor/platform
/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dle
rror: libnvinfer.so.6: cannot open shared object file: No such file or directory
; LD_LIBRARY_PATH: /app/.heroku/vendor/lib:/app/.heroku/python/lib:
remote: 2021-01-12 19:57:12.566957: W tensorflow/stream_executor/platform
/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.
6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such fil
e or directory; LD_LIBRARY_PATH: /app/.heroku/vendor/lib:/app/.heroku/python/lib
:
remote: 2021-01-12 19:57:12.566985: W tensorflow/compiler/tf2tensorrt/uti
ls/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to u
se Nvidia GPU with TensorRT, please make sure the missing libraries mentioned ab
ove are installed properly.
remote: 152 static files copied to '/tmp/build_f34b2e7d/HealTech/HealthTe
chnology/staticfiles', 474 post-processed.
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 595.5M
remote: -----> Launching...
remote: ! Warning: Your slug size (595 MB) exceeds our soft limit (300 MB)
which may affect boot time.
remote: Released v26
remote: https://healtech.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/healtech.git
fcd0d98..8723e70 master -> master
(duplicater) C:\Desktop\Tp>heroku logs --tail
2021-01-12T20:00:50.060734+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/util.py", line 358, in import_app
2021-01-12T20:00:50.060735+00:00 app[web.1]: mod = importlib.import_module(modul
e)
2021-01-12T20:00:50.060735+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/importlib/init .py", line 126, in import_module
2021-01-12T20:00:50.060736+00:00 app[web.1]: return _bootstrap._gcd_import(name[
level:], package, level)
2021-01-12T20:00:50.060737+00:00 app[web.1]: File "
", line 994, in _gcd_import
2021-01-12T20:00:50.060737+00:00 app[web.1]: File "
", line 971, in _find_and_load
2021-01-12T20:00:50.060737+00:00 app[web.1]: File "
", line 941, in _find_and_load_unlocked
2021-01-12T20:00:50.060738+00:00 app[web.1]: File "
", line 219, in _call_with_frames_removed
2021-01-12T20:00:50.060738+00:00 app[web.1]: File "
", line 994, in _gcd_import
2021-01-12T20:00:50.060739+00:00 app[web.1]: File "
", line 971, in _find_and_load
2021-01-12T20:00:50.060739+00:00 app[web.1]: File "
", line 953, in find_and_load_unlocked
2021-01-12T20:00:50.060837+00:00 app[web.1]: ModuleNotFoundError: No module name
d 'healtech'
2021-01-12T20:00:50.061340+00:00 app[web.1]: [2021-01-12 20:00:50 +0000] [11] [I
NFO] Worker exiting (pid: 11)
2021-01-12T20:00:50.160468+00:00 app[web.1]: Traceback (most recent call last):
2021-01-12T20:00:50.160563+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 202, in run
2021-01-12T20:00:50.161141+00:00 app[web.1]: self.manage_workers()
2021-01-12T20:00:50.161203+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 545, in manage_workers
2021-01-12T20:00:50.161832+00:00 app[web.1]: self.spawn_workers()
2021-01-12T20:00:50.161889+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 617, in spawn_workers
2021-01-12T20:00:50.162523+00:00 app[web.1]: time.sleep(0.1 * random.random())
2021-01-12T20:00:50.162588+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2021-01-12T20:00:50.162957+00:00 app[web.1]: self.reap_workers()
2021-01-12T20:00:50.163009+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2021-01-12T20:00:50.163557+00:00 app[web.1]: raise HaltServer(reason, self.WORKE
R_BOOT_ERROR)
2021-01-12T20:00:50.163648+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltSe
rver 'Worker failed to boot.' 3>
2021-01-12T20:00:50.163674+00:00 app[web.1]:
2021-01-12T20:00:50.163675+00:00 app[web.1]: During handling of the above except
ion, another exception occurred:
2021-01-12T20:00:50.163676+00:00 app[web.1]:
2021-01-12T20:00:50.163701+00:00 app[web.1]: Traceback (most recent call last):
2021-01-12T20:00:50.163764+00:00 app[web.1]: File "/app/.heroku/python/bin/gunic
orn", line 8, in
2021-01-12T20:00:50.163976+00:00 app[web.1]: sys.exit(run())
2021-01-12T20:00:50.164007+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
2021-01-12T20:00:50.164280+00:00 app[web.1]: WSGIApplication("%(prog)s [OPTIONS]
[APP_MODULE]").run()
2021-01-12T20:00:50.164345+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/app/base.py", line 228, in run
2021-01-12T20:00:50.164745+00:00 app[web.1]: super().run()
2021-01-12T20:00:50.164796+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/app/base.py", line 72, in run
2021-01-12T20:00:50.165208+00:00 app[web.1]: Arbiter(self).run()
2021-01-12T20:00:50.165259+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 229, in run
2021-01-12T20:00:50.165752+00:00 app[web.1]: self.halt(reason=inst.reason, exit
status=inst.exit_status)
2021-01-12T20:00:50.165803+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 342, in halt
2021-01-12T20:00:50.166386+00:00 app[web.1]: self.stop()
2021-01-12T20:00:50.166606+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
2021-01-12T20:00:50.167050+00:00 app[web.1]: time.sleep(0.1)
2021-01-12T20:00:50.167271+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2021-01-12T20:00:50.171741+00:00 app[web.1]: self.reap_workers()
2021-01-12T20:00:50.171801+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2021-01-12T20:00:50.172388+00:00 app[web.1]: raise HaltServer(reason, self.WORKE
R_BOOT_ERROR)
2021-01-12T20:00:50.172457+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltSe
rver 'Worker failed to boot.' 3>
2021-01-12T20:00:50.319388+00:00 heroku[web.1]: Process exited with status 1
2021-01-12T20:00:50.435616+00:00 heroku[web.1]: State changed from starting to c
rashed
2021-01-12T20:00:50.439288+00:00 heroku[web.1]: State changed from crashed to st
arting
2021-01-12T20:01:35.376057+00:00 heroku[web.1]: Starting process with command g unicorn healtech.wsgi --log-file -
2021-01-12T20:01:38.908261+00:00 app[web.1]: [2021-01-12 20:01:38 +0000] [4] [IN
FO] Starting gunicorn 20.0.4
2021-01-12T20:01:38.909239+00:00 app[web.1]: [2021-01-12 20:01:38 +0000] [4] [IN
FO] Listening at: http://0.0.0.0:15377 (4)
2021-01-12T20:01:38.909414+00:00 app[web.1]: [2021-01-12 20:01:38 +0000] [4] [IN
FO] Using worker: sync
2021-01-12T20:01:38.915235+00:00 app[web.1]: [2021-01-12 20:01:38 +0000] [10] [I
NFO] Booting worker with pid: 10
2021-01-12T20:01:38.924289+00:00 app[web.1]: [2021-01-12 20:01:38 +0000] [10] [E
RROR] Exception in worker process
2021-01-12T20:01:38.924291+00:00 app[web.1]: Traceback (most recent call last):
2021-01-12T20:01:38.924291+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2021-01-12T20:01:38.924292+00:00 app[web.1]: worker.init_process()
2021-01-12T20:01:38.924292+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
2021-01-12T20:01:38.924293+00:00 app[web.1]: self.load_wsgi()
2021-01-12T20:01:38.924293+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2021-01-12T20:01:38.924294+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-01-12T20:01:38.924294+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-01-12T20:01:38.924295+00:00 app[web.1]: self.callable = self.load()
2021-01-12T20:01:38.924295+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2021-01-12T20:01:38.924296+00:00 app[web.1]: return self.load_wsgiapp()
2021-01-12T20:01:38.924296+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2021-01-12T20:01:38.924297+00:00 app[web.1]: return util.import_app(self.app_uri
)
2021-01-12T20:01:38.924297+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/site-packages/gunicorn/util.py", line 358, in import_app
2021-01-12T20:01:38.924298+00:00 app[web.1]: mod = importlib.import_module(modul
e)
2021-01-12T20:01:38.924298+00:00 app[web.1]: File "/app/.heroku/python/lib/pytho
n3.6/importlib/init .py", line 126, in import_module
2021-01-12T20:01:38.924299+00:00 app[web.1]: return _bootstrap._gcd_import(name[
level:], package, level)
2021-01-12T20:01:38.924299+00:00 app[web.1]: File "
", line 994, in _gcd_import
2021-01-12T20:01:38.924300+00:00 app[web.1]: File "
", line 971, in _find_and_load
2021-01-12T20:01:38.924300+00:00 app[web.1]: File "
", line 941, in _find_and_load_unlocked
2021-01-12T20:01:38.924300+00:00 app[web.1]: File "
", line 219, in _call_with_frames_removed
2021-01-12T20:01:38.924301+00:00 app[web.1]: File "
", line 994, in _gcd_import
2021-01-12T20:01:38.924301+00:00 app[web.1]: File "
", line 971, in _find_and_load
2021-01-12T20:01:38.924301+00:00 app[web.1]: File "
", line 953, in _find_and_load_unlocked
2021-01-12T20:01:38.924307+00:00 app[web.1]: ModuleNotFoundError: No module name
d 'healtech'
2021-01-12T20:01:38.924528+00:00 app[web.1]: [2021-01-12 20:01:38 +0000] [10] [I
NFO] Worker exiting (pid: 10)
2021-01-12T20:01:38.967780+00:00 app[web.1]: [2021-01-12 20:01:38 +0000] [4] [IN
FO] Shutting down: Master
2021-01-12T20:01:38.968119+00:00 app[web.1]: [2021-01-12 20:01:38 +0000] [4] [IN
FO] Reason: Worker failed to boot.
2021-01-12T20:01:39.083776+00:00 heroku[web.1]: Process exited with status 3
2021-01-12T20:01:39.126961+00:00 heroku[web.1]: State changed from starting to c
rashed
2021-01-12T20:02:06.000000+00:00 app[api]: Build succeeded
2021-01-12T20:02:21.834670+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=fe3d4c38-c892-4
2bd-86d8-ca6cfd793c52 fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:22.095700+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=4055528e-c259-4
6f6-8c66-b72c120dccf8 fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:22.291965+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=78e91570-1ce4-4
366-9c85-221d2407d334 fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:22.575714+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=cace3038-ea2f-4
6cb-a69e-5777a22bffa0 fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:22.872262+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=2ae1345b-42db-4
bc1-b541-268c8e8c0444 fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:23.117638+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=3a4e56cd-c987-4
a87-bd3e-d70482148f5f fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:23.366024+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=0c3ba79c-0588-4
f8d-a10a-c4761814e1db fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:23.857138+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=healtech.herokuapp.com request_id=97bc
63fa-40f7-4e97-a54e-e27d034b9cc4 fwd="47.15.9.160" dyno= connect= service= statu
s=503 bytes= protocol=http
2021-01-12T20:02:24.213205+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=f0c1c0b2-dee5-4
a55-b7b9-3b65f8cefb21 fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:25.248855+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=healtech.herokuapp.com request_id=7ccf
3667-dd25-49cd-8f47-8d86b0523f28 fwd="47.15.9.160" dyno= connect= service= statu
s=503 bytes= protocol=http
2021-01-12T20:02:26.148458+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=69dd3236-f1a5-4
ff8-bc6a-e95bda943db2 fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:26.812871+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=healtech.herokuapp.com request_id=e1af
b7c6-87ea-4b94-b51c-617ccbb4dd2e fwd="47.15.9.160" dyno= connect= service= statu
s=503 bytes= protocol=http
2021-01-12T20:02:28.190523+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=healtech.herokuapp.com request_id=545a76ef-58aa-4
a86-a4f3-21b75d331acf fwd="47.15.9.160" dyno= connect= service= status=503 bytes
= protocol=http
2021-01-12T20:02:29.335477+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=healtech.herokuapp.com request_id=f19b
4aea-6a2c-46bf-b7e1-b58d6a5f98ab fwd="47.15.9.160" dyno= connect= service= statu
s=503 bytes= protocol=http
dont know why its not able to detect my healtech module , which is the project directory itself .
here is my Procfile:
web: gunicorn healtech.wsgi --log-file -
2 days , haven't got any response yet . Plz help me someone
plz help me someone ... does anyone knows the solution to this problem??
Hi Adarsh,
Kindly check your settings file. There seems to be an app or module
called "healthcare"
If that module or app does not exist, kindly delete it from the settings
file.
Hope this helps.
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon
Virus-free.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Thu, Jan 14, 2021 at 11:21 AM Adarsh Pandey [email protected]
wrote:
2 days , haven't got any response yet . Plz help me someone
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/realpython/flask-boilerplate/issues/43#issuecomment-760134003 ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE66SZJTPYKALNFB37TH6ETSZ3HVBANCNFSM4KZSVDUQ
.
Hii @ezyhacks ,
ThankYou So much for replying ,
I don't have any app called "healthcare" in my application , Plz have a look at my settings.py file:
"""
Django settings for HealthTechnology project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
import django_heroku
Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(file )))
Quick-start development settings - unsuitable for production
See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
SECURITY WARNING: keep the secret key used in production secret!
SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['healtech.herokuapp.com',
'localhost',
'127.0.0.1']
Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'XrayApp.apps.XrayappConfig',
'rest_framework',
'corona.apps.CoronaConfig',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'HealthTechnology.urls'
TEMPLATES_DIR=os.path.join(BASE_DIR,'templates')
STATIC_DIR=os.path.join(BASE_DIR,'static')
MEDIA_DIR=os.path.join(BASE_DIR,"media")
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMPLATES_DIR],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'HealthTechnology.wsgi.application'
Database
https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
Password validation
https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
Internationalization
https://docs.djangoproject.com/en/2.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/2.1/howto/static-files/
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
django_heroku.settings(locals())
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MODELS = os.path.join(BASE_DIR, 'corona/modeloo')
Your Procfile should be:
web: gunicorn HealthTechnology.wsgi
On Fri, Jan 15, 2021 at 7:33 PM Adarsh Pandey [email protected]
wrote:
Hii @ezyhacks https://github.com/ezyhacks ,
ThankYou So much for replying ,
I don't have any app called "healthcare" in my application , Plz have a
look at my settings.py file:
"""
Django settings for HealthTechnology project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
import django_heroku
Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(file )))
Quick-start development settings - unsuitable for production See
https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ SECURITY
WARNING: keep the secret key used in production secret! SECURITY WARNING:
don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['healtech.herokuapp.com',
'localhost',
'127.0.0.1']
Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'XrayApp.apps.XrayappConfig',
'rest_framework',
'corona.apps.CoronaConfig',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'HealthTechnology.urls'
TEMPLATES_DIR=os.path.join(BASE_DIR,'templates')
STATIC_DIR=os.path.join(BASE_DIR,'static')
MEDIA_DIR=os.path.join(BASE_DIR,"media")
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMPLATES_DIR],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'HealthTechnology.wsgi.application'
Database https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
Password validation
https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
Internationalization https://docs.djangoproject.com/en/2.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/2.1/howto/static-files/ STATICFILES_STORAGE
= 'whitenoise.django.GzipManifestStaticFilesStorage'
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
django_heroku.settings(locals())
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MODELS = os.path.join(BASE_DIR, 'corona/modeloo')
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/realpython/flask-boilerplate/issues/43#issuecomment-761148535 ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE66SZOBTWEVLK27W2R3WDLS2CJ6ZANCNFSM4KZSVDUQ
.
@ezyhacks ,
Thank You So much brother.
Thank You so much .....It worked , i finally realiesed my silliest mistake till date !!
Tons of Thank You and Well wishing for you! You are a genius
You are welcome. All the best Bro.
On Sat, 16 Jan 2021 at 9:26 am, Adarsh Pandey [email protected]
wrote:
@ezyhacks https://github.com/ezyhacks ,
Thank You So much brother.
Thank You so much .....It worked , i finally realiesed my silliest mistake
till date !!
Tons of Thank You and Well wishing for you! You are a genius
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/realpython/flask-boilerplate/issues/43#issuecomment-761533470 ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE66SZLFGONGS3PPSBZLK4LS2FLVHANCNFSM4KZSVDUQ
.
C:\Users\urvis\Desktop\rajpatel322.github.io\Practice_Project>heroku logs
2021-03-20T06:20:17.463462+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2021-03-20T06:20:17.463474+00:00 app[web.1]:
2021-03-20T06:20:17.463474+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2021-03-20T06:20:17.463475+00:00 app[web.1]:
2021-03-20T06:20:17.463478+00:00 app[web.1]: Traceback (most recent call last):
2021-03-20T06:20:17.463479+00:00 app[web.1]: File "/app/.heroku/python/bin/gunicorn", line 8, in
2021-03-20T06:20:17.463602+00:00 app[web.1]: sys.exit(run())
2021-03-20T06:20:17.463630+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
2021-03-20T06:20:17.463750+00:00 app[web.1]: WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
2021-03-20T06:20:17.463785+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 228, in run
2021-03-20T06:20:17.463952+00:00 app[web.1]: super().run()
2021-03-20T06:20:17.463954+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 72, in run
2021-03-20T06:20:17.464081+00:00 app[web.1]: Arbiter(self).run()
2021-03-20T06:20:17.464105+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 229, in run
2021-03-20T06:20:17.464249+00:00 app[web.1]: self.halt(reason=inst.reason, exit_status=inst.exit_status)
2021-03-20T06:20:17.464273+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 342, in halt
2021-03-20T06:20:17.464458+00:00 app[web.1]: self.stop()
2021-03-20T06:20:17.464461+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 393, in stop
2021-03-20T06:20:17.464655+00:00 app[web.1]: time.sleep(0.1)
2021-03-20T06:20:17.464658+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2021-03-20T06:20:17.464810+00:00 app[web.1]: self.reap_workers()
2021-03-20T06:20:17.464814+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2021-03-20T06:20:17.465021+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2021-03-20T06:20:17.465074+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2021-03-20T06:20:17.536146+00:00 heroku[web.1]: Process exited with status 1
2021-03-20T06:20:17.597483+00:00 heroku[web.1]: State changed from starting to crashed
2021-03-20T06:20:18.502462+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=triksnas.herokuapp.com request_id=8cab5dfb-ac60-4ccc-bd18-bb5be54dcd71 fwd="67.173.81.219" dyno= connect= service= status=503 bytes= protocol=https
2021-03-20T06:20:18.776461+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=triksnas.herokuapp.com request_id=9e323197-2f69-457a-8769-affa013553b5 fwd="67.173.81.219" dyno= connect= service= status=503 bytes= protocol=https
2021-03-20T06:22:08.971134+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=triksnas.herokuapp.com request_id=0c9a6445-4506-4bff-8712-25358fc09f84 fwd="67.173.81.219" dyno= connect= service= status=503 bytes= protocol=https
2021-03-20T06:22:09.226777+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=triksnas.herokuapp.com request_id=7d181162-f179-485c-b6e5-e79beef76b1b fwd="67.173.81.219" dyno= connect= service= status=503 bytes= protocol=https
2021-03-20T06:22:47.477140+00:00 heroku[web.1]: State changed from crashed to starting
2021-03-20T06:22:53.797477+00:00 heroku[web.1]: Starting process with command gunicorn todo_list.wsgi --log-file -
2021-03-20T06:22:58.639482+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [4] [INFO] Starting gunicorn 20.0.4
2021-03-20T06:22:58.640400+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [4] [INFO] Listening at: http://0.0.0.0:22134 (4)
2021-03-20T06:22:58.640596+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [4] [INFO] Using worker: sync
2021-03-20T06:22:58.673965+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [7] [INFO] Booting worker with pid: 7
2021-03-20T06:22:58.687215+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [8] [INFO] Booting worker with pid: 8
2021-03-20T06:22:58.714222+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [8] [ERROR] Exception in worker process
2021-03-20T06:22:58.714235+00:00 app[web.1]: Traceback (most recent call last):
2021-03-20T06:22:58.714237+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2021-03-20T06:22:58.714239+00:00 app[web.1]: worker.init_process()
2021-03-20T06:22:58.714240+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 119, in init_process
2021-03-20T06:22:58.714240+00:00 app[web.1]: self.load_wsgi()
2021-03-20T06:22:58.714240+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2021-03-20T06:22:58.714241+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-03-20T06:22:58.714250+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-03-20T06:22:58.714250+00:00 app[web.1]: self.callable = self.load()
2021-03-20T06:22:58.714251+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2021-03-20T06:22:58.714251+00:00 app[web.1]: return self.load_wsgiapp()
2021-03-20T06:22:58.714252+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2021-03-20T06:22:58.714252+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-03-20T06:22:58.714253+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 358, in import_app
2021-03-20T06:22:58.714253+00:00 app[web.1]: mod = importlib.import_module(module)
2021-03-20T06:22:58.714253+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
2021-03-20T06:22:58.714254+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-03-20T06:22:58.714254+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-03-20T06:22:58.714255+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-03-20T06:22:58.714255+00:00 app[web.1]: File "", line 986, in _find_and_load_unlocked
2021-03-20T06:22:58.714255+00:00 app[web.1]: File "", line 680, in _load_unlocked
2021-03-20T06:22:58.714256+00:00 app[web.1]: File "", line 790, in exec_module
2021-03-20T06:22:58.714256+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-03-20T06:22:58.714256+00:00 app[web.1]: File "/app/todo_list/wsgi.py", line 12, in
2021-03-20T06:22:58.714257+00:00 app[web.1]: from django.core.wsgi import get_wsgi_application
2021-03-20T06:22:58.714257+00:00 app[web.1]: ModuleNotFoundError: No module named 'django'
2021-03-20T06:22:58.719618+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [8] [INFO] Worker exiting (pid: 8)
2021-03-20T06:22:58.728081+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [7] [ERROR] Exception in worker process
2021-03-20T06:22:58.728082+00:00 app[web.1]: Traceback (most recent call last):
2021-03-20T06:22:58.728083+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2021-03-20T06:22:58.728083+00:00 app[web.1]: worker.init_process()
2021-03-20T06:22:58.728084+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 119, in init_process
2021-03-20T06:22:58.728084+00:00 app[web.1]: self.load_wsgi()
2021-03-20T06:22:58.728085+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2021-03-20T06:22:58.728085+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-03-20T06:22:58.728085+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
Running printenv on ⬢ triksnas... up, run.5419 (Free)
PYTHONUNBUFFERED=true
DATABASE_URL=postgres://ftunpgeyiklrop:da92f8f4198bc5caeb2a5b17d443de9e6ba492d204b7ae36994372d320715481@ec2-54-198-252-9.compute-1.amazonaws.com:5432/dbbfi83es9eqj7:22:58.728087+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
PYTHONHASHSEED=random28088+00:00 app[web.1]: return util.import_app(self.app_uri)
PWD=/app20T06:22:58.728088+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 358, in import_app
PORT=41670T06:22:58.728088+00:00 app[web.1]: mod = importlib.import_module(module)
GUNICORN_CMD_ARGS=--access-logfile -[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
LINES=3020T06:22:58.728089+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
DYNO_RAM=5126:22:58.728090+00:00 app[web.1]: File "", line 1030, in _gcd_import
HOME=/app0T06:22:58.728090+00:00 app[web.1]: File "", line 1007, in _find_and_load
LANG=en_US.UTF-8:58.728091+00:00 app[web.1]: File "", line 986, in _find_and_load_unlocked
COLUMNS=15106:22:58.728091+00:00 app[web.1]: File "", line 680, in _load_unlocked
FORWARDED_ALLOW_IPS=*28091+00:00 app[web.1]: File "", line 790, in exec_module
PYTHONPATH=/app2:58.728092+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
PYTHONHOME=/app/.heroku/python00 app[web.1]: File "/app/todo_list/wsgi.py", line 12, in
LIBRARY_PATH=/app/.heroku/vendor/lib:/app/.heroku/python/lib:.wsgi import get_wsgi_application
SHLVL=0-20T06:22:58.728093+00:00 app[web.1]: ModuleNotFoundError: No module named 'django'
WEB_CONCURRENCY=258.728338+00:00 app[web.1]: [2021-03-20 06:22:58 +0000] [7] [INFO] Worker exiting (pid: 7)
LD_LIBRARY_PATH=/app/.heroku/vendor/lib:/app/.heroku/python/lib:om starting to up
PS1=[\033[01;34m]\w[\033[00m] [\033[01;32m]$ [\033[00m]58 +0000] [4] [INFO] Shutting down: Master
PATH=/app/.heroku/python/bin:/usr/local/bin:/usr/bin:/bin06:22:58 +0000] [4] [INFO] Reason: Worker failed to boot.
DYNO=run.5419:22:59.106782+00:00 heroku[web.1]: Process exited with status 3
_=/usr/bin/printenv.265476+00:00 heroku[web.1]: State changed from up to crashed
2021-03-20T06:23:00.099499+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=triksnas.herokuapp.com request_id=6b11f4
C:\Users\urvis\Desktop\rajpatel322.github.io\Practice_Project>ct= service= status=503 bytes= protocol=https
2021-03-20T06:23:00.345051+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=triksnas.herokuapp.com request_id=a2774a29-7829-486f-9736-09ab017dcfb2 fwd="67.173.81.219" dyno= connect= service= status=503 bytes= protocol=https
I have added django in the requirements.txt
it has to do with the PYTHONPATH not installing django. everytime i try to migrate using heroku run python manage.py migrate or runserver it says import django NoModuelFound Django
2021-05-08T00:11:46.652453+00:00 app[web.1]: File "", line 984, in _find_and_load_unlocked
2021-05-08T00:11:46.652453+00:00 app[web.1]: ModuleNotFoundError: No module named 'whitenoise'
2021-05-08T00:11:46.652818+00:00 app[web.1]: [2021-05-08 00:11:46 +0000] [8] [INFO] Worker exiting (pid: 8)
2021-05-08T00:11:46.721314+00:00 app[web.1]: [2021-05-08 00:11:46 +0000] [4] [WARNING] Worker with pid 8 was terminated due to signal 15
2021-05-08T00:11:46.816663+00:00 app[web.1]: [2021-05-08 00:11:46 +0000] [4] [INFO] Shutting down: Master
2021-05-08T00:11:46.816739+00:00 app[web.1]: [2021-05-08 00:11:46 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-05-08T00:11:46.890557+00:00 heroku[web.1]: Process exited with status 3
2021-05-08T00:11:47.088292+00:00 heroku[web.1]: State changed from up to crashed
2021-05-08T00:11:47.853226+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=nakulvijhani.herokuapp.com request_id=32a00c3f-9a06-4561-9d75-571d2e52db5a fwd="49.36.133.9" dyno= connect= service= status=503 bytes= protocol=https
2021-05-08T00:11:57.602825+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=nakulvijhani.herokuapp.com request_id=bf1b5a70-b8aa-44d2-9849-83de31511966 fwd="49.36.133.9" dyno= connect= service= status=503 bytes= protocol=https
2021-05-08T00:12:03.000000+00:00 app[api]: Build succeeded
2021-05-08T00:12:10.802067+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=nakulvijhani.herokuapp.com request_id=da74cde6-4330-4ef7-a628-3db8626c02d8 fwd="49.36.133.9" dyno= connect= service= status=503 bytes= protocol=https
2021-05-08T00:12:12.962881+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=nakulvijhani.herokuapp.com request_id=93c4140d-ee20-4e7b-9a1e-77feb02b814c fwd="49.36.133.9" dyno= connect= service= status=503 bytes= protocol=https
web: gunicorn django_project.wsgi:application --log-file - --log-level debug
python manage.py collectstatic --noinput
manage.py migrate
Could you please help me with this error
Please Check if Whitenoise is installed or not
Best Regards ,
Adarsh
On 08-May-2021, at 5:43 AM, nvijhani @ .***> wrote:
Could you please help me with this error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Hey @ezyhacks, can you help me with this error, I am trying to deploy project from last 10 to 15 days.
(myenv) C:\Users\Sanjana poptani\Desktop\todo>heroku logs --tail
» Warning: heroku update available from 7.53.0 to 7.54.0.
2021-05-31T20:47:46.659021+00:00 app[web.1]: File "", line 855, in exec_module
2021-05-31T20:47:46.659021+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-05-31T20:47:46.659022+00:00 app[web.1]: File "/app/proj/wsgi.py", line 16, in
2021-05-31T20:47:46.659022+00:00 app[web.1]: application = get_wsgi_application()
2021-05-31T20:47:46.659023+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2021-05-31T20:47:46.659023+00:00 app[web.1]: django.setup(set_prefix=False)
2021-05-31T20:47:46.659023+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/init .py", line 19, in setup
2021-05-31T20:47:46.659024+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-05-31T20:47:46.659024+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 82, in getattr
2021-05-31T20:47:46.659025+00:00 app[web.1]: self._setup(name)
2021-05-31T20:47:46.659025+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 69, in _setup
2021-05-31T20:47:46.659026+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2021-05-31T20:47:46.659026+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 170, in init
2021-05-31T20:47:46.659027+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2021-05-31T20:47:46.659027+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
2021-05-31T20:47:46.659027+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.659028+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-05-31T20:47:46.659028+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 972, in _find_and_load_unlocked
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-05-31T20:47:46.659030+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-05-31T20:47:46.659031+00:00 app[web.1]: File "", line 986, in _find_and_load_unlocked
2021-05-31T20:47:46.659031+00:00 app[web.1]: File "", line 680, in _load_unlocked
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "", line 855, in exec_module
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "/app/proj/settings.py", line 34, in
2021-05-31T20:47:46.659033+00:00 app[web.1]: django_heroku.settings(locals())
2021-05-31T20:47:46.659033+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py", line 99, in settings
2021-05-31T20:47:46.659034+00:00 app[web.1]: config['MIDDLEWARE'] = tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] + list(config['MIDDLEWARE']))
2021-05-31T20:47:46.659034+00:00 app[web.1]: KeyError: 'MIDDLEWARE'
2021-05-31T20:47:46.659269+00:00 app[web.1]: [2021-05-31 20:47:46 +0000] [8] [INFO] Worker exiting (pid: 8)
2021-05-31T20:47:46.660710+00:00 app[web.1]: [2021-05-31 20:47:46 +0000] [7] [ERROR] Exception in worker process
2021-05-31T20:47:46.660710+00:00 app[web.1]: Traceback (most recent call last):
2021-05-31T20:47:46.660711+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py", line 97, in settings
2021-05-31T20:47:46.660711+00:00 app[web.1]: config['MIDDLEWARE_CLASSES'] = tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] + list(config['MIDDLEWARE_CLASSES']))
2021-05-31T20:47:46.660712+00:00 app[web.1]: KeyError: 'MIDDLEWARE_CLASSES'
2021-05-31T20:47:46.660712+00:00 app[web.1]:
2021-05-31T20:47:46.660732+00:00 app[web.1]: During handling of the above exception, another exception occurred:
2021-05-31T20:47:46.660733+00:00 app[web.1]:
2021-05-31T20:47:46.660734+00:00 app[web.1]: Traceback (most recent call last):
2021-05-31T20:47:46.660734+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2021-05-31T20:47:46.660734+00:00 app[web.1]: worker.init_process()
2021-05-31T20:47:46.660735+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
2021-05-31T20:47:46.660735+00:00 app[web.1]: self.load_wsgi()
2021-05-31T20:47:46.660735+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2021-05-31T20:47:46.660736+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-05-31T20:47:46.660736+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-05-31T20:47:46.660737+00:00 app[web.1]: self.callable = self.load()
2021-05-31T20:47:46.660737+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2021-05-31T20:47:46.660738+00:00 app[web.1]: return self.load_wsgiapp()
2021-05-31T20:47:46.660738+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2021-05-31T20:47:46.660739+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-05-31T20:47:46.660739+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
2021-05-31T20:47:46.660740+00:00 app[web.1]: mod = importlib.import_module(module)
2021-05-31T20:47:46.660740+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
2021-05-31T20:47:46.660741+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 986, in _find_and_load_unlocked
2021-05-31T20:47:46.660743+00:00 app[web.1]: File "", line 680, in _load_unlocked
2021-05-31T20:47:46.660743+00:00 app[web.1]: File "", line 855, in exec_module
2021-05-31T20:47:46.660744+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-05-31T20:47:46.660744+00:00 app[web.1]: File "/app/proj/wsgi.py", line 16, in
2021-05-31T20:47:46.660744+00:00 app[web.1]: application = get_wsgi_application()
2021-05-31T20:47:46.660745+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2021-05-31T20:47:46.660745+00:00 app[web.1]: django.setup(set_prefix=False)
2021-05-31T20:47:46.660746+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/init .py", line 19, in setup
2021-05-31T20:47:46.660746+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-05-31T20:47:46.660746+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 82, in getattr
2021-05-31T20:47:46.660747+00:00 app[web.1]: self._setup(name)
2021-05-31T20:47:46.660747+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 69, in _setup
2021-05-31T20:47:46.660748+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2021-05-31T20:47:46.660748+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 170, in init
2021-05-31T20:47:46.660749+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2021-05-31T20:47:46.660749+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
2021-05-31T20:47:46.660750+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.660750+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-05-31T20:47:46.660751+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-05-31T20:47:46.660751+00:00 app[web.1]: File "", line 972, in _find_and_load_unlocked
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 986, in _find_and_load_unlocked
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 680, in _load_unlocked
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 855, in exec_module
2021-05-31T20:47:46.660754+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-05-31T20:47:46.660754+00:00 app[web.1]: File "/app/proj/settings.py", line 34, in
2021-05-31T20:47:46.660754+00:00 app[web.1]: django_heroku.settings(locals())
2021-05-31T20:47:46.660755+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py", line 99, in settings
2021-05-31T20:47:46.660755+00:00 app[web.1]: config['MIDDLEWARE'] = tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] + list(config['MIDDLEWARE']))
2021-05-31T20:47:46.660756+00:00 app[web.1]: KeyError: 'MIDDLEWARE'
2021-05-31T20:47:46.660998+00:00 app[web.1]: [2021-05-31 20:47:46 +0000] [7] [INFO] Worker exiting (pid: 7)
2021-05-31T20:47:46.755768+00:00 app[web.1]: [2021-05-31 20:47:46 +0000] [4] [WARNING] Worker with pid 7 was terminated due to signal 15
2021-05-31T20:47:46.853298+00:00 app[web.1]: [2021-05-31 20:47:46 +0000] [4] [INFO] Shutting down: Master
2021-05-31T20:47:46.853434+00:00 app[web.1]: [2021-05-31 20:47:46 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-05-31T20:47:46.945877+00:00 heroku[web.1]: Process exited with status 3
2021-05-31T20:47:47.020072+00:00 heroku[web.1]: State changed from up to crashed
2021-05-31T20:47:52.962684+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=todolistsanju.herokuapp.com request_id=8f3c6c29-d2a9-4dee-8060-79eb43be47ed fwd="49.34.215.3" dyno=web.1 connect=5000ms service= status=503 bytes= protocol=https
2021-05-31T20:47:53.699217+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=todolistsanju.herokuapp.com request_id=7e9d64fa-13bf-4879-919e-05708ff9f6a7 fwd="49.34.215.3" dyno= connect= service= status=503 bytes= protocol=https
This is my Procfile file:
web: gunicorn proj.wsgi --log-file - --log-level debug
This is my settings.py file
"""
Django settings for proj project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib import Path
import os
Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(file ).resolve().parent.parent
Quick-start development settings - unsuitable for production
See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-nr@-#=%zm0_(^+me)7+)f1%-#^16a87o0at22$^pyzkt1!*rpj'
SECRET_KEY = os.environ.get('SECRET_KEY')
SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ['*']
import django_heroku
django_heroku.settings(locals())
Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'todo',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'proj.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'proj.wsgi.application'
Database
https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
Password validation
https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
Internationalization
https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/3.2/howto/static-files/
PROJECT_ROOT = os.path.join(os.path.abspath(file ))
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
Extra lookup directories for collectstatic to find static files
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
Add configuration for static files storage using whitenoise
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
Default primary key field type
https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
import dj_database_url
prod_db = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(prod_db)
And this is my wsgi.py file
"""
WSGI config for proj project.
It exposes the WSGI callable as a module-level variable named application.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings.local')
application = get_wsgi_application()
I will be very thankful for anybody who is interested to help me solving this error
Hi there,
Pls move these lines below to the bottom of the settings.py file:
import django_heroku
django_heroku.settings(locals())
On Mon, 31 May 2021 at 8:52 pm, SanjanaPoptani @ .***>
wrote:
Hey @ezyhacks https://github.com/ezyhacks , can you help me with this
error, I am trying to deploy project from last 10 to 15 days.
(myenv) C:\Users\Sanjana poptani\Desktop\todo>heroku logs --tail
» Warning: heroku update available from 7.53.0 to 7.54.0.
2021-05-31T20:47:46.659021+00:00 app[web.1]: File "", line 855, in
exec_module
2021-05-31T20:47:46.659021+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.659022+00:00 app[web.1]: File "/app/proj/wsgi.py",
line 16, in
2021-05-31T20:47:46.659022+00:00 app[web.1]: application =
get_wsgi_application()
2021-05-31T20:47:46.659023+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line
12, in get_wsgi_application
2021-05-31T20:47:46.659023+00:00 app[web.1]: django.setup(set_prefix=False)
2021-05-31T20:47:46.659023+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/init .py", line
19, in setup
2021-05-31T20:47:46.659024+00:00 app[web.1]:
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-05-31T20:47:46.659024+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py",
line 82, in getattr
2021-05-31T20:47:46.659025+00:00 app[web.1]: self._setup(name)
2021-05-31T20:47:46.659025+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py",
line 69, in _setup
2021-05-31T20:47:46.659026+00:00 app[web.1]: self._wrapped =
Settings(settings_module)
2021-05-31T20:47:46.659026+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py",
line 170, in init
2021-05-31T20:47:46.659027+00:00 app[web.1]: mod =
importlib.import_module(self.SETTINGS_MODULE)
2021-05-31T20:47:46.659027+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in
import_module
2021-05-31T20:47:46.659027+00:00 app[web.1]: return
_bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.659028+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.659028+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 972, in
_find_and_load_unlocked
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.659029+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.659030+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.659031+00:00 app[web.1]: File "", line 986, in
_find_and_load_unlocked
2021-05-31T20:47:46.659031+00:00 app[web.1]: File "", line 680, in
_load_unlocked
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "", line 855, in
exec_module
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.659032+00:00 app[web.1]: File "/app/proj/settings.py",
line 34, in
2021-05-31T20:47:46.659033+00:00 app[web.1]:
django_heroku.settings(locals())
2021-05-31T20:47:46.659033+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py",
line 99, in settings
2021-05-31T20:47:46.659034+00:00 app[web.1]: config['MIDDLEWARE'] =
tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] +
list(config['MIDDLEWARE']))
2021-05-31T20:47:46.659034+00:00 app[web.1]: KeyError: 'MIDDLEWARE'
2021-05-31T20:47:46.659269+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[8] [INFO] Worker exiting (pid: 8)
2021-05-31T20:47:46.660710+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[7] [ERROR] Exception in worker process
2021-05-31T20:47:46.660710+00:00 app[web.1]: Traceback (most recent call
last):
2021-05-31T20:47:46.660711+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py",
line 97, in settings
2021-05-31T20:47:46.660711+00:00 app[web.1]: config['MIDDLEWARE_CLASSES']
= tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] +
list(config['MIDDLEWARE_CLASSES']))
2021-05-31T20:47:46.660712+00:00 app[web.1]: KeyError: 'MIDDLEWARE_CLASSES'
2021-05-31T20:47:46.660712+00:00 app[web.1]:
2021-05-31T20:47:46.660732+00:00 app[web.1]: During handling of the above
exception, another exception occurred:
2021-05-31T20:47:46.660733+00:00 app[web.1]:
2021-05-31T20:47:46.660734+00:00 app[web.1]: Traceback (most recent call
last):
2021-05-31T20:47:46.660734+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line
589, in spawn_worker
2021-05-31T20:47:46.660734+00:00 app[web.1]: worker.init_process()
2021-05-31T20:47:46.660735+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py",
line 134, in init_process
2021-05-31T20:47:46.660735+00:00 app[web.1]: self.load_wsgi()
2021-05-31T20:47:46.660735+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py",
line 146, in load_wsgi
2021-05-31T20:47:46.660736+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-05-31T20:47:46.660736+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py",
line 67, in wsgi
2021-05-31T20:47:46.660737+00:00 app[web.1]: self.callable = self.load()
2021-05-31T20:47:46.660737+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py",
line 58, in load
2021-05-31T20:47:46.660738+00:00 app[web.1]: return self.load_wsgiapp()
2021-05-31T20:47:46.660738+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py",
line 48, in load_wsgiapp
2021-05-31T20:47:46.660739+00:00 app[web.1]: return
util.import_app(self.app_uri)
2021-05-31T20:47:46.660739+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line
359, in import_app
2021-05-31T20:47:46.660740+00:00 app[web.1]: mod =
importlib.import_module(module)
2021-05-31T20:47:46.660740+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in
import_module
2021-05-31T20:47:46.660741+00:00 app[web.1]: return
_bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.660742+00:00 app[web.1]: File "", line 986, in
_find_and_load_unlocked
2021-05-31T20:47:46.660743+00:00 app[web.1]: File "", line 680, in
_load_unlocked
2021-05-31T20:47:46.660743+00:00 app[web.1]: File "", line 855, in
exec_module
2021-05-31T20:47:46.660744+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.660744+00:00 app[web.1]: File "/app/proj/wsgi.py",
line 16, in
2021-05-31T20:47:46.660744+00:00 app[web.1]: application =
get_wsgi_application()
2021-05-31T20:47:46.660745+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line
12, in get_wsgi_application
2021-05-31T20:47:46.660745+00:00 app[web.1]: django.setup(set_prefix=False)
2021-05-31T20:47:46.660746+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/init .py", line
19, in setup
2021-05-31T20:47:46.660746+00:00 app[web.1]:
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-05-31T20:47:46.660746+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py",
line 82, in getattr
2021-05-31T20:47:46.660747+00:00 app[web.1]: self._setup(name)
2021-05-31T20:47:46.660747+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py",
line 69, in _setup
2021-05-31T20:47:46.660748+00:00 app[web.1]: self._wrapped =
Settings(settings_module)
2021-05-31T20:47:46.660748+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py",
line 170, in init
2021-05-31T20:47:46.660749+00:00 app[web.1]: mod =
importlib.import_module(self.SETTINGS_MODULE)
2021-05-31T20:47:46.660749+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in
import_module
2021-05-31T20:47:46.660750+00:00 app[web.1]: return
_bootstrap._gcd_import(name[level:], package, level)
2021-05-31T20:47:46.660750+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.660751+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.660751+00:00 app[web.1]: File "", line 972, in
_find_and_load_unlocked
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 1030, in
_gcd_import
2021-05-31T20:47:46.660752+00:00 app[web.1]: File "", line 1007, in
_find_and_load
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 986, in
_find_and_load_unlocked
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 680, in
_load_unlocked
2021-05-31T20:47:46.660753+00:00 app[web.1]: File "", line 855, in
exec_module
2021-05-31T20:47:46.660754+00:00 app[web.1]: File "", line 228, in
_call_with_frames_removed
2021-05-31T20:47:46.660754+00:00 app[web.1]: File "/app/proj/settings.py",
line 34, in
2021-05-31T20:47:46.660754+00:00 app[web.1]:
django_heroku.settings(locals())
2021-05-31T20:47:46.660755+00:00 app[web.1]: File
"/app/.heroku/python/lib/python3.9/site-packages/django_heroku/core.py",
line 99, in settings
2021-05-31T20:47:46.660755+00:00 app[web.1]: config['MIDDLEWARE'] =
tuple(['whitenoise.middleware.WhiteNoiseMiddleware'] +
list(config['MIDDLEWARE']))
2021-05-31T20:47:46.660756+00:00 app[web.1]: KeyError: 'MIDDLEWARE'
2021-05-31T20:47:46.660998+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[7] [INFO] Worker exiting (pid: 7)
2021-05-31T20:47:46.755768+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[4] [WARNING] Worker with pid 7 was terminated due to signal 15
2021-05-31T20:47:46.853298+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[4] [INFO] Shutting down: Master
2021-05-31T20:47:46.853434+00:00 app[web.1]: [2021-05-31 20:47:46 +0000]
[4] [INFO] Reason: Worker failed to boot.
2021-05-31T20:47:46.945877+00:00 heroku[web.1]: Process exited with status
3
2021-05-31T20:47:47.020072+00:00 heroku[web.1]: State changed from up to
crashed
2021-05-31T20:47:52.962684+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/" host=todolistsanju.herokuapp.com
request_id=8f3c6c29-d2a9-4dee-8060-79eb43be47ed fwd="49.34.215.3"
dyno=web.1 connect=5000ms service= status=503 bytes= protocol=https
2021-05-31T20:47:53.699217+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico" host=
todolistsanju.herokuapp.com
request_id=7e9d64fa-13bf-4879-919e-05708ff9f6a7 fwd="49.34.215.3" dyno=
connect= service= status=503 bytes= protocol=https
This is my Procfile file:
web: gunicorn proj.wsgi --log-file - --log-level debug
This is my settings.py file
"""
Django settings for proj project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib import Path
import os
Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(file ).resolve().parent.parent
Quick-start development settings - unsuitable for production See
https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ SECURITY
WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-nr@
-#=%zm0_(^+me)7+)f1%-#^16a87o0at22$^pyzkt1!*rpj'
SECRET_KEY = os.environ.get('SECRET_KEY') SECURITY WARNING: don't run
with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ['*']
import django_heroku
django_heroku.settings(locals())
Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'todo',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'proj.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'proj.wsgi.application'
Database https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
Password validation
https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
Internationalization https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/3.2/howto/static-files/
PROJECT_ROOT = os.path.join(os.path.abspath(file ))
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
Extra lookup directories for collectstatic to find static files
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
Add configuration for static files storage using whitenoise
STATICFILES_STORAGE =
'whitenoise.storage.CompressedManifestStaticFilesStorage'
Default primary key field type
https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
import dj_database_url
prod_db = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(prod_db)
And this is my wsgi.py file
"""
WSGI config for proj project.
It exposes the WSGI callable as a module-level variable named application.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings.local')
application = get_wsgi_application()
I will be very thankful for anybody who is interested to help me solving
this error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/realpython/flask-boilerplate/issues/43#issuecomment-851678411 ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE66SZIVZZ5RST7Z4WHQ5K3TQPZIZANCNFSM4KZSVDUQ
.
Ok, I done that, but now getting this error:
C:\Users\Sanjana poptani\Desktop\todo>heroku logs --tail
» Warning: heroku update available from 7.53.0 to 7.54.0.
2021-06-01T12:08:51.331118+00:00 app[web.1]: [2021-06-01 12:08:51 +0000] [4] [DEBUG] Arbiter booted
2021-06-01T12:08:51.331320+00:00 app[web.1]: [2021-06-01 12:08:51 +0000] [4] [INFO] Listening at: http://0.0.0.0:40701 (4)
2021-06-01T12:08:51.331574+00:00 app[web.1]: [2021-06-01 12:08:51 +0000] [4] [INFO] Using worker: sync
2021-06-01T12:08:51.338358+00:00 app[web.1]: [2021-06-01 12:08:51 +0000] [7] [INFO] Booting worker with pid: 7
2021-06-01T12:08:51.417804+00:00 app[web.1]: [2021-06-01 12:08:51 +0000] [8] [INFO] Booting worker with pid: 8
2021-06-01T12:08:51.491317+00:00 app[web.1]: [2021-06-01 12:08:51 +0000] [4] [DEBUG] 2 workers
2021-06-01T12:08:51.624803+00:00 heroku[web.1]: State changed from starting to up
2021-06-01T12:08:53.063730+00:00 app[web.1]: [2021-06-01 12:08:53 +0000] [7] [ERROR] Exception in worker process
2021-06-01T12:08:53.063742+00:00 app[web.1]: Traceback (most recent call last):
2021-06-01T12:08:53.063743+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2021-06-01T12:08:53.063744+00:00 app[web.1]: worker.init_process()
2021-06-01T12:08:53.063744+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
2021-06-01T12:08:53.063745+00:00 app[web.1]: self.load_wsgi()
2021-06-01T12:08:53.063745+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2021-06-01T12:08:53.063794+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-06-01T12:08:53.063795+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-06-01T12:08:53.063796+00:00 app[web.1]: self.callable = self.load()
2021-06-01T12:08:53.063797+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2021-06-01T12:08:53.063797+00:00 app[web.1]: return self.load_wsgiapp()
2021-06-01T12:08:53.063798+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2021-06-01T12:08:53.063799+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-06-01T12:08:53.063799+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
2021-06-01T12:08:53.063800+00:00 app[web.1]: mod = importlib.import_module(module)
2021-06-01T12:08:53.063800+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
2021-06-01T12:08:53.063801+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-06-01T12:08:53.063802+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-06-01T12:08:53.063803+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-06-01T12:08:53.063803+00:00 app[web.1]: File "", line 986, in _find_and_load_unlocked
2021-06-01T12:08:53.063803+00:00 app[web.1]: File "", line 680, in _load_unlocked
2021-06-01T12:08:53.063804+00:00 app[web.1]: File "", line 855, in exec_module
2021-06-01T12:08:53.063804+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-06-01T12:08:53.063805+00:00 app[web.1]: File "/app/proj/wsgi.py", line 16, in
2021-06-01T12:08:53.063805+00:00 app[web.1]: application = get_wsgi_application()
2021-06-01T12:08:53.063805+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2021-06-01T12:08:53.063806+00:00 app[web.1]: django.setup(set_prefix=False)
2021-06-01T12:08:53.063806+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/init .py", line 19, in setup
2021-06-01T12:08:53.063807+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-06-01T12:08:53.063807+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 82, in getattr
2021-06-01T12:08:53.063808+00:00 app[web.1]: self._setup(name)
2021-06-01T12:08:53.063808+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 69, in _setup
2021-06-01T12:08:53.063808+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2021-06-01T12:08:53.063809+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 170, in init
2021-06-01T12:08:53.063809+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2021-06-01T12:08:53.063809+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
2021-06-01T12:08:53.063810+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-06-01T12:08:53.063810+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-06-01T12:08:53.063811+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-06-01T12:08:53.063811+00:00 app[web.1]: File "", line 981, in _find_and_load_unlocked
2021-06-01T12:08:53.063812+00:00 app[web.1]: ModuleNotFoundError: No module named 'proj.settings.local'; 'proj.settings' is not a package
2021-06-01T12:08:53.063926+00:00 app[web.1]: [2021-06-01 12:08:53 +0000] [7] [INFO] Worker exiting (pid: 7)
2021-06-01T12:08:53.069207+00:00 app[web.1]: [2021-06-01 12:08:53 +0000] [8] [ERROR] Exception in worker process
2021-06-01T12:08:53.069208+00:00 app[web.1]: Traceback (most recent call last):
2021-06-01T12:08:53.069209+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2021-06-01T12:08:53.069210+00:00 app[web.1]: worker.init_process()
2021-06-01T12:08:53.069210+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
2021-06-01T12:08:53.069211+00:00 app[web.1]: self.load_wsgi()
2021-06-01T12:08:53.069211+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2021-06-01T12:08:53.069211+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2021-06-01T12:08:53.069212+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-06-01T12:08:53.069212+00:00 app[web.1]: self.callable = self.load()
2021-06-01T12:08:53.069213+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2021-06-01T12:08:53.069213+00:00 app[web.1]: return self.load_wsgiapp()
2021-06-01T12:08:53.069213+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2021-06-01T12:08:53.069214+00:00 app[web.1]: return util.import_app(self.app_uri)
2021-06-01T12:08:53.069215+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/util.py", line 359, in import_app
2021-06-01T12:08:53.069215+00:00 app[web.1]: mod = importlib.import_module(module)
2021-06-01T12:08:53.069216+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
2021-06-01T12:08:53.069216+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-06-01T12:08:53.069217+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-06-01T12:08:53.069217+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-06-01T12:08:53.069218+00:00 app[web.1]: File "", line 986, in _find_and_load_unlocked
2021-06-01T12:08:53.069218+00:00 app[web.1]: File "", line 680, in _load_unlocked
2021-06-01T12:08:53.069218+00:00 app[web.1]: File "", line 855, in exec_module
2021-06-01T12:08:53.069219+00:00 app[web.1]: File "", line 228, in _call_with_frames_removed
2021-06-01T12:08:53.069219+00:00 app[web.1]: File "/app/proj/wsgi.py", line 16, in
2021-06-01T12:08:53.069219+00:00 app[web.1]: application = get_wsgi_application()
2021-06-01T12:08:53.069220+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2021-06-01T12:08:53.069220+00:00 app[web.1]: django.setup(set_prefix=False)
2021-06-01T12:08:53.069221+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/init .py", line 19, in setup
2021-06-01T12:08:53.069221+00:00 app[web.1]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2021-06-01T12:08:53.069221+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 82, in getattr
2021-06-01T12:08:53.069222+00:00 app[web.1]: self._setup(name)
2021-06-01T12:08:53.069222+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 69, in _setup
2021-06-01T12:08:53.069222+00:00 app[web.1]: self._wrapped = Settings(settings_module)
2021-06-01T12:08:53.069223+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/init .py", line 170, in init
2021-06-01T12:08:53.069223+00:00 app[web.1]: mod = importlib.import_module(self.SETTINGS_MODULE)
2021-06-01T12:08:53.069224+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/importlib/init .py", line 127, in import_module
2021-06-01T12:08:53.069224+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)
2021-06-01T12:08:53.069225+00:00 app[web.1]: File "", line 1030, in _gcd_import
2021-06-01T12:08:53.069225+00:00 app[web.1]: File "", line 1007, in _find_and_load
2021-06-01T12:08:53.069226+00:00 app[web.1]: File "", line 981, in _find_and_load_unlocked
2021-06-01T12:08:53.069226+00:00 app[web.1]: ModuleNotFoundError: No module named 'proj.settings.local'; 'proj.settings' is not a package
2021-06-01T12:08:53.069519+00:00 app[web.1]: [2021-06-01 12:08:53 +0000] [8] [INFO] Worker exiting (pid: 8)
2021-06-01T12:08:53.131720+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=todolistsanju.herokuapp.com request_id=7a727064-ef4f-4173-a8ce-beeb43f61b72 fwd="49.34.123.222" dyno=web.1 connect=3ms service=150ms status=503 bytes=0 protocol=https
2021-06-01T12:08:53.135219+00:00 app[web.1]: [2021-06-01 12:08:53 +0000] [4] [WARNING] Worker with pid 8 was terminated due to signal 15
2021-06-01T12:08:53.231707+00:00 app[web.1]: [2021-06-01 12:08:53 +0000] [4] [INFO] Shutting down: Master
2021-06-01T12:08:53.231751+00:00 app[web.1]: [2021-06-01 12:08:53 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-06-01T12:08:53.321977+00:00 heroku[web.1]: Process exited with status 3
2021-06-01T12:08:53.398883+00:00 heroku[web.1]: State changed from up to crashed
2021-06-01T12:08:58.690574+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=todolistsanju.herokuapp.com request_id=e2ec1735-6f0e-4cb8-9b16-ab08fcc5a709 fwd="49.34.123.222" dyno=web.1 connect=5000ms service= status=503 bytes= protocol=https
Can you please suggest something else, any other error which I can improve?
@ezyhacks can you please have a look at this error?👆👆