Application Error when deploying Strapi to Heroku, but succcessful build? - node.js

I'm really new to Strapi followed this tutorial to deploy it using MongoDB and Heroku. The Strapi app successfully deployed to Heroku, but when I opened it, it says
"Application 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."
Here's the build log:
-----> Building on the Heroku-20 stack
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
USE_YARN_CACHE=true
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
engines.yarn (package.json): unspecified (use default)
Resolving node version 14.x...
Downloading and installing node 14.15.5...
Using default npm version: 6.14.11
Resolving yarn version 1.22.x...
Downloading and installing yarn (1.22.10)
Installed yarn 1.22.10
! node_modules checked into source control
https://devcenter.heroku.com/articles/node-best-practices#only-git-the-important-bits
-----> Installing dependencies
Installing node modules (yarn.lock)
yarn install v1.22.10
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > strapi-provider-upload-cloudinary#3.5.0" has unmet peer dependency "strapi-plugin-upload#^3.1.6".
[4/4] Building fresh packages...
Done in 6.43s.
-----> Build
-----> Pruning devDependencies
yarn install v1.22.10
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > strapi-provider-upload-cloudinary#3.5.0" has unmet peer dependency "strapi-plugin-upload#^3.1.6".
[4/4] Building fresh packages...
warning Ignored scripts due to flag.
Done in 0.72s.
-----> Caching build
- yarn cache
-----> Build succeeded!
! This app may not specify any way to start a node process
https://devcenter.heroku.com/articles/nodejs-support#default-web-process-type
! Unmet dependencies don't fail yarn install but may cause runtime issues
https://github.com/npm/npm/issues/7494
-----> Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 34.8M
-----> Launching...
Released v10
https://we-the-genesis-strapi.herokuapp.com/ deployed to Heroku
Here's the output of heroku logs:
2021-02-21T06:22:05.341700+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-21T06:22:50.951762+00:00 app[api]: Rollback to v10 by user merinetan#gmail.com
2021-02-21T06:22:50.951762+00:00 app[api]: Release v13 created by user merinetan#gmail.com
2021-02-21T06:22:52.245919+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T06:22:54.607923+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-21T06:22:56.386071+00:00 app[web.1]: npm ERR! missing script: start
2021-02-21T06:22:56.394175+00:00 app[web.1]:
2021-02-21T06:22:56.394498+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-21T06:22:56.394653+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-21T06_22_56_386Z-debug.log
2021-02-21T06:22:56.442808+00:00 heroku[web.1]: Process exited with status 1
2021-02-21T06:22:56.495544+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-21T06:25:45.223881+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=we-the-genesis-strapi.herokuapp.com request_id=3ed63d3e-e250-4626-b783-02203af73712 fwd="3.80.167.121" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:26:05.476448+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=HEAD path="/" host=we-the-genesis-strapi.herokuapp.com request_id=78bb4932-55ce-49aa-b9ad-11ff1e09a70f fwd="217.182.175.162" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:28:23.814694+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/robots.txt" host=we-the-genesis-strapi.herokuapp.com request_id=9a3d44c0-03f4-4b27-9f43-f61c232ad732 fwd="107.23.45.127" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:28:24.092182+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=we-the-genesis-strapi.herokuapp.com request_id=8a12e8ff-6d68-4265-96f7-69a8696c25a7 fwd="107.23.45.127" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:30:18.240690+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=we-the-genesis-strapi.herokuapp.com request_id=a2033709-b957-4be0-ab71-c6b987bbf3ab fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:30:24.317897+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=we-the-genesis-strapi.herokuapp.com request_id=f4ab55e4-9e7c-4a29-8117-9cbdb53fc20e fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:35:39.745213+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T06:35:42.237997+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-21T06:35:44.215838+00:00 app[web.1]: npm ERR! missing script: start
2021-02-21T06:35:44.221068+00:00 app[web.1]:
2021-02-21T06:35:44.221326+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-21T06:35:44.221405+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-21T06_35_44_216Z-debug.log
2021-02-21T06:35:44.270848+00:00 heroku[web.1]: Process exited with status 1
2021-02-21T06:35:44.328081+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-21T06:36:24.094434+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=we-the-genesis-strapi.herokuapp.com request_id=3c048bbc-721a-4b96-bd5c-15eaab20b7d1 fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:36:25.661453+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=we-the-genesis-strapi.herokuapp.com request_id=870ef876-31f7-4e52-9b25-c9ec0c4d6cb8 fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:36:29.413655+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=we-the-genesis-strapi.herokuapp.com request_id=249b6bdb-6d8d-4890-b6e0-ad6aa7555578 fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:36:29.981010+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=we-the-genesis-strapi.herokuapp.com request_id=8fd73cd3-b900-42a0-b28c-d5a940c2ef06 fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:48:56.447385+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=we-the-genesis-strapi.herokuapp.com request_id=d581c5b1-da4a-455b-8b3b-527494420dad fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T06:48:58.252921+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=we-the-genesis-strapi.herokuapp.com request_id=8e7c0f9a-d11e-4542-aff0-c466f61300ce fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T07:00:03.313920+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T07:00:06.449360+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-21T07:00:09.380555+00:00 app[web.1]: npm ERR! missing script: start
2021-02-21T07:00:09.385558+00:00 app[web.1]:
2021-02-21T07:00:09.385832+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-21T07:00:09.385944+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-21T07_00_09_381Z-debug.log
2021-02-21T07:00:09.471304+00:00 heroku[web.1]: Process exited with status 1
2021-02-21T07:00:09.542349+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-21T07:50:27.036632+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=we-the-genesis-strapi.herokuapp.com request_id=07fdd52d-a5da-41ba-aa04-f9709c15c1cd fwd="193.27.12.68" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T07:55:10.471814+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T07:55:13.315292+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-21T07:55:15.630158+00:00 app[web.1]: npm ERR! missing script: start
2021-02-21T07:55:15.639782+00:00 app[web.1]:
2021-02-21T07:55:15.640206+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-21T07:55:15.640407+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-21T07_55_15_631Z-debug.log
2021-02-21T07:55:15.691414+00:00 heroku[web.1]: Process exited with status 1
2021-02-21T07:55:15.759805+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-21T07:56:03.843654+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T09:38:30.628336+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T09:38:33.486003+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-21T09:38:37.077175+00:00 app[web.1]: npm ERR! missing script: start
2021-02-21T09:38:37.083975+00:00 app[web.1]:
2021-02-21T09:38:37.084256+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-21T09:38:37.084355+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-21T09_38_37_077Z-debug.log
2021-02-21T09:38:37.151682+00:00 heroku[web.1]: Process exited with status 1
2021-02-21T09:38:37.210620+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-21T10:02:04.794170+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=HEAD path="/" host=we-the-genesis-strapi.herokuapp.com request_id=8d7e9a50-825d-4ace-9433-2a0e1aecd135 fwd="217.182.175.162" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T12:23:54.511630+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T12:23:58.090780+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-21T12:24:01.254908+00:00 app[web.1]: npm ERR! missing script: start
2021-02-21T12:24:01.263262+00:00 app[web.1]:
2021-02-21T12:24:01.263926+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-21T12:24:01.264231+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-21T12_24_01_255Z-debug.log
2021-02-21T12:24:01.315068+00:00 heroku[web.1]: Process exited with status 1
2021-02-21T12:24:01.404682+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-21T12:53:08.465603+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=we-the-genesis-strapi.herokuapp.com request_id=5b79c5f7-0c59-4e42-ad30-95828185385b fwd="182.253.245.120" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T12:53:10.017483+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=we-the-genesis-strapi.herokuapp.com request_id=e0d2774b-915a-41e1-b54b-1b13f8af4991 fwd="182.253.245.120" dyno= connect= service= status=503 bytes= protocol=https
2021-02-21T17:49:02.615126+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T17:49:05.568155+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-21T17:49:08.048349+00:00 app[web.1]: npm ERR! missing script: start
2021-02-21T17:49:08.055280+00:00 app[web.1]:
2021-02-21T17:49:08.055495+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-21T17:49:08.055581+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-21T17_49_08_049Z-debug.log
2021-02-21T17:49:08.101618+00:00 heroku[web.1]: Process exited with status 1
2021-02-21T17:49:08.181685+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-21T23:41:17.655463+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-21T23:41:20.342548+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-21T23:41:22.677531+00:00 app[web.1]: npm ERR! missing script: start
2021-02-21T23:41:22.685929+00:00 app[web.1]:
2021-02-21T23:41:22.686316+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-21T23:41:22.686514+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-21T23_41_22_678Z-debug.log
2021-02-21T23:41:22.747850+00:00 heroku[web.1]: Process exited with status 1
2021-02-21T23:41:22.811171+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-22T05:33:36.567171+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-22T05:33:38.989078+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-22T05:33:41.308054+00:00 app[web.1]: npm ERR! missing script: start
2021-02-22T05:33:41.315909+00:00 app[web.1]:
2021-02-22T05:33:41.316276+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-22T05:33:41.316446+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-22T05_33_41_308Z-debug.log
2021-02-22T05:33:41.360219+00:00 heroku[web.1]: Process exited with status 1
2021-02-22T05:33:41.409789+00:00 heroku[web.1]: State changed from starting to crashed
2021-02-22T11:25:55.927138+00:00 heroku[web.1]: State changed from crashed to starting
2021-02-22T11:25:58.546244+00:00 heroku[web.1]: Starting process with command `npm start`
2021-02-22T11:26:00.817024+00:00 app[web.1]: npm ERR! missing script: start
2021-02-22T11:26:00.825946+00:00 app[web.1]:
2021-02-22T11:26:00.826186+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-02-22T11:26:00.826277+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-02-22T11_26_00_817Z-debug.log
2021-02-22T11:26:00.864484+00:00 heroku[web.1]: Process exited with status 1
2021-02-22T11:26:00.927770+00:00 heroku[web.1]: State changed from starting to crashed
Thanks!

