S
S
Solliter2017-08-31 10:03:57
Django
Solliter, 2017-08-31 10:03:57

Can't get the project up on Heroku?

Good afternoon!
Problems with raising the project to Heroku, please help, the floor is a spoiler error log.

spoiler
2017-08-31T06:48:58.303666+00:00 app[web.1]: return self.load_wsgiapp()
2017-08-31T06:48:58.303666+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2017-08-31T06:48:58.303667+00:00 app[web.1]: return util.import_app(self.app_uri)
2017-08-31T06:48:58.303668+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 352, in import_app
2017-08-31T06:48:58.303668+00:00 app[web.1]: __import__(module)
2017-08-31T06:48:58.303674+00:00 app[web.1]: ModuleNotFoundError: No module named 'dj-project'
2017-08-31T06:48:58.409564+00:00 app[web.1]: [2017-08-31 06:48:58 +0000] [4] [INFO] Shutting down: Master
2017-08-31T06:48:58.303821+00:00 app[web.1]: [2017-08-31 06:48:58 +0000] [9] [INFO] Worker exiting (pid: 9)
2017-08-31T06:48:58.409654+00:00 app[web.1]: [2017-08-31 06:48:58 +0000] [4] [INFO] Reason: Worker failed to boot.
2017-08-31T06:48:59.513772+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=catsbuilder.herokuapp.com request_id=0ad39277-04f0-4fa0-bd86-be7104ed7e39 fwd="94.102.122.200" dyno= connect= service= status=503 bytes= protocol=https
2017-08-31T06:48:59.437340+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=catsbuilder.herokuapp.com request_id=1c207e8c-7379-4f2f-b399-643f3a111df9 fwd="94.102.122.200" dyno= connect= service= status=503 bytes= protocol=https
2017-08-31T06:51:26.832349+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=catsbuilder.herokuapp.com request_id=d71cc9ca-e17d-45fe-badd-3467f6b6fe88 fwd="94.102.122.200" dyno= connect= service= status=503 bytes= protocol=https
2017-08-31T06:51:27.026899+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=catsbuilder.herokuapp.com request_id=fde12fe8-be94-42af-95ac-7f31cf0e4b3a fwd="94.102.122.200" dyno= connect= service= status=503 bytes= protocol=https
2017-08-31T06:51:49.829576+00:00 app[api]: Release v10 created by user [email protected]
2017-08-31T06:51:49.829576+00:00 app[api]: Set DISABLE_COLLECTSTATIC config vars by user [email protected]
2017-08-31T06:51:51.147515+00:00 heroku[web.1]: State changed from crashed to starting
2017-08-31T06:51:57.507405+00:00 heroku[web.1]: Starting process with command `gunicorn dj-project.wsgi`
2017-08-31T06:51:58.169204+00:00 app[api]: Starting process with command `python manage.py migrate` by user [email protected]
2017-08-31T06:51:59.697354+00:00 heroku[web.1]: Process exited with status 3
2017-08-31T06:51:59.711079+00:00 heroku[web.1]: State changed from starting to crashed
2017-08-31T06:51:59.563666+00:00 app[web.1]: [2017-08-31 06:51:59 +0000] [4] [INFO] Starting gunicorn 19.7.1
2017-08-31T06:51:59.566712+00:00 app[web.1]: [2017-08-31 06:51:59 +0000] [4] [INFO] Listening at: 0.0.0.0:28809 (4)
2017-08-31T06:51:59.566714+00:00 app[web.1]: [2017-08-31 06:51:59 +0000] [4] [INFO] Using worker: sync
2017-08-31T06:51:59.568849+00:00 app[web.1]: [2017-08-31 06:51:59 +0000] [8] [INFO] Booting worker with pid: 8
2017-08-31T06:51:59.572864+00:00 app[web.1]: [2017-08-31 06:51:59 +0000] [8] [ERROR] Exception in worker process
2017-08-31T06:51:59.572866+00:00 app[web.1]: Traceback (most recent call last):
2017-08-31T06:51:59.572867+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 578, in spawn_worker
2017-08-31T06:51:59.572868+00:00 app[web.1]: worker.init_process()
2017-08-31T06:51:59.572868+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 126, in init_process
2017-08-31T06:51:59.572869+00:00 app[web.1]: self.load_wsgi()
2017-08-31T06:51:59.572870+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py", line 135, in load_wsgi
2017-08-31T06:51:59.572870+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2017-08-31T06:51:59.572871+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
2017-08-31T06:51:59.572872+00:00 app[web.1]: self.callable = self.load()
2017-08-31T06:51:59.572872+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
2017-08-31T06:51:59.572873+00:00 app[web.1]: return self.load_wsgiapp()
2017-08-31T06:51:59.572873+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
2017-08-31T06:51:59.572874+00:00 app[web.1]: return util.import_app(self.app_uri)
2017-08-31T06:51:59.572875+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py", line 352, in import_app
2017-08-31T06:51:59.572875+00:00 app[web.1]: __import__(module)
2017-08-31T06:51:59.572876+00:00 app[web.1]: ModuleNotFoundError: No module named 'dj-project'
2017-08-31T06:51:59.572982+00:00 app[web.1]: [2017-08-31 06:51:59 +0000] [8] [INFO] Worker exiting (pid: 8)
2017-08-31T06:51:59.605905+00:00 app[web.1]: [2017-08-31 06:51:59 +0000] [4] [INFO] Shutting down: Master
2017-08-31T06:51:59.605988+00:00 app[web.1]: [2017-08-31 06:51:59 +0000] [4] [INFO] Reason: Worker failed to boot.
2017-08-31T06:52:07.942765+00:00 heroku[run.5102]: State changed from starting to up
2017-08-31T06:52:07.894853+00:00 heroku[run.5102]: Awaiting client
2017-08-31T06:52:07.949038+00:00 heroku[run.5102]: Starting process with command `python manage.py migrate`
2017-08-31T06:52:13.097857+00:00 heroku[run.5102]: Process exited with status 1
2017-08-31T06:52:13.105509+00:00 heroku[run.5102]: State changed from up to complete
2017-08-31T06:54:46.654736+00:00 app[api]: Starting process with command `python manage.py migrate` by user [email protected]
2017-08-31T06:54:54.565405+00:00 heroku[run.2082]: Awaiting client
2017-08-31T06:54:54.591840+00:00 heroku[run.2082]: Starting process with command `python manage.py migrate`
2017-08-31T06:54:54.623990+00:00 heroku[run.2082]: State changed from starting to up
2017-08-31T06:55:00.502869+00:00 heroku[run.2082]: Process exited with status 1
2017-08-31T06:55:00.518804+00:00 heroku[run.2082]: State changed from up to complete
2017-08-31T06:56:03.209039+00:00 app[api]: Starting process with command `python manage.py migrate` by user [email protected]
2017-08-31T06:56:09.966199+00:00 heroku[run.5972]: Awaiting client
2017-08-31T06:56:10.015113+00:00 heroku[run.5972]: Starting process with command `python manage.py migrate`
2017-08-31T06:56:10.277822+00:00 heroku[run.5972]: State changed from starting to up
2017-08-31T06:56:17.632533+00:00 heroku[run.5972]: State changed from up to complete
2017-08-31T06:56:17.619926+00:00 heroku[run.5972]: Process exited with status 1
2017-08-31T06:56:23.098791+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=catsbuilder.herokuapp.com request_id=2a847700-f922-4d23-8684-15b7aa3798ae fwd="94.102.122.200" dyno= connect= service= status=503 bytes= protocol=https
2017-08-31T06:56:23.176696+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=catsbuilder.herokuapp.com request_id=4e07f893-f19d-41c4-9e8f-30420701d7a5 fwd="94.102.122.200" dyno= connect= service= status=503 bytes= protocol=https

link to github https://github.com/solliter/catsbuilder

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2017-08-31
@Solliter

The error "ModuleNotFoundError: No module named 'dj-project'" means that in the same directory where the Procfile is located, there is no dj-project.wsgi file registered in this Procfile. There is a suspicion that the Procfile should contain:web: gunicorn catapp.wsgi

S
Solliter, 2017-08-31
@Solliter

not working yet, deal with error (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question