heroku deployment with code=H10 desc="App crashed" - node.js

i receive this error following after i deploy the nodejs server in heroku
2020-09-21T07:29:21.142276+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" ......
2020-09-21T07:29:21.697275+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" .......
I have added the engines{node,npm} in my package.json, and added MONGO_URI key in Config Vars in heroku dashboard since i use mongodv as my database. But i cannot open my website, it shows Application error.

Go to your Heroku CLI and deploy the application again. Sometimes, when an invalid or a loophole is accessed, the application crashes. So, I suggest you to find the problem, fix it and deploy it back again.

Related

Trying to deploy a mern stack (Node JS) application on heroku (Getting error H10)

I am just starting with the MERN stack and Node JS to create a simple website - I published the project to github and tried to deploy on Heroku, the deployment is succesfuel; however, when I view the website it tells me
An error occurred in the application and your page could not be
served. If you are the application owner, check your logs for details.
You can do this from the Heroku CLI with the command heroku logs
--tail
After I checked the Heroku CLI, I got the following error:
npm ERR! /app/.npm/_logs/2020-10-14T20_29_22_623Z-debug.log
2020-10-14T20:29:24.764157+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/" host=seer-team-12.herokuapp.com
request_id=58a4c5ca-5517-423f-a41f-c7d54985c778 fwd="122.58.167.129"
dyno= connect= service= status=503 bytes= protocol=https
2020-10-14T20:29:25.246802+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico"
host=seer-team-12.herokuapp.com
request_id=ba173afb-208e-4073-80f0-99f6029545e5 fwd="122.58.167.129"
dyno= connect= service= status=503 bytes= protocol=https
I tired many solutions - making sure the PORT is process.env.PORT - and tried to make sure the Procfile is fine.
That is the the github application:
https://github.com/mentalist302/SEER
Thank you in advance :)

Application error while opening URL for app deployed in Heroku

I have deployed my webpage on Heroku, with MongoAtlas for hosting database. The site has been deployed successfully, but on opening the URL it shows the following 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.
You can do this from the Heroku CLI with the command heroku logs
--tail
The logs show this
2020-06-10T10:31:25.558083+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-06-10T10:31:25.676299+00:00 heroku[web.1]: Process exited with status 137
2020-06-10T10:31:25.723593+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-11T04:42:15.117508+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=immense-harbor-74512.herokuapp.com request_id=cd4e6bba-2b33-447a-9b73-da66c77c4946 fwd=
"47.9.8.24" dyno= connect= service= status=503 bytes= protocol=https
2020-06-11T04:42:15.971379+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=immense-harbor-74512.herokuapp.com request_id=b5b1c208-bd9e-48b3-9c96-d8b79a
af9123 fwd="47.9.8.24" dyno= connect= service= status=503 bytes= protocol=https
2020-06-11T04:42:37.965020+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=immense-harbor-74512.herokuapp.com request_id=52f3dcab-4f12-41cd-96dd-12856fbfb240 fwd=
"47.9.8.24" dyno= connect= service= status=503 bytes= protocol=https
What is the problem and how to solve it

Error while deploying project in heroku with error code=H10 desc = "App crashed"

After trying to fix the below error for many days, I decided to post the error, hoping that someone can help me to figure it out.
Note: I added a link to my git repository as well.
Here is the error of my log:
2020-05-04T17:42:26.314508+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/"
host=cactus-restaurant.herokuapp.com
request_id=202dfecf-cfb0-4349-bd51-101b4f481ace fwd="91.139.187.213"
dyno= connect= service= status=503 bytes= protocol=https
github : https://github.com/Teodora321/Cactus-Restaurant

Heroku error code=H10

I keep getting error code=H10 randomly when I start my Heroku app. Sometimes the app starts, sometimes it doesn't.
My app is built with NodeJS, Express, MySQL and JawsDB.
Here's the details in my app's log:
2017-11-26T15:21:36.906937+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=<my app name>.herokuapp.com request_id=4c63d70d-f081-44a5-b4fe-f0992116ba79 fwd="108.28.184.177" dyno= connect= service= status=503 bytes= protocol=https
2017-11-26T15:21:36.954063+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=<my app name>.herokuapp.com request_id=e42d6293-512f-4ea1-ba35-403f44e4fd9a fwd="108.28.184.177" dyno= connect= service= status=503 bytes= protocol=https
I've looked online and added favicon.ico in my public folder. Nothing changes. I've had this problem before with my previous app and I ran heroku restart and it works for that one, but doesn't for this one.

Heroku deployment error: at=error code=H10 desc="App crashed"

I am trying to deploy my AngularJS Yeoman Generator-AngularFire Node Express app to Heroku. I am able to push to Heroku successfully as it shows
Fetching repository, done.
Everything up-to-date
when I git push heroku master
(Not completely sure if this means it is failsafe, tip to check another way would be much appreciated). When I run the command heroku open my web page shows
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
I ran the command heroku logs I get these errors:
2014-09-27T21:25:11.216896+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mayapp.herokuapp.com request_id=6921ca4b-13de-4194-858f-0132a0d36192 fwd="70.166.121.220" dyno= connect= service= status=503 bytes=
2014-09-27T21:25:11.712742+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=myapp.herokuapp.com request_id=6e6dde3a-ca2a-4650-95c0-c4ad68d7f597 fwd="70.166.121.220" dyno= connect= service= status=503 bytes=
Here are my routes in my routes.js
config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.when('/login', {
templateUrl: 'views/login.html',
controller: 'LoginCtrl'
})
.otherwise({redirectTo: '/'});
}])
How do I get passed this issue and successfully deploy?

Resources