Related

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"

Application Error - Problem Heroku commit

I am Trying to commit my Node App to Heroku and i Get Heroku Application Error.
Can someone help me please .
I followed A video from Youtube to Upload the project.
1. git push heroku master Everything up-to-date
2. heroku open Opening https://lintim3.herokuapp.com/
3. heroku restart Restartin processes... done
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
heroku logs --tail
2021-01-22T23:42:13.269418+00:00 app[web.1]:enter code here npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-01-22T23:42:13.276924+00:00 app[web.1]:
2021-01-22T23:42:13.277129+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-01-22T23:42:13.277280+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-01-22T23_42_13_271Z-debug.log
2021-01-22T23:42:13.324388+00:00 heroku[web.1]: Process exited with status 1
2021-01-22T23:42:13.360547+00:00 heroku[web.1]: State changed from starting to crashed
2021-01-22T23:42:13.364076+00:00 heroku[web.1]: State changed from crashed to starting
2021-01-22T23:42:18.774281+00:00 heroku[web.1]: Starting process with command `npm start`
2021-01-22T23:42:22.272989+00:00 app[web.1]:
2021-01-22T23:42:22.273002+00:00 app[web.1]: > chat#1.0.0 start /app
2021-01-22T23:42:22.273003+00:00 app[web.1]: > npm run start-production-server
2021-01-22T23:42:22.273003+00:00 app[web.1]:
2021-01-22T23:42:23.069256+00:00 app[web.1]:
2021-01-22T23:42:23.069268+00:00 app[web.1]: > chat#1.0.0 start-production-server /app
2021-01-22T23:42:23.069269+00:00 app[web.1]: > pm2 start server/server.js --name dev.socialmedia --watch
2021-01-22T23:42:23.069270+00:00 app[web.1]:
2021-01-22T23:42:23.094232+00:00 app[web.1]: sh: 1: pm2: not found
2021-01-22T23:42:23.109410+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-01-22T23:42:23.110342+00:00 app[web.1]: npm ERR! syscall spawn
2021-01-22T23:42:23.110846+00:00 app[web.1]: npm ERR! file sh
2021-01-22T23:42:23.111312+00:00 app[web.1]: npm ERR! errno ENOENT
2021-01-22T23:42:23.121190+00:00 app[web.1]: npm ERR! chat#1.0.0 start-production-server: `pm2 start server/server.js --name dev.socialmedia --watch`
2021-01-22T23:42:23.121435+00:00 app[web.1]: npm ERR! spawn ENOENT
2021-01-22T23:42:23.121699+00:00 app[web.1]: npm ERR!
2021-01-22T23:42:23.121960+00:00 app[web.1]: npm ERR! Failed at the chat#1.0.0 start-production-server script.
2021-01-22T23:42:23.122190+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-01-22T23:42:23.145479+00:00 app[web.1]:
2021-01-22T23:42:23.145951+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-01-22T23:42:23.146271+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-01-22T23_42_23_123Z-debug.log
2021-01-22T23:42:23.171905+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-01-22T23:42:23.172569+00:00 app[web.1]: npm ERR! errno 1
2021-01-22T23:42:23.186798+00:00 app[web.1]: npm ERR! chat#1.0.0 start: `npm run start-production-server`
2021-01-22T23:42:23.187154+00:00 app[web.1]: npm ERR! Exit status 1
2021-01-22T23:42:23.187537+00:00 app[web.1]: npm ERR!
2021-01-22T23:42:23.187866+00:00 app[web.1]: npm ERR! Failed at the chat#1.0.0 start script.
2021-01-22T23:42:23.188184+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-01-22T23:42:23.199918+00:00 app[web.1]:
2021-01-22T23:42:23.200385+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-01-22T23:42:23.200698+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-01-22T23_42_23_189Z-debug.log
2021-01-22T23:42:23.273146+00:00 heroku[web.1]: Process exited with status 1
2021-01-22T23:42:23.326833+00:00 heroku[web.1]: State changed from starting to crashed
2021-01-22T23:43:47.358906+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=b56b6f67-f15f-47d3-86d2-29ce4196b3b1 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:43:47.734588+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lintim3.herokuapp.com request_id=533374ab-75af-440c-90af-d8bba074a8e0 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:48:23.802056+00:00 heroku[web.1]: State changed from crashed to starting
2021-01-22T23:48:28.564574+00:00 heroku[web.1]: Starting process with command `npm start`
2021-01-22T23:48:32.180506+00:00 app[web.1]:
2021-01-22T23:48:32.180530+00:00 app[web.1]: > chat#1.0.0 start /app
2021-01-22T23:48:32.180530+00:00 app[web.1]: > npm run start-production-server
2021-01-22T23:48:32.180531+00:00 app[web.1]:
2021-01-22T23:48:32.872563+00:00 app[web.1]:
2021-01-22T23:48:32.872622+00:00 app[web.1]: > chat#1.0.0 start-production-server /app
2021-01-22T23:48:32.872623+00:00 app[web.1]: > pm2 start server/server.js --name dev.socialmedia --watch
2021-01-22T23:48:32.872623+00:00 app[web.1]:
2021-01-22T23:48:32.887354+00:00 app[web.1]: sh: 1: pm2: not found
2021-01-22T23:48:32.901575+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-01-22T23:48:32.902212+00:00 app[web.1]: npm ERR! syscall spawn
2021-01-22T23:48:32.902768+00:00 app[web.1]: npm ERR! file sh
2021-01-22T23:48:32.903476+00:00 app[web.1]: npm ERR! errno ENOENT
2021-01-22T23:48:32.914065+00:00 app[web.1]: npm ERR! chat#1.0.0 start-production-server: `pm2 start server/server.js --name dev.socialmedia --watch`
2021-01-22T23:48:32.914366+00:00 app[web.1]: npm ERR! spawn ENOENT
2021-01-22T23:48:32.914929+00:00 app[web.1]: npm ERR!
2021-01-22T23:48:32.915288+00:00 app[web.1]: npm ERR! Failed at the chat#1.0.0 start-production-server script.
2021-01-22T23:48:32.915595+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-01-22T23:48:32.930361+00:00 app[web.1]:
2021-01-22T23:48:32.937000+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-01-22T23:48:32.937307+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-01-22T23_48_32_917Z-debug.log
2021-01-22T23:48:32.958379+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-01-22T23:48:32.959887+00:00 app[web.1]: npm ERR! errno 1
2021-01-22T23:48:32.974082+00:00 app[web.1]: npm ERR! chat#1.0.0 start: `npm run start-production-server`
2021-01-22T23:48:32.974422+00:00 app[web.1]: npm ERR! Exit status 1
2021-01-22T23:48:32.974789+00:00 app[web.1]: npm ERR!
2021-01-22T23:48:32.975090+00:00 app[web.1]: npm ERR! Failed at the chat#1.0.0 start script.
2021-01-22T23:48:32.975361+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-01-22T23:48:32.983706+00:00 app[web.1]:
2021-01-22T23:48:32.984907+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-01-22T23:48:32.985218+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-01-22T23_48_32_976Z-debug.log
2021-01-22T23:48:33.089845+00:00 heroku[web.1]: Process exited with status 1
2021-01-22T23:48:33.163248+00:00 heroku[web.1]: State changed from starting to crashed
2021-01-22T23:48:33.638614+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=b9ac3901-5fcb-40f2-8420-0464e8e30f34 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:48:33.799962+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=44c43e53-8f8e-4d66-9dcf-44146fc9a18e fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:48:33.961000+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=8fe5133f-cd5d-4ec9-ae82-52fd9f539261 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:48:34.215805+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lintim3.herokuapp.com request_id=604136f0-82cd-40fa-bdc4-ce8df0892566 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:48:34.287166+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=f9e35331-4d75-4a54-9cf8-774562d3b2d9 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:48:35.456617+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=e4f3e1c9-d207-47b9-b20b-214afdb7da1a fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:48:35.692999+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lintim3.herokuapp.com request_id=c2e27ca4-4f29-4e09-9555-7a86f522813c fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:24.202241+00:00 app[api]: Starting process with command `rake db:migrate` by user hasanovh14#gmail.com
2021-01-22T23:49:28.884962+00:00 heroku[run.5646]: State changed from starting to up
2021-01-22T23:49:29.050982+00:00 heroku[run.5646]: Awaiting client
2021-01-22T23:49:29.077371+00:00 heroku[run.5646]: Starting process with command `rake db:migrate`
2021-01-22T23:49:33.675679+00:00 heroku[run.5646]: Process exited with status 1
2021-01-22T23:49:33.716695+00:00 heroku[run.5646]: State changed from up to complete
2021-01-22T23:49:38.564580+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=b0978990-9f86-48f2-8107-57a54c40d4ce fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:38.830155+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lintim3.herokuapp.com request_id=ba0f42ae-9c27-4936-b2e1-6aca48b4534f fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:39.371118+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=e35012bf-3184-4b99-a567-b5567fc49564 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:39.569871+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=06bb424f-9cd9-4714-a783-ba328919b7a7 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:39.723090+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=a5809903-11a3-40de-858b-dedf2ffee4d3 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:39.930554+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lintim3.herokuapp.com request_id=62aaa41d-93a2-4c1c-a9c0-5a608731e36d fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:40.664719+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=c289b0c2-a25e-4948-896a-96466fb8c671 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:40.869988+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lintim3.herokuapp.com request_id=bc80d13b-6b38-4cb8-a4a9-4e35076c255b fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T23:49:41.062316+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lintim3.herokuapp.com request_id=9ea30fe3-095e-4f81-9643-296205110521 fwd="84.165.174.74" dyno= connect= service= status=503 bytes= protocol=https
on localhost ist working Perfectly

