Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error H14 (No web processes running) deploy on Heroku

Tags:

heroku

cloud

I try to create simple java App on Heroku. I following step by step from http://samuelsharaf.wordpress.com/2011/11/06/create-a-simple-java-web-app-using-maven-and-upload-to-heroku/ to do it.

But when i try to deploy my app on heroku project i got error message like bellow when i try to view log

$ heroku logs -t
2012-07-10T02:15:14+00:00 heroku[slugc]: Slug compilation started
2012-07-10T02:15:27+00:00 heroku[api]: Add shared-database:5mb add-on by [email protected]
2012-07-10T02:15:27+00:00 heroku[api]: Release v2 created by [email protected]
2012-07-10T02:15:27+00:00 heroku[api]: Add MAVEN_OPTS, PATH, JAVA_OPTS config by [email protected]
2012-07-10T02:15:27+00:00 heroku[api]: Release v3 created by [email protected]
2012-07-10T02:15:28+00:00 heroku[api]: Release v4 created by [email protected]
2012-07-10T02:15:28+00:00 heroku[api]: Deploy cb1cfa2 by [email protected]
2012-07-10T02:15:28+00:00 heroku[web.1]: State changed from starting to down
2012-07-10T02:15:28+00:00 heroku[slugc]: Slug compilation finished
2012-07-10T02:16:51+00:00 heroku[router]: Error H14 (No web processes running) -> GET fierce-ocean-9944.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=

This is my url on heroku :

http://fierce-ocean-9944.herokuapp.com/

What that error ?

How to solve this ?

Thanks

like image 735
troya_adromeda Avatar asked Jul 10 '12 02:07

troya_adromeda


3 Answers

You need to remove your ProcFile and add again

git rm ProcFile –f   

Again add the ProcFile to project

  1. Check the spellings
  2. Content structure of the ProcFile
  3. ProcFile should not contain any extensions.

After that do the normal git procedure,

  git add . 
    
    git commit –m “add procfile” 
    
    git push heroku master 
 

You will see,

Procfile declares types -> web

Instead of

Procfile declares types -> (none)

like image 136
Mohamed Ziham Avatar answered Oct 27 '22 01:10

Mohamed Ziham


I kept running into the same problem. The sample python application ran fine, but mine did not. I logged into the dashboard and noticed that the web dyno count for my app showed zero. So I bumped it up on the web gui (i.e., strech the slider widget until you get a non-zero count.) and that worked. My dashboard also showed the heroku ps:scale web=1 dyno at zero, and I left it as zero.

like image 23
DeepSys9 Avatar answered Oct 27 '22 01:10

DeepSys9


Have you tried scaling one of your process types? e.g. heroku ps:scale web=1

Or rather, check what's your current web count by using 'heroku ps' See https://devcenter.heroku.com/articles/scaling

like image 33
Jon Mountjoy Avatar answered Oct 27 '22 00:10

Jon Mountjoy