Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No web processes running Error - Deploying Django on Heroku

I am using the tutorial to deploy Django. [http://devcenter.heroku.com/articles/django] After I do a git push heroku master, there are no web processes.

Process  State  Command  
-------  -----  ------- 

On the log it looks like the following.

2012-04-13T03:48:45+00:00 heroku[slugc]: Slug compilation started
2012-04-13T03:49:32+00:00 heroku[api]: Config add PYTHONUNBUFFERED, PYTHONPATH, PATH,     
LD_LIBRARY_PATH, LANG, PYTHONHOME, LIBRARY_PATH, PYTHONHASHSEED by [email protected]
2012-04-13T03:49:32+00:00 heroku[api]: Release v2 created by [email protected]
2012-04-13T03:49:34+00:00 heroku[api]: Release v3 created by [email protected]
2012-04-13T03:49:34+00:00 heroku[api]: Deploy d1263ef by [email protected]
2012-04-13T03:49:34+00:00 heroku[web.1]: State changed from created to down
2012-04-13T03:49:35+00:00 heroku[slugc]: Slug compilation finished
2012-04-13T03:50:19+00:00 heroku[router]: Error H14 (No web processes running) -> GET    
growing-winter-4952.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=

Any ideas? I was able to get this to work with another app. Thank you.

Also when I do a heroku scale web=1 I get this

Scaling web processes...  !    Record not found.
like image 791
Zach Avatar asked Apr 13 '12 14:04

Zach


People also ask

What is heroku Procfile?

Heroku apps include a Procfile that specifies the commands that are executed by the app on startup. You can use a Procfile to declare a variety of process types, including: Your app's web server. Multiple types of worker processes. A singleton process, such as a clock.


2 Answers

This is most likely the result of scaling your web processes down to zero through the client.

$ heroku ps:scale web=0

Use the heroku ps command to determine the state of your web processes., and you should take a look at the Error Codes to understand the Heroku functionality.

like image 141
Voislav Sauca Avatar answered Oct 17 '22 02:10

Voislav Sauca


I had the exact same problem. At first, when I ran heroku scale web=1, I got the same 'Record not found' error as you. But I waited a few minutes and ran it again, and it worked.

If your build fails on the first push for some reason, then heroku doesn't automatically give you a web process, and the 'Record not found' error might've cropped up because something was off with the build at that point.

like image 32
fangsterr Avatar answered Oct 17 '22 03:10

fangsterr