Hi, I have some problems: I tried to deploy a nodejs app on heroku, but when I try to open it, I get this error :
2017-06-08T16:08:43.221350+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=xmpp-discord.herokuapp.com request_id=6692a6c4-2563-474d-90e2-1657d83c7393 fwd="92.157.13.75" dyno= connect= service= status=503 bytes= protocol=https
2017-06-08T16:08:43.433802+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=xmpp-discord.herokuapp.com request_id=ab1f0f7d-4eed-4948-94e2-bb80fcd9887b fwd="92.157.13.75" dyno= connect= service= status=503 bytes= protocol=https
My app is a bridge between Discord and XMPP: here It's github base: Github but I ran it and setuped it, it does work in local but I want to run the program all day even if my PC isn't on.
What should or could I do?
If you need more infos tell me !
Thanks
It's right there in the logs "missing script 'start'". Either in your procfile or due to Heroku defaults your app is trying to launch using "npm start", but your package.json does not define a start script.
Either update your procfile to the correct start command or add to your package.json, in the "scripts" object something like: "start": "node server.js" or whatever command you normally use to start the app.
Related
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 :)
I'm running a React.js/Node.js application on heroku. I have been successfully deploying for a while but after changing the code base yesterday The build is successful and I get an application error. Specigically what I changed in the code base was switching back from SASS to CSS na dadding OAuth to my nodemailer functionality.
I have checked all the environment variables and my port is set to process.env.PORT || 8080
2020-04-23T18:00:39.000000+00:00 app[api]: Build started by user mlisonek98#gmail.com
2020-04-23T18:01:29.044301+00:00 heroku[web.1]: State changed from crashed to starting
2020-04-23T18:01:28.000000+00:00 app[api]: Build succeeded
2020-04-23T18:01:28.310226+00:00 app[api]: Release v109 created by user mlisonek98#gmail.com
2020-04-23T18:01:28.310226+00:00 app[api]: Deploy 8bb6c992 by user mlisonek98#gmail.com
2020-04-23T18:01:36.276828+00:00 app[web.1]:
2020-04-23T18:01:36.276853+00:00 app[web.1]: > badgrey#1.0.0 start /app
2020-04-23T18:01:36.276854+00:00 app[web.1]: > node server
2020-04-23T18:01:36.276854+00:00 app[web.1]:
2020-04-23T18:01:36.971835+00:00 app[web.1]:
2020-04-23T18:02:34.074965+00:00 heroku[web.1]: State changed from starting to crashed
2020-04-23T18:02:35.428955+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=badgrey-dev.herokuapp.com request_id=a08398b4-fa84-4b9c-9365-af9a5f357652 fwd="108.46.200.18" dyno= connect= service= status=503 bytes= protocol=https
2020-04-23T18:02:35.774613+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=badgrey-dev.herokuapp.com request_id=d6bea10e-304f-4b1b-be04-33815ffb6c26 fwd="108.46.200.18" dyno= connect= service= status=503 bytes= protocol=https
2020-04-23T18:02:37.499473+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=badgrey-dev.herokuapp.com request_id=405f4943-a154-47d4-8bb5-0699597e8649 fwd="108.46.200.18" dyno= connect= service= status=503 bytes= protocol=https
I get an h10 error, and there is no other information. This application is running on the heroku free tier. Any suggestions as to why this is happeneing? I would be glad to upoad more code but I'm not sure what I would, especially since everything works locally.
It was the node version, Node released version 14 yesterday or something.
I've been searching around on this one for a while and can't find anything that seems to be applicable in my situation. I've been staring at these logs and I can't see what the problem is.
I am trying to deploy my nodejs and react app to heroku but getting error again and again.
I have done heroku logs and I am getting these logs:
enter image description here
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.
My aim is to create a groupme bot using heroku and node.js https://github.com/whitec54/shouts-things
I'm pretty new to web development so maybe this is glaring but I can't seem to fix my heroku application error.
This is the message returned by the logs:
2016-07-26T01:44:52.756548+00:00 heroku[web.1]: State changed from crashed to starting
2016-07-26T01:44:53.848661+00:00 heroku[web.1]: Starting process with command `node routes/index.js`
2016-07-26T01:44:55.966222+00:00 heroku[web.1]: Process exited with status 0
2016-07-26T01:45:09.474760+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shouts-things.herokuapp.com request_id=19173085-e8ed-4a85-8cd9-90c96b7347f6 fwd="108.178.113.130" dyno= connect= service= status=503 bytes=
2016-07-26T01:45:08.701288+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shouts-things.herokuapp.com request_id=f29fef93-7530-4c1e-9724-73884694b457 fwd="108.178.113.130" dyno= connect= service= status=503 bytes=
this error is seems better than what I started with but I'm not sure where to go from here. In spite of the reading I've done my understanding of how Procfiles work in heroku is pretty weak.
In your Procfile it has mentioned to start routes/index.js which doesn't have any code to run the express server. You should be having this route registered on app.js and start app.js with node.
express-generator npm will help you get started with the basic scaffolding required for a nodejs project.