Heroku App on deployment gets a H10 & 503 error - node.js

So on deploying my app to Heroku, it has started crashing. Unfortunately the log doesn't help as there is no detail.
I have tried restarting the app & it doesn't help.
The env variables are entered
The builpack is set to heroku-nodejs
The above 3 are what I found on web. Thanks for all the help.
Here is the log from Heroku
2020-07-17T12:07:45.791581+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-07-17T12:07:45.791685+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-07-17T12_07_45_784Z-debug.log
2020-07-17T12:07:45.848851+00:00 heroku[web.1]: Process exited with status 1
2020-07-17T12:07:45.894326+00:00 heroku[web.1]: State changed from starting to crashed
2020-07-17T12:07:47.635979+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=marketool.herokuapp.com request_id=6af06835-645b-4427-b82d-1e77c46a3e98 fwd="42.106.46.78" dyno= connect= service= status=503 bytes= protocol=https
2020-07-17T12:07:49.538407+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=marketool.herokuapp.com request_id=48ff25a3-5b78-4ca6-80a0-d4d9bd170bf2 fwd="42.106.46.78" dyno= connect= service= status=503 bytes= protocol=https

Resolved this.
I had a wrong path for one of dependencies. Rectifying the right path is all that was needed.

Related

Heroku app successfully deploying, but receiving application error when loading site. I can't understand My logs

My logs don't indicate any errors as far as I can tell, but I'm receiving the following error when loading the site:
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.
Below you can find the Application logs. Am I missing something here?
2022-10-28T16:09:59.284170+00:00 app[web.1]: at Module.load (node:internal/modules/cjs/loader:1037:32)
2022-10-28T16:09:59.284170+00:00 app[web.1]: at Module._load (node:internal/modules/cjs/loader:878:12) {
2022-10-28T16:09:59.284171+00:00 app[web.1]: code: 'ERR_DLOPEN_FAILED'
2022-10-28T16:09:59.284171+00:00 app[web.1]: }
2022-10-28T16:09:59.284203+00:00 app[web.1]:
2022-10-28T16:09:59.284203+00:00 app[web.1]: Node.js v18.12.0
2022-10-28T16:09:59.421528+00:00 heroku[web.1]: Process exited with status 1
2022-10-28T16:09:59.509359+00:00 heroku[web.1]: State changed from starting to crashed
2022-10-28T16:10:00.273067+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fiyweb.herokuapp.com request_id=ab9544b4-78bf-4481-95d4-a807f843db13 fwd="175.107.224.190" dyno= connect= service= status=503 bytes= protocol=https
2022-10-28T16:10:01.890301+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fiyweb.herokuapp.com request_id=6b460d9b-f6da-46f0-87a1-dcd87919ea95 fwd="175.107.224.190" dyno= connect= service= status=503 bytes= protocol=https

Need help solving my Heroku Application Error

