django project with heroku: application error - django

I successfully deploy the project to Heroku. but when I run Heroku open it throws Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.
my logs is here
(dj12) λ heroku logs
2018-07-05T07:06:17.443987+00:00 app[api]: Initial release by user ermiaskidanegebre#gmail.com
2018-07-05T07:06:17.443987+00:00 app[api]: Release v1 created by user ermiaskidanegebre#gmail.com
2018-07-05T07:06:17.909289+00:00 app[api]: Release v2 created by user ermiaskidanegebre#gmail.com
2018-07-05T07:06:17.909289+00:00 app[api]: Enable Logplex by user ermiaskidanegebre#gmail.com
2018-07-05T07:16:35.051508+00:00 app[api]: Attach DATABASE (#ref:postgresql-shaped-50056) by user ermiaskidanegebre#gmail.com
2018-07-05T07:16:35.051508+00:00 app[api]: Release v3 created by user ermiaskidanegebre#gmail.com
2018-07-05T07:24:48.143580+00:00 app[api]: Set SECRET_KEY config vars by user ermiaskidanegebre#gmail.com
2018-07-05T07:24:48.143580+00:00 app[api]: Release v4 created by user ermiaskidanegebre#gmail.com
2018-07-05T07:33:04.050618+00:00 app[api]: Set SECRET_KEY config vars by user ermiaskidanegebre#gmail.com
2018-07-05T07:33:04.050618+00:00 app[api]: Release v5 created by user ermiaskidanegebre#gmail.com
2018-07-05T07:40:34.881810+00:00 app[api]: Set EMAIL_PASSWORD config vars by user ermiaskidanegebre#gmail.com
2018-07-05T07:40:34.881810+00:00 app[api]: Release v6 created by user ermiaskidanegebre#gmail.com
2018-07-05T07:49:13.302208+00:00 app[api]: Release v7 created by user ermiaskidanegebre#gmail.com
2018-07-05T07:49:13.302208+00:00 app[api]: Set DISABLE_COLLECTSTATIC config vars by user ermiaskidanegebre#gmail.com
2018-07-05T07:54:43.000000+00:00 app[api]: Build started by user ermiaskidanegebre#gmail.com
2018-07-05T07:55:09.406852+00:00 app[api]: Release v8 created by user ermiaskidanegebre#gmail.com
2018-07-05T07:55:09.406852+00:00 app[api]: Deploy 2fdb68de by user ermiaskidanegebre#gmail.com
2018-07-05T07:55:18.000000+00:00 app[api]: Build succeeded
2018-07-05T07:57:14.239360+00:00 app[api]: Starting process with command `python manage.py migrate` by user ermiaskidanegebre#gmail.com
2018-07-05T07:57:20.853528+00:00 heroku[run.2986]: State changed from starting to up
2018-07-05T07:57:20.965558+00:00 heroku[run.2986]: Awaiting client
2018-07-05T07:57:21.013142+00:00 heroku[run.2986]: Starting process with command `python manage.py migrate`
2018-07-05T07:57:26.012552+00:00 heroku[run.2986]: Process exited with status 1
2018-07-05T07:57:26.032134+00:00 heroku[run.2986]: State changed from up to complete
2018-07-05T08:01:58.000000+00:00 app[api]: Build started by user ermiaskidanegebre#gmail.com
2018-07-05T08:02:15.941485+00:00 app[api]: Release v9 created by user ermiaskidanegebre#gmail.com
2018-07-05T08:02:15.941485+00:00 app[api]: Deploy 8a0e03de by user ermiaskidanegebre#gmail.com
2018-07-05T08:02:25.000000+00:00 app[api]: Build succeeded
2018-07-05T08:03:43.462294+00:00 heroku[run.1120]: Awaiting client
2018-07-05T08:03:43.510884+00:00 heroku[run.1120]: Starting process with command `python manage.py migrate`
2018-07-05T08:03:43.859691+00:00 heroku[run.1120]: State changed from starting to up
2018-07-05T08:03:37.888541+00:00 app[api]: Starting process with command `python manage.py migrate` by user ermiaskidanegebre#gmail.com
2018-07-05T08:03:53.506152+00:00 heroku[run.1120]: Process exited with status 0
2018-07-05T08:03:53.525335+00:00 heroku[run.1120]: State changed from up to complete
2018-07-05T08:13:52.212453+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=django-ecommerce-2.herokuapp.com request_id=750bffb9-e6bb-4ea7-94bd-09772529bf3c fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T08:13:52.636447+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=django-ecommerce-2.herokuapp.com request_id=be57a379-0d82-4251-9218-049d3cdfb9a6 fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T08:57:48.239032+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=django-ecommerce-2.herokuapp.com request_id=e5708b4e-1ef6-4167-a70a-0a99c9b8aecf fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T08:57:48.702316+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=django-ecommerce-2.herokuapp.com request_id=d92730e4-c5e9-4570-a709-311a07e0e3dc fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T09:11:36.000000+00:00 app[api]: Build started by user ermiaskidanegebre#gmail.com
2018-07-05T09:11:53.696459+00:00 app[api]: Deploy 2993315c by user ermiaskidanegebre#gmail.com
2018-07-05T09:11:53.696459+00:00 app[api]: Release v10 created by user ermiaskidanegebre#gmail.com
2018-07-05T09:12:03.000000+00:00 app[api]: Build succeeded
2018-07-05T09:32:26.285646+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=django-ecommerce-2.herokuapp.com request_id=08b476e4-c7f9-43b4-b706-9d44d3b8c8c1 fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T09:32:55.648599+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=django-ecommerce-2.herokuapp.com request_id=5e4b151f-757b-49ad-8138-c47877c2c3e1 fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T11:09:37.172582+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=django-ecommerce-2.herokuapp.com request_id=ea6c2402-cfe2-4cb5-a910-2b6d152174f4 fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T11:10:05.085667+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=django-ecommerce-2.herokuapp.com request_id=f91cef75-167c-4160-8709-e73736384dbc fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T11:10:06.448716+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=django-ecommerce-2.herokuapp.com request_id=5fa29e24-e3d1-439f-bf88-dd1f266ac85a fwd="82.26.20.87" dyno= connect= service= status=503 bytes= protocol=https
2018-07-05T11:22:38.501221+00:00 app[api]: Starting process with command `bash` by user ermiaskidanegebre#gmail.com
2018-07-05T11:22:43.651327+00:00 heroku[run.8345]: Awaiting client
2018-07-05T11:22:43.684186+00:00 heroku[run.8345]: Starting process with command `bash`
2018-07-05T11:22:43.729572+00:00 heroku[run.8345]: State changed from starting to up
2018-07-05T11:29:31.865357+00:00 heroku[run.8345]: Process exited with status 127
2018-07-05T11:29:32.006562+00:00 heroku[run.8345]: State changed from up to complete
my procfile
"web: gunicorn ecommerce2.wsgi"
my wsgi.py
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ecommerce2.settings")
application = get_wsgi_application()
and from the documentation errors related to H14 can be fixed with heroku ps:scale web=1 and this pop out
Scaling dynos... !
! Couldn't find that process type.
when I check my Heroku account the Dynos in the resource is saying the below tex, eventhough I added my Procfile successfully.
This app has no process types yet
Add a Procfile to your app in order to define its process types. Learn more
how could I fix this issue?
thanks for your help.

Last time when I had this issue it was related to requirement not found. update your requirements.txt file from your local.
Also what you want to do is in your settings.py
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = True
Add these lines for production. This will propogate error to log. There you can see why you are getting application error.
(I am willing to bet its a some missing package. Let me know what it was.)

Your app doesn't have any process running.
You need to scale your web dyno with the heroku ps:scale web=1 command.
Of course, this assumes you have configured a web process type in your Procfile.

Today I faced the same error. In my root directory, I had Procfile without any extention but when I opened the code in visual studio code, the Procfile had the extension .txt and was present as "Procfile.txt". I just removed the .txt from the file and saved it. This resolved my error.
You can refer to my post for more clarification:
Getting application error while running the python app on heroku

Related

Django site hosting on Heroku "No web processes runnng"

So I tried to host my Django application to Heroku and at first it worked. Then I wanted to add some release commands so I did this:
release_commands.sh
python manage.py makemigrations
python manage.py migrate
And in my Procfile:
release: bash ./release_commands.sh
web: gunicorn todo.wsgi --log-file -
The second line in my Procfile is unchanged, so I guessed that the error must be coming from the release commands, but that's not the case as in my heroku logs I have this:
2021-02-17T19:41:31.675215+00:00 heroku[release.6232]: Process exited with status 0
2021-02-17T19:41:31.772693+00:00 heroku[release.6232]: State changed from up to complete
2021-02-17T19:41:34.021990+00:00 app[api]: Release v11 created by user georgi.hr.dim#gmail.com
This is the error message:
2021-02-17T19:41:43.594322+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=POST path="/accounts/login/?next=/" host=essentialtodo.herokuapp.com request_id=5dce4816-6343-44c3-9c8f
-171e79379abc fwd="78.90.0.206" dyno= connect= service= status=503 bytes= protocol=https
Just found out what the problem was. For some reason after adding the release commands my dynos were turned off. To fix this: go to your heroku app (on the heroku website) -> go to resources -> press the edit button on your dyno -> turn it on and confirm
.

Django H14 Heroku error, how do i fix this?

2020-09-08T17:05:06.205027+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=uvdocdash.herokuapp.com request_id=f17ceaee-3e7c-4eba-aebf-19dd4b424eee fwd="70.39.71.29" dyno= connect= service= status=503 bytes= protocol=https
I get this error in the logs, so far I havent been able to find out why my app isnt working. It's a django app, and the requirments.txt is correct as far as i know.
asgiref==3.2.10
Django==3.1.1
gunicorn==20.0.4
pytz==2020.1
sqlparse==0.3.1
django-heroku >= 0.3.1
Add a Procfile to your folder that has manage.py in it. Just add a file called Procfile and add web: gunicorn projectname.wsgi inside of that file. save and push.

Heroku logs says: "No web processes running"

I made a website with django and tried deploying it using Heroku. After deploying, I can't access to it and Heroku log shows the following error :
at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=pur-beurre-oc8.herokuapp.com request_id=9e33d4c8-83d6-4214-baf8-e4d1023b43ff fwd="176.134.6.63" dyno= connect= service= status=503 bytes= protocol=https
After looking through some similar problems, I tried:
heroku ps:scale web=1
and got:
Scaling dynos... !
▸ Couldn't find that process type (web).
I tried to remove and add buildpacks:
heroku buildpacks:clear
heroku buildpacks:add --index heroku/python
but this last command return to me:
Error: Expected an integer but received: heroku/python
at Object.parse (/snap/heroku/3832/node_modules/#oclif/parser/lib/flags.js:17:19)
at Parser._flags (/snap/heroku/3832/node_modules/#oclif/parser/lib/parse.js:152:49)
at Parser.parse (/snap/heroku/3832/node_modules/#oclif/parser/lib/parse.js:113:28)
at Object.parse (/snap/heroku/3832/node_modules/#oclif/parser/lib/index.js:25:27)
at Add.parse (/snap/heroku/3832/node_modules/#oclif/command/lib/command.js:83:41)
at Add.run (/snap/heroku/3832/node_modules/#heroku-cli/plugin-buildpacks/lib/commands/buildpacks/add.js:7:36)
at Add._run (/snap/heroku/3832/node_modules/#oclif/command/lib/command.js:44:31)
So I do not know what I'm doing wrong
My Proficle is like this:
web: gunicorn pur_beurre.wsgi
I tried to change Procfile like this:
web: gunicorn pur_beurre:app
or this:
web gunicorn pur_beurre:app
but heroku ps:scale web=1 still not working
Edit
My Procfile was not in my app’s root directory, so I moved it and now heroku ps:scale web=1 returns:
Scaling dynos... done, now running web at 1:Free
But I still have the error:
at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=pur-beurre-oc8.herokuapp.com request_id=8cc800fa-cd49-43a9-8fc5-babf0028ca1f fwd="176.134.6.63" dyno= connect= service= status=503 bytes= protocol=https

Django Heroku H10 error method=GET path="/favicon.ico"

I am fighting with this error while trying to get Django app to Heroku.
Below some details:
Requirements:
dj-database-url==0.5.0
Django==2.1.5
django-heroku==0.3.1
gunicorn==19.9.0
psycopg2==2.7.7
psycopg2-binary==2.7.6.1
pytz==2018.9
whitenoise==4.1.2
WSGI:
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "folder.settings")
application = get_wsgi_application()
Procfile tried (below are options i used in separate files/deployment):
web: gunicorn 4_Django/folder/wsgi.py 0.0.0.0:$PORT
LOGs:
Procfile logs:
2019-01-29T14:18:23.785257+00:00 heroku[web.1]: Starting process with
command `gunicorn 4_Django/folder/wsgi.py 0.0.0.0:8023`
2019-01-29T14:18:26.388317+00:00 heroku[web.1]: State changed from
starting to crashed
2019-01-29T14:18:26.307448+00:00 heroku[web.1]: Process exited with
status 3
2019-01-29T14:18:27.000000+00:00 app[api]: Build succeeded
2019-01-29T14:18:32.222748+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico"
host=djangozadanie.herokuapp.com request_id=7102a7b5-2798-4317-988d-
a690c10c9a14 fwd="89.78.65.77" dyno= connect= service= status=503
bytes= protocol=https
During deployment i get dozen of lines like the below, but i am not sure it has anythong to do with the problem:
Found another file with the destination path 'style.css'. It will be
ignored since only the first encountered file is collected. If this is
not what you want, make sure every static file has a unique path.
That's not how you use gunicorn. It accepts a Python module path, not a file path, and doesn't take an IP or port on the command line.
As the docs show, actually all you need is just:
web: gunicorn folder.wsgi
assuming folder is your project name.

Error in deploying django website on heroku

I am deploying my django website in heroku with DATABASE = {} in django's setting.py file.
I am following all the steps of heroku help and every command ran
but some applicaton error is coming on running command-
heroku open
(jango)dc#dc-comp-4:~/website$ heroku open
Opening evening-waters-7886... done
(jango)dc#dc-comp-4:~/website$
(process:8176): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
and my heroku log status is-
dc#dc-comp-4:~/website$ heroku logs
2015-02-26T09:07:09.555685+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:07:09.555087+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:07:17.890143+00:00 heroku[web.1]: Starting process with command `gunicorn gettingstarted.wsgi --log-file -`
2015-02-26T09:07:20.325197+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:07:21.184736+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:07:21.202490+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:07:27.250898+00:00 heroku[api]: Scale to web=1 by rahulsatal92#gmail.com
2015-02-26T09:07:56.156898+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=9a9781c5-57d6-43c2-8ca0-43df571804a0 fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T09:08:01.602067+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=evening-waters-7886.herokuapp.com request_id=597a1c36-200e-4f8c-8dfe-b00d4d2cacee fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T09:08:03.737046+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=evening-waters-7886.herokuapp.com request_id=4d790108-6019-4fce-9d1e-10eafca9efc1 fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T09:27:54.099907+00:00 heroku[api]: Deploy e061461 by rahulsatal92#gmail.com
2015-02-26T09:27:54.099907+00:00 heroku[api]: Release v6 created by rahulsatal92#gmail.com
2015-02-26T09:27:54.255144+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:28:05.720678+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:28:06.984648+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:28:07.736542+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:28:07.737796+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:28:07.721050+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:28:11.784672+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:28:13.765503+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:28:14.689070+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:28:14.702968+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:28:18.234685+00:00 heroku[api]: Scale to web=1 by rahulsatal92#gmail.com
2015-02-26T09:28:48.532426+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=a2b76940-91ea-4d2d-884e-0049bc707217 fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T09:32:01.295019+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=7bf7ddc0-a04f-4f40-aade-f7a5116cf9f0 fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T09:34:29.437580+00:00 heroku[api]: Attach HEROKU_POSTGRESQL_BLUE resource by rahulsatal92#gmail.com
2015-02-26T09:34:29.437580+00:00 heroku[api]: Release v7 created by rahulsatal92#gmail.com
2015-02-26T09:34:29.678932+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:34:33.288768+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:34:35.045626+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:34:35.717937+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:34:35.729414+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:39:47.384245+00:00 heroku[api]: Release v8 created by rahulsatal92#gmail.com
2015-02-26T09:39:47.384245+00:00 heroku[api]: Attach HEROKU_POSTGRESQL_OLIVE resource by rahulsatal92#gmail.com
2015-02-26T09:39:47.747151+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:39:50.940581+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:39:52.075160+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:39:52.716034+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:39:52.716772+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:39:52.705237+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:39:56.910325+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:39:58.335235+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:39:59.091134+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:39:59.123230+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:41:28.032235+00:00 heroku[api]: Deploy 5e882c5 by rahulsatal92#gmail.com
2015-02-26T09:41:28.032235+00:00 heroku[api]: Release v9 created by rahulsatal92#gmail.com
2015-02-26T09:41:28.577676+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:41:32.256825+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:41:33.437334+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:41:34.121450+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:41:34.126557+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:41:46.438295+00:00 heroku[api]: Scale to web=1 by rahulsatal92#gmail.com
2015-02-26T09:42:04.929728+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=f16cebee-7c15-42d5-bba6-a4c85d0addaf fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T09:43:05.406941+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=9e4aa61d-073d-49d2-a696-606b4c965d51 fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T09:44:05.946147+00:00 heroku[api]: Attach HEROKU_POSTGRESQL_COPPER resource by rahulsatal92#gmail.com
2015-02-26T09:44:05.946147+00:00 heroku[api]: Release v10 created by rahulsatal92#gmail.com
2015-02-26T09:44:06.133499+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:44:09.806610+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:44:11.203036+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:44:11.895235+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:44:11.911573+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:52:08.400443+00:00 heroku[api]: Scale to web=1 by rahulsatal92#gmail.com
2015-02-26T09:52:30.139203+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=2e818d74-a717-41d4-9050-3be25889eaed fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T09:58:07.383685+00:00 heroku[api]: Starting process with command `rake db:migrate` by rahulsatal92#gmail.com
2015-02-26T09:58:11.492711+00:00 heroku[run.3731]: Awaiting client
2015-02-26T09:58:11.520152+00:00 heroku[run.3731]: Starting process with command `rake db:migrate`
2015-02-26T09:58:13.489900+00:00 heroku[run.3731]: Process exited with status 127
2015-02-26T09:58:13.503789+00:00 heroku[run.3731]: State changed from up to complete
2015-02-26T09:58:11.931301+00:00 heroku[run.3731]: State changed from starting to up
2015-02-26T09:59:05.424832+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:59:12.340999+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:59:13.778095+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:59:14.428734+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:59:14.437924+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:59:14.438617+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T09:59:17.805847+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T09:59:19.331755+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T09:59:20.010738+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T09:59:20.028996+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T09:59:23.726010+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=c2ba4a6d-1357-47a4-abee-78cfe3db7545 fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T10:04:06.912448+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=5d21087f-d811-4685-964b-23acf24fd499 fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T10:29:10.000446+00:00 heroku[api]: Starting process with command `pip install gunicorn` by rahulsatal92#gmail.com
2015-02-26T10:29:13.833066+00:00 heroku[run.8299]: Awaiting client
2015-02-26T10:29:13.871544+00:00 heroku[run.8299]: Starting process with command `pip install gunicorn`
2015-02-26T10:29:14.121060+00:00 heroku[run.8299]: State changed from starting to up
2015-02-26T10:29:18.182526+00:00 heroku[run.8299]: Process exited with status 0
2015-02-26T10:29:18.195891+00:00 heroku[run.8299]: State changed from up to complete
2015-02-26T10:32:34.286827+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-waters-7886.herokuapp.com request_id=29508561-6c27-4ac6-a67d-7543fb87b385 fwd="14.139.240.226" dyno= connect= service= status=503 bytes=
2015-02-26T10:36:58.977614+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T10:37:02.450833+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T10:37:03.717531+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T10:37:04.438957+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T10:37:04.439393+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T10:37:04.418361+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T10:37:08.015347+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T10:37:09.728762+00:00 app[web.1]: bash: gunicorn: command not found
2015-02-26T10:37:10.601803+00:00 heroku[web.1]: State changed from starting to crashed
2015-02-26T10:37:10.596391+00:00 heroku[web.1]: Process exited with status 127
2015-02-26T11:21:32.653989+00:00 heroku[web.1]: State changed from crashed to starting
2015-02-26T11:21:36.340593+00:00 heroku[web.1]: Starting process with command `gunicorn website:app --log-file=-`
2015-02-26T11:23:39.380466+00:00 heroku[web.1]: State changed from starting to down
dc#dc-comp-4:~/website$ ^C
plz help me out.
bash: gunicorn: command not found
The above error clearly mention that you don't have gunicorn on Heroku server
How to install
Install it using pip install gunicorn will clear the error.
Add gunicorn to your requirements.txt file
You should install django-toolbelt ( you can do that by pip install django-toolbelt) and it will install gunicorn) after that you need to add it to your requirements.txt ( using pip freeze > requirements.txt ).
Let me explain like this .
Heroku looks at your file structure and searches two things :
an Procfile and a requirements.txt ( if you have a python project, if you have other projects the name of this file that represents the dependency for you project may have another name , but let's stick with python django ).
It user the content of the requirements.txt to see what it needs to install, if i want a certain library it needs to pe in that requirements.txt ( heroku will install everything that it know it should install and it knows what it should install by looking at requirements.txt )
Then it looks at the Procfile ( this file tell it what it should run in order to start the project )
Now coming to your bug , you can write in that prof file the flowing things
web: python manage.py runserver 0.0.0.0:$PORT
this means : start a web dyno , run the following command and use the port that is provided by the environment variable $PORT
This will start django as on localhost, with the test server, just to be sure it works. You should not use this in production, but for debugging is good.
If you can't get it to work with this it means that you have other problems not just the gunicorn missing.
In heroku tutorial there is a part that says :
Next, install our application’s dependencies with pip. In this case, we will be installing django-toolbelt, which includes all of the packages we need:
Django (the web framework)
Gunicorn (WSGI server)
dj-database-url (a Django configuration helper)
dj-static (a Django static file server)
Paste your requirements.txt here so we can figure it out faster .
And for using Django on heroku use this .