My JS app on Heroku gets deployed but the application shows error in the server side build

I deployed a Heroku app using the CLI. The code is based in JS(Node).
The log displayed the following message-
2020-11-19T18:13:19.981359+00:00 heroku[web.1]: State changed from crashed to starting
2020-11-19T18:13:32.577655+00:00 heroku[web.1]: Starting process with command `npm start`
2020-11-19T18:13:35.931851+00:00 app[web.1]:
2020-11-19T18:13:35.931868+00:00 app[web.1]: > server#1.0.0 start /app
2020-11-19T18:13:35.931868+00:00 app[web.1]: > concurrently "npm run server" "npm run client"
2020-11-19T18:13:35.931869+00:00 app[web.1]:
2020-11-19T18:13:35.941884+00:00 app[web.1]: sh: 1: concurrently: not found
2020-11-19T18:13:35.951483+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-11-19T18:13:35.951777+00:00 app[web.1]: npm ERR! syscall spawn
2020-11-19T18:13:35.952007+00:00 app[web.1]: npm ERR! file sh
2020-11-19T18:13:35.952258+00:00 app[web.1]: npm ERR! errno ENOENT
2020-11-19T18:13:35.957255+00:00 app[web.1]: npm ERR! server#1.0.0 start: `concurrently "npm run server" "npm run client"`
2020-11-19T18:13:35.957411+00:00 app[web.1]: npm ERR! spawn ENOENT
2020-11-19T18:13:35.957579+00:00 app[web.1]: npm ERR!
2020-11-19T18:13:35.957727+00:00 app[web.1]: npm ERR! Failed at the server#1.0.0 start script.
2020-11-19T18:13:35.957859+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-11-19T18:13:35.968472+00:00 app[web.1]:
2020-11-19T18:13:35.968693+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-11-19T18:13:35.968767+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-11-19T18_13_35_958Z-debug.log
2020-11-19T18:13:36.042215+00:00 heroku[web.1]: Process exited with status 1
2020-11-19T18:13:36.100527+00:00 heroku[web.1]: State changed from starting to crashed
2020-11-19T18:41:07.000000+00:00 app[api]: Build started by user riteshkumarstudy#gmail.com
2020-11-19T18:41:43.985964+00:00 app[api]: Deploy 1581c630 by user riteshkumarstudy#gmail.com
2020-11-19T18:41:43.985964+00:00 app[api]: Release v4 created by user riteshkumarstudy#gmail.com
ll be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
2020-11-19T18:42:59.987409+00:00 app[web.1]: Server listening on port 3001
2020-11-19T18:43:00.110366+00:00 app[web.1]: (node:4) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
2020-11-19T18:43:16.984202+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=pacific-scrubland-58982.herokuapp.com request_id=e41c2163-819d-4d95-a87a-48e84acfd06e fwd="223.225.248.157" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T18:43:55.839112+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2020-11-19T18:43:55.866993+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-11-19T18:43:56.004273+00:00 heroku[web.1]: Process exited with status 137
2020-11-19T18:43:56.057821+00:00 heroku[web.1]: State changed from starting to crashed
2020-11-19T18:43:56.610979+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pacific-scrubland-58982.herokuapp.com request_id=f941b09d-91ae-4ddb-87c1-96a66d8c8912 fwd="223.225.248.157" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T18:43:57.136454+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pacific-scrubland-58982.herokuapp.com request_id=be1491ea-8d01-4b37-9902-6e93678ba0b6 fwd="223.225.248.157" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T18:43:58.163525+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pacific-scrubland-58982.herokuapp.com request_id=c304480a-ca92-4bf0-9ef2-837931f38d55 fwd="223.225.248.157" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T18:43:58.312956+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=pacific-scrubland-58982.herokuapp.com request_id=7334f985-397f-4f3e-b667-99fd19831635 fwd="223.225.248.157" dyno= connect= service= status=503 bytes= protocol=https
The link to the repo is https://github.com/CSAIDept/Final-Combined-Pages
Need help on what to do next?
I used the https://github.com/mars/create-react-app-buildpack to deploy this app.
You installed concurrently as a dev dependency, Heroku will not install devDependency. Try adding concurrently to normal dependency in package.json and try again

Heroku log errors

Trying to deploy Node.js app on heroku but getting following errors. Can anyone help me with where am I going wrong.
2018-06-29T00:01:21.641247+00:00 app[web.1]: npm ERR!
2018-06-29T00:01:21.641578+00:00 app[web.1]: npm ERR! Failed at the v1#1.0.0 start script.
2018-06-29T00:01:21.641895+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging
output above.
2018-06-29T00:01:21.660378+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2018-06-29T00:01:21.659090+00:00 app[web.1]:
2018-06-29T00:01:21.660779+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2018-06-29T00_01_21_645Z-debug.log
2018-06-29T00:01:21.758849+00:00 heroku[web.1]: State changed from starting to crashed
2018-06-29T00:01:21.736544+00:00 heroku[web.1]: Process exited with status 1
2018-06-29T00:01:22.688914+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=campground-.herokuapp.com
request_id=7b46f802-439e-4038-85f4-882fbd765417 fwd="139.94.66.0"
dyno= connect= service= status=503 bytes= protocol=https
2018-06-29T00:01:23.464401+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico"
host=campground-.herokuapp.com
request_id=fe27806a-8390-431f-ba14-233625c388cf fwd="139.94.66.0"
dyno= connect= service= status=503 bytes= protocol=https
2018-06-29T00:09:27.204098+00:00 heroku[web.1]: State changed from crashed to starting
2018-06-29T00:09:32.209782+00:00 heroku[web.1]: Starting process with command npm start
2018-06-29T00:09:35.411423+00:00 app[web.1]:
2018-06-29T00:09:35.411450+00:00 app[web.1]: > v1#1.0.0 start /app
2018-06-29T00:09:35.411452+00:00 app[web.1]: > node app.js
2018-06-29T00:09:35.411454+00:00 app[web.1]:
enter image description here

Running Heroku through Terminal without success

I am trying to run through Terminal an app that I created on Heroku and I pushed my code to Heroku but when try to run in and my browser is up I get this 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."
In the Heroku logs I get this :
2016-04-16T08:06:37.028300+00:00 heroku[api]: Enable Logplex by tommyahav#gmail.com
2016-04-16T08:06:37.028300+00:00 heroku[api]: Release v2 created by tommyahav#gmail.com
2016-04-16T08:11:17.934258+00:00 heroku[api]: Scale to web=1 by tommyahav#gmail.com
2016-04-16T08:11:17.998349+00:00 heroku[api]: Deploy d49f451 by tommyahav#gmail.com
2016-04-16T08:11:17.998349+00:00 heroku[api]: Release v3 created by tommyahav#gmail.com
2016-04-16T08:11:18.444546+00:00 heroku[slug-compiler]: Slug compilation started
2016-04-16T08:11:18.444556+00:00 heroku[slug-compiler]: Slug compilation finished
2016-04-16T08:11:20.996842+00:00 heroku[web.1]: Starting process with command `npm start`
2016-04-16T08:11:24.058359+00:00 app[web.1]: npm ERR! Linux 3.13.0-79-generic
2016-04-16T08:11:24.071525+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-04-16T08:11:24.075928+00:00 app[web.1]: npm ERR! node v5.10.0
2016-04-16T08:11:24.077165+00:00 app[web.1]: npm ERR! npm v3.8.3
2016-04-16T08:11:24.104687+00:00 app[web.1]: npm ERR! <https://github.com/npm/npm/issues>
2016-04-16T08:11:24.104275+00:00 app[web.1]: npm ERR! If you need help, you may report this error at:
2016-04-16T08:11:24.126366+00:00 app[web.1]:
2016-04-16T08:11:24.103431+00:00 app[web.1]: npm ERR! missing script: start
2016-04-16T08:11:24.126822+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-04-16T08:11:24.127038+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2016-04-16T08:11:24.094153+00:00 app[web.1]:
2016-04-16T08:11:24.104022+00:00 app[web.1]: npm ERR!
2016-04-16T08:11:25.136368+00:00 heroku[web.1]: Process exited with status 1
2016-04-16T08:11:25.157435+00:00 heroku[web.1]: State changed from crashed to starting
2016-04-16T08:11:25.156030+00:00 heroku[web.1]: State changed from starting to crashed
2016-04-16T08:11:26.642881+00:00 heroku[web.1]: Starting process with command `npm start`
2016-04-16T08:11:29.940545+00:00 app[web.1]: npm ERR! Linux 3.13.0-79-generic
2016-04-16T08:11:29.941387+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-04-16T08:11:29.941913+00:00 app[web.1]: npm ERR! node v5.10.0
2016-04-16T08:11:29.942627+00:00 app[web.1]: npm ERR! npm v3.8.3
2016-04-16T08:11:29.944449+00:00 app[web.1]:
2016-04-16T08:11:29.945912+00:00 app[web.1]: npm ERR! missing script: start
2016-04-16T08:11:29.946108+00:00 app[web.1]: npm ERR!
2016-04-16T08:11:29.946249+00:00 app[web.1]: npm ERR! If you need help, you may report this error at:
2016-04-16T08:11:29.946394+00:00 app[web.1]: npm ERR! <https://github.com/npm/npm/issues>
2016-04-16T08:11:29.979159+00:00 app[web.1]:
2016-04-16T08:11:29.979436+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-04-16T08:11:29.979573+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2016-04-16T08:11:31.099494+00:00 heroku[web.1]: Process exited with status 1
2016-04-16T08:11:31.111785+00:00 heroku[web.1]: State changed from starting to crashed
2016-04-16T08:11:41.679507+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=targil0.herokuapp.com request_id=b0e6c517-19bf-4fe9-b2ae-10a66a8531b7 fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:11:42.011245+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=targil0.herokuapp.com request_id=5d888504-10b6-494c-97ba-300363c40ea8 fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:12:33.276559+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=targil0.herokuapp.com request_id=a3bbb3d2-1b15-428f-8bc9-c084820d07b3 fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:12:33.719142+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=targil0.herokuapp.com request_id=80f9fca8-8edd-40f1-876e-fd0d7c4629e8 fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:12:34.583904+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=targil0.herokuapp.com request_id=f05e3322-020e-402a-abaf-3066b70f7524 fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:12:35.024463+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=targil0.herokuapp.com request_id=abe440c1-e342-42c3-be8e-66534a27b9ed fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:12:56.404658+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=targil0.herokuapp.com request_id=6fa70ad5-bf10-4eb0-b3c6-e449a90ffadf fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:12:56.750374+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=targil0.herokuapp.com request_id=c188c52c-6117-4bcf-878c-a85892230160 fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:13:44.397134+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=targil0.herokuapp.com request_id=9b61b821-4e3f-411f-89b0-2e8d50fdbc80 fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
2016-04-16T08:13:44.741220+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=targil0.herokuapp.com request_id=ff9b279c-6c23-4abc-bf9d-1b8f09964d5f fwd="79.183.166.1" dyno= connect= service= status=503 bytes=
Please help me and tell what I did wrong.
Thank you,
The important part is:
argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
missing script: start
Heroku is complaining it can't find the script you're telling it to launch.
Please print your Procfile, and scripts like index.js or package.json, depending on what your Procfile says.
If you didn't add a Procfile to your project root, then the default npm start is used, so you need a "scripts.start" property in the package.json file. So please print it :)
You may have a look at the Heroku guidelines (Getting started and Support) that deal with the Node deployment.

Resources