Below are the logs I got when running heroku logs --tail in my CLI and here is a link to my repo. https://github.com/Tyler-Washington888/Goals-App
2022-06-27T13:19:28.501914+00:00 heroku[web.1]: Process exited with status 1
2022-06-27T13:19:28.577209+00:00 heroku[web.1]: State changed from starting to crashed
2022-06-27T13:19:33.185957+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=goalapptyler.herokuapp.com request_id=73fab607-39fe-46d8-a556-9a0a632d901d fwd="73.0.250.131" dyno= connect= service= status=503 bytes= protocol=https
2022-06-27T13:19:34.087837+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=goalapptyler.herokuapp.com request_id=1a23b44a-cd55-4643-a624-cf5158a6f56b fwd="73.0.250.131" dyno= connect= service= status=503 bytes= protocol=https```

How do I resolve my deployment 'application error' on Heroku?

Someone suggested Heroku. I connected it to my github. After deploying it tells me application error see below:
"
Application Logs
2021-05-13T05:33:11.974735+00:00 heroku[web.1]: State changed from crashed to starting
2021-05-13T05:33:17.434161+00:00 heroku[web.1]: Starting process with command `npm start`
2021-05-13T05:33:21.152639+00:00 app[web.1]: npm ERR! missing script: start
2021-05-13T05:33:21.177166+00:00 app[web.1]:
2021-05-13T05:33:21.179883+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-05-13T05:33:21.183465+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-05-13T05_33_21_153Z-debug.log
2021-05-13T05:33:21.253969+00:00 heroku[web.1]: Process exited with status 1
2021-05-13T05:33:21.354019+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-13T05:33:22.611937+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intelhubdev.herokuapp.com request_id=56993659-8105-4f1a-b1a0-ff53a2c65ae2 fwd="197.210.45.44" dyno= connect= service= status=503 bytes= protocol=https
2021-05-13T05:33:23.853075+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=intelhubdev.herokuapp.com request_id=fbd4eed8-7477-4de3-b3a2-6438c536c470 fwd="197.210.45.44" dyno= connect= service= status=503 bytes= protocol=https"

why i get this error in Heroku nodejs hosting?

I have problems with heroku hosting idk what can i do. (the port probably correct: const PORT = process.env.PORT ||)
2020-09-07T20:45:20.640779+00:00 heroku[web.1]: State changed from crashed to starting
2020-09-07T20:45:20.304911+00:00 app[api]: Deploy d8237452 by user maurerkrisztian#gmail.com
2020-09-07T20:45:20.304911+00:00 app[api]: Release v7 created by user maurerkrisztian#gmail.com
2020-09-07T20:45:20.000000+00:00 app[api]: Build succeeded
2020-09-07T20:45:25.983410+00:00 heroku[web.1]: Starting process with command `npm start`
2020-09-07T20:45:28.650802+00:00 app[web.1]:
2020-09-07T20:45:28.650814+00:00 app[web.1]: > simple-rest-api#1.0.0 start /app
2020-09-07T20:45:28.650814+00:00 app[web.1]: > ts-node-dev app.ts
2020-09-07T20:45:28.650814+00:00 app[web.1]:
2020-09-07T20:45:29.326452+00:00 app[web.1]: ts-node-dev ver. 1.0.0-pre.58 (using ts-node ver. 8.10.2, typescript ver. 3.9.7)
2020-09-07T20:45:39.103732+00:00 app[web.1]: [ERROR] 20:45:39 Error: Cannot parse config file: '/app/config/production.json': SyntaxError: Unexpected end of JSON input
2020-09-07T20:46:26.541466+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2020-09-07T20:46:26.561313+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-09-07T20:46:26.665093+00:00 heroku[web.1]: Process exited with status 137
2020-09-07T20:46:26.718342+00:00 heroku[web.1]: State changed from starting to crashed
2020-09-07T20:46:28.765964+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/echo" host=anime-stream-api.herokuapp.com request_id=d2794c21-f597-44e0-86f8-d6df00c2fac1 fwd="84.236.68.164" dyno= connect= service= status=503 bytes= protocol=https
2020-09-07T20:46:30.035002+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=anime-stream-api.herokuapp.com request_id=2a36961c-812a-412c-acb3-13b01d962394 fwd="84.236.68.164" dyno= connect= service= status=503 bytes= protocol=https
2020-09-07T20:46:34.664255+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/echo" host=anime-stream-api.herokuapp.com request_id=1b02724a-887e-4881-8fde-2e025fc6ed1c fwd="84.236.68.164" dyno= connect= service= status=503 bytes= protocol=https
production.json probably has an error, check if it is a valid JSON code

How to fix H20 error when deploying app on Heroku?

My app works fine locally and I have deployed before in the past with success, for some reason it is no longer working.
The build is successful but when I access the app it states there is an error and directs me to the error log.
UPDATE: The app has come online by itself and working. Just today I did another deploy and same thing with the logs.
I've got an updated log report which may help with identifying the issue below:
2019-01-10T18:09:25.137016+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=extremeparts.happyfeed.io request_id=416dd308-07ef-431d-9f84-d11dd0ebb2a2 fwd="66.207.216.130" dyno= connect= service= status=503 bytes= protocol=http
2019-01-10T18:09:32.777385+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=extremeparts.happyfeed.io request_id=397e7c62-3274-4cdf-b26e-f00f2c99ee21 fwd="66.207.216.130" dyno= connect= service= status=503 bytes= protocol=http
2019-01-10T18:09:33.881452+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=extremeparts.happyfeed.io request_id=61e77c1f-1edb-4c68-becb-595a4aa5bcca fwd="66.207.216.130" dyno= connect= service= status=503 bytes= protocol=http
2019-01-10T18:10:41.103152+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=extremeparts.herokuapp.com request_id=ff3479ff-5b56-46a3-8714-66e6d9641569 fwd="66.207.216.130" dyno= connect= service= status=503 bytes= protocol=https
2019-01-10T18:10:46.334074+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=extremeparts.herokuapp.com request_id=2633d447-0f58-4f5d-951f-2f01360b7eb1 fwd="66.207.216.130" dyno= connect= service= status=503 bytes= protocol=https
2019-01-10T18:13:29.357357+00:00 heroku[web.1]: State changed from crashed to starting
2019-01-10T18:13:37.398825+00:00 heroku[web.1]: Starting process with command `npm start`
2019-01-10T18:13:40.904693+00:00 app[web.1]:
2019-01-10T18:13:40.904720+00:00 app[web.1]: > sms-funnel#1.0.0 start /app
2019-01-10T18:13:40.904722+00:00 app[web.1]: > nuxt build && nuxt start
2019-01-10T18:13:40.904723+00:00 app[web.1]:
2019-01-10T18:13:42.545513+00:00 app[web.1]:
2019-01-10T18:13:42.545554+00:00 app[web.1]: WARN vendor has been deprecated due to webpack4 optimization 18:13:42
2019-01-10T18:13:42.545556+00:00 app[web.1]:
2019-01-10T18:13:46.442346+00:00 app[web.1]: ℹ Compiling Client webpackbar 18:13:46
2019-01-10T18:14:23.738300+00:00 heroku[web.1]: Process running mem=667M(130.4%)
2019-01-10T18:14:23.738300+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2019-01-10T18:14:37.657497+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2019-01-10T18:14:37.657497+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-01-10T18:14:37.814331+00:00 heroku[web.1]: Process exited with status 137
2019-01-10T18:14:55.792511+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=extremeparts.herokuapp.com request_id=0fadedcd-d387-493a-bd0a-1b6463eb5ae1 fwd="66.207.216.130" dyno= connect= service= status=503 bytes= protocol=https
2019-01-10T18:15:02.902463+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=extremeparts.happyfeed.io request_id=6a9c86ee-1ae9-427f-bd2b-b088d04e6050 fwd="66.207.216.130" dyno= connect= service= status=503 bytes= protocol=http
2019-01-10T18:21:57.484369+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=extremeparts.happyfeed.io request_id=0bb304e5-744c-40fd-949d-516d15f9f244 fwd="66.207.216.130" dyno= connect= service= status=503 bytes= protocol=http

Resources