Задать вопрос
@Radiss

Почему heroku не запускается локально?

os ubuntu

При развертке на сервер выдает ошибку code=H10 desc="App crashed" method=GET path="/"
поэтому пробую следовать совету описанному здесь запустить heroku local

при этом в консоли -
ModuleNotFoundError: No module named 'gettingstarted'


Что это за модуль такой?

log полностью:
spoiler

0:59:20 web.1    |  [2020-08-05 00:59:20 +0500] [7169] [INFO] Starting gunicorn 20.0.4
0:59:21 web.1    |  [2020-08-05 00:59:20 +0500] [7169] [INFO] Listening at: http://0.0.0.0:5000 (7169)
0:59:21 web.1    |  [2020-08-05 00:59:20 +0500] [7169] [INFO] Using worker: sync
0:59:21 web.1    |  [2020-08-05 00:59:20 +0500] [7172] [INFO] Booting worker with pid: 7172
0:59:21 web.1    |  [2020-08-05 00:59:20 +0500] [7172] [ERROR] Exception in worker process
0:59:21 web.1    |  Traceback (most recent call last):
0:59:21 web.1    |    File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
0:59:21 web.1    |      worker.init_process()
0:59:21 web.1    |    File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/workers/base.py", line 119, in init_process
0:59:21 web.1    |      self.load_wsgi()
0:59:21 web.1    |    File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
0:59:21 web.1    |      self.wsgi = self.app.wsgi()
0:59:21 web.1    |    File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
0:59:21 web.1    |      self.callable = self.load()
0:59:21 web.1    |    File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
0:59:21 web.1    |      return self.load_wsgiapp()
0:59:21 web.1    |    File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
0:59:21 web.1    |      return util.import_app(self.app_uri)
0:59:21 web.1    |    File "/home/user/Home/ASITES/python/12v/my-venv/lib/python3.6/site-packages/gunicorn/util.py", line 358, in import_app
0:59:21 web.1    |      mod = importlib.import_module(module)
0:59:21 web.1    |    File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
0:59:21 web.1    |      return _bootstrap._gcd_import(name[level:], package, level)
0:59:21 web.1    |    File "<frozen importlib._bootstrap>", line 994, in _gcd_import
0:59:21 web.1    |    File "<frozen importlib._bootstrap>", line 971, in _find_and_load
0:59:21 web.1    |    File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
0:59:21 web.1    |    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
0:59:21 web.1    |    File "<frozen importlib._bootstrap>", line 994, in _gcd_import
0:59:21 web.1    |    File "<frozen importlib._bootstrap>", line 971, in _find_and_load
0:59:21 web.1    |    File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
0:59:21 web.1    |  ModuleNotFoundError: No module named 'gettingstarted'
0:59:21 web.1    |  [2020-08-05 00:59:21 +0500] [7172] [INFO] Worker exiting (pid: 7172)
0:59:21 web.1    |  [2020-08-05 00:59:21 +0500] [7169] [INFO] Shutting down: Master
0:59:21 web.1    |  [2020-08-05 00:59:21 +0500] [7169] [INFO] Reason: Worker failed to boot.
[DONE] Killing all processes with signal  SIGINT
0:59:21 web.1    Exited with exit code null


  • Вопрос задан
  • 67 просмотров
Подписаться 1 Средний 2 комментария
Пригласить эксперта
Ответы на вопрос 1
tumbler
@tumbler Куратор тега Django
бекенд-разработчик на python
В конфиге gunicorn gettingstarted надо поменять на нормальный путь до WSGI-приложения
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы