[Heroku][Deploy]— “No web process running”

Sandy Lin
2 min readFeb 3, 2020

--

When deploying my Django project to Heroku, I encountered this error:

at=error code=H14 desc=”No web processes running” method=GET path=”/” host=xxx.herokuapp.com request_id=xxx fwd=”xxx.xx.xx.x" dyno= connect= service= status=503 bytes=

Here are the ways you could try —

Solution 1:

Try to run the following comment to scale your dyno:

heroku ps:scale web=1

if you get

Scaling dynos... !
! Couldn't find that formation.

It means that you didn’t have dynos for Heroku. And you can check the project page “Overview”.

Then go on to Solution 2.

Solution 2:

***Check the project folder if there is a Procfile under the root of the folder.*** Procfile specifies the commands that are executed by the app on startup.

If you project is a web , then the content of the Procfile will beweb: gunicorn <filename>:<main method name> . (Before this step, make sure you have installed gunicorn for python programs running on Heroku. )

Finally, you can scale your dyno again: heroku ps:scale web=1

Check the project page “Overview” again and you will see this. It means that Heroku finally recognize your project!

--

--

Sandy Lin

Software Engineer & Science/Art/Music/Sports lover & LEGO enthusiast & Adventurer 🎻 🎹 🎸 🎨 📸 🛹 🏂 🏄 🏊 🤿 ⚽️ https://hsinjulin.astroneuro.com/