Followed all the steps can't figure out how to get this done
Keep getting
bash: slc: command not found
Procfile
web: slc run
2015-03-26T02:43:13.998982+00:00 heroku[web.1]: State changed from
crashed to starting 2015-03-26T02:43:18.757072+00:00 heroku[web.1]:
Starting process with command slc run
2015-03-26T02:43:20.054559+00:00 app[web.1]: Detected 512 MB available
memory, 512 MB limit per process (WEB_MEMORY)
2015-03-26T02:43:20.054946+00:00 app[web.1]: bash: slc: command not
found 2015-03-26T02:43:20.054584+00:00 app[web.1]: Recommending
WEB_CONCURRENCY=1 2015-03-26T02:43:20.786104+00:00 heroku[web.1]:
Process exited with status 127 2015-03-26T02:43:20.807164+00:00
heroku[web.1]: State changed from starting to crashed
2015-03-26T02:44:16.130969+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/"
host=salty-journey-3310.herokuapp.com
request_id=48c6c94a-22d7-4c5e-9a6c-2384c5d37cdc fwd="216.165.95.72"
dyno= connect= service= status=503 bytes=
2015-03-26T02:44:50.716616+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/worker-signin"
host=salty-journey-3310.herokuapp.com
request_id=e12abfd7-4d0a-4869-93b3-5139f8d4e34c fwd="216.165.95.72"
dyno= connect= service= status=503 bytes=
2015-03-26T02:46:07.463936+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/client-signup"
host=salty-journey-3310.herokuapp.com
request_id=be1015fc-a9b4-4b46-b858-b59ed1702d60 fwd="216.165.95.72"
dyno= connect= service= status=503 bytes=
2015-03-26T02:48:38.323367+00:00 heroku[web.1]: State changed from
crashed to starting 2015-03-26T02:48:44.211997+00:00 heroku[web.1]:
Starting process with command slc run
2015-03-26T02:48:46.005432+00:00 app[web.1]: Detected 512 MB available
memory, 512 MB limit per process (WEB_MEMORY)
2015-03-26T02:48:46.005458+00:00 app[web.1]: Recommending
WEB_CONCURRENCY=1 2015-03-26T02:48:46.024208+00:00 app[web.1]: bash:
slc: command not found 2015-03-26T02:48:46.871183+00:00 heroku[web.1]:
Process exited with status 127 2015-03-26T02:48:46.882329+00:00
heroku[web.1]: State changed from starting to crashed
2015-03-26T02:55:07.351372+00:00 heroku[api]: Add strongloop:test
add-on by tejas.vj.bhatt#gmail.com 2015-03-26T02:55:07.351372+00:00
heroku[api]: Release v8 created by tejas.vj.bhatt#gmail.com
2015-03-26T02:55:07.460254+00:00 heroku[web.1]: State changed from
crashed to starting 2015-03-26T02:55:12.262442+00:00 heroku[web.1]:
Starting process with command slc run
2015-03-26T02:55:13.558424+00:00 app[web.1]: Detected 512 MB available
memory, 512 MB limit per process (WEB_MEMORY)
2015-03-26T02:55:13.558444+00:00 app[web.1]: Recommending
WEB_CONCURRENCY=1 2015-03-26T02:55:13.558648+00:00 app[web.1]: bash:
slc: command not found 2015-03-26T02:55:14.284209+00:00
heroku[web.1]: State changed from starting to crashed
2015-03-26T02:55:14.278656+00:00 heroku[web.1]: Process exited with
status 127 2015-03-26T02:57:35.737008+00:00 heroku[api]: Deploy
b6cac37 by tejas.vj.bhatt#gmail.com 2015-03-26T02:57:35.737008+00:00
heroku[api]: Release v9 created by tejas.vj.bhatt#gmail.com
2015-03-26T02:57:35.974640+00:00 heroku[web.1]: State changed from
crashed to starting 2015-03-26T02:57:41.438704+00:00 heroku[web.1]:
Starting process with command slc run
2015-03-26T02:57:42.881097+00:00 app[web.1]: Detected 512 MB available
memory, 512 MB limit per process (WEB_MEMORY)
2015-03-26T02:57:42.881117+00:00 app[web.1]: Recommending
WEB_CONCURRENCY=1 2015-03-26T02:57:42.881843+00:00 app[web.1]: bash:
slc: command not found 2015-03-26T02:57:43.606052+00:00 heroku[web.1]:
Process exited with status 127 2015-03-26T02:57:43.633805+00:00
heroku[web.1]: State changed from starting to crashed
2015-03-26T02:58:01.953397+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/"
host=salty-journey-3310.herokuapp.com
request_id=5b405b2b-3e81-4140-8ed6-205868383854 fwd="216.165.95.72"
dyno= connect= service= status=503 bytes=
I believe your best bet is to remove the buildpack and edit your Procfile to be web: node ..
Why? Strongloop-specific tooling is no longer being maintained since being purchased by IBM. Loopback itself is being maintained, and in fact the loopback-cli project specifically mentions that it "supersedes" strongloop's "older slc tool."
Note that loopback-cli should not be necessary to run the heroku server.
I think I saw this error when I didn't create the app with the strongloop buildpack. I'm assuming you're following the strongloop heroku article, did you get all the way through it?
I missed this step:
heroku apps:create --buildpack https://github.com/strongloop/strongloop-buildpacks.git
Related
I have a nodejs app that runs on heroku and works fine until it idles(because im on the free plan). After it idles when I try to wake the app up it logs: "App Crashed". This issue is fixed by restarting the app using the cli: heroku restart. However this is not a working solution for the end user. I am using deploy through github and webpack, which I mention because those are the only differences from my other heroku apps which unidle just fine. Is there a way to have the request unidle the app?
Here are the logs:
2022-06-30T17:13:21.294071+00:00 heroku[web.1]: Idling
2022-06-30T17:13:21.308560+00:00 heroku[web.1]: State changed from up to down
2022-06-30T17:13:22.877570+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2022-06-30T17:13:23.113129+00:00 heroku[web.1]: Process exited with status 143
2022-07-02T17:42:20.649030+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fwpsg.herokuapp.com request_id=1f058e06-12e9-4210-a9bc-097ebdce811d fwd="73.247.37.113"
dyno= connect= service= status=503 bytes= protocol=https
I've just deployed a new project to Heroku using Docker.
Unfortunately, my dyno is in a reboot cycle and hasn't come online yet. It continuously crashes with the following logs:
2021-01-07T09:49:55.706527+00:00 heroku[web.1]: Process exited with status 143
2021-01-07T09:51:44.917593+00:00 heroku[web.1]: Starting process with command `/bin/sh -c NODE_ENV\=production\ node\ ./dist/apps/server/main.js`
2021-01-07T09:51:45.800006+00:00 heroku[web.1]: State changed from starting to down
2021-01-07T09:51:45.802340+00:00 heroku[web.1]: State changed from down to starting
2021-01-07T09:51:54.256090+00:00 app[web.1]: Listening on :39134
2021-01-07T09:51:55.807447+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2021-01-07T09:51:56.049759+00:00 heroku[web.1]: Process exited with status 143
2021-01-07T09:52:09.979061+00:00 heroku[web.1]: Restarting
2021-01-07T09:53:18.197373+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=my-app.herokuapp.com request_id=a031ff96-2a06-46e0-85da-458f83430f0d fwd="49.178.36.98" dyno= connect= service= status=503 bytes= protocol=https
2021-01-07T09:53:33.346139+00:00 heroku[web.1]: Starting process with command `/bin/sh -c NODE_ENV\=production\ node\ ./dist/apps/server/main.js`
2021-01-07T09:53:39.162417+00:00 app[web.1]: Listening on :45111
2021-01-07T09:53:40.774891+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2021-01-07T09:53:40.887655+00:00 heroku[web.1]: Process exited with status 143
I've tried upgrading the dyno to Hobby, rebooted all dynos multiple times but nothing seems to fix it.
I am indeed listening on process.env.PORT.
I've got a server which I've developed on localhost, and I thought that Heroku would be a good stepping stone to going live. Unfortunately, I can't get it to work.
More specifically, I can get Heroku to build well enough, but it crashes as soon as I try to access my website.
Heroku logs are as follows:
2019-06-30T18:34:04.000000+00:00 app[api]: Build started by user tomdothosker#gmail.com
2019-06-30T18:34:24.381150+00:00 app[api]: Deploy 7f8cce5d by user tomdothosker#gmail.com
2019-06-30T18:34:24.381150+00:00 app[api]: Release v17 created by user tomdothosker#gmail.com
2019-06-30T18:34:25.000000+00:00 app[api]: Build succeeded
2019-06-30T18:34:25.695607+00:00 heroku[web.1]: Restarting
2019-06-30T18:34:26.034203+00:00 heroku[web.1]: State changed from up to starting
2019-06-30T18:34:26.966179+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2019-06-30T18:34:27.034914+00:00 heroku[web.1]: Process exited with status 143
2019-06-30T18:34:29.568812+00:00 heroku[web.1]: Starting process with command `npm start`
2019-06-30T18:34:32.418305+00:00 app[web.1]:
2019-06-30T18:34:32.418320+00:00 app[web.1]: > cyprus#1.0.0 start /app
2019-06-30T18:34:32.418324+00:00 app[web.1]: > node server.js
2019-06-30T18:34:32.418325+00:00 app[web.1]:
2019-06-30T18:34:33.279874+00:00 heroku[web.1]: State changed from starting to up
2019-06-30T18:34:32.889328+00:00 app[web.1]: Server running at https://localhost:59348/
2019-06-30T18:34:34.982611+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=kingdom-of-cyprus.herokuapp.com request_id=5f8137a5-c584-4b40-8089-58ba67f88de3 fwd="165.120.137.21" dyno=web.1 connect=0ms service=1ms status=503 bytes=0 protocol=https
2019-06-30T18:34:35.256350+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/favicon.ico" host=kingdom-of-cyprus.herokuapp.com request_id=6223ae91-d44d-4762-a9d9-971f923a5cc8 fwd="165.120.137.21" dyno=web.1 connect=2ms service=3ms status=503 bytes=0 protocol=https
From what I can tell from the logs, the site starts as it's supposed to, then crashes immediately. Which I know makes no sense. Any ideas what's going on here?
If it helps, server.js can be found here. The interesting stuff starts at around line 266.
I have a Node.js app which runs well locally, but when I deploy it on Heroku, it doesn't run.
I have deployed it from my Github repository.
Can some one try deploying the app from my repo and tell me what the cause of the problem is?
Git repository link-MyGallary
Logs:
2017-09-03T12:22:17.683830+00:00 heroku[web.1]: State changed from crashed to starting
2017-09-03T12:22:18.878329+00:00 heroku[web.1]: Starting process with command `: node run start`
2017-09-03T12:22:20.670131+00:00 heroku[web.1]: Process exited with status 0
2017-09-03T12:22:20.682348+00:00 heroku[web.1]: State changed from starting to crashed
2017-09-03T12:24:19.679927+00:00 heroku[web.1]: State changed from crashed to starting
2017-09-03T12:24:20.918678+00:00 heroku[web.1]: Starting process with command `: node run start`
2017-09-03T12:24:23.583966+00:00 heroku[web.1]: Process exited with status 0
2017-09-03T12:24:23.595826+00:00 heroku[web.1]: State changed from starting to crashed
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
2017-09-03T12:24:19.679927+00:00 heroku[web.1]: State changed from crashed to starting
2017-09-03T12:24:20.918678+00:00 heroku[web.1]: Starting process with command `: node run start`
2017-09-03T12:24:23.583966+00:00 heroku[web.1]: Process exited with status 0
2017-09-03T12:24:23.595826+00:00 heroku[web.1]: State changed from starting to crashed
2017-09-03T12:33:34.507063+00:00 heroku[web.1]: Process exited with status 0
2017-09-03T12:39:41.420058+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mygallary.herokuapp.com request_id=10a1d1e0-5b5f-45f7-b65c-efdb8d6e9b3f fwd="106.51.243.120" dyno= connect= service= status=503 bytes= protocol=https
2017-09-03T12:39:42.764416+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mygallary.herokuapp.com request_id=5ff09ee3-26d7-44a6-8556-f4e5d19a0ce5 fwd="106.51.243.120" dyno= connect= service= status=503 bytes= protocol=https
Thanks in advance.
Try typing "heroku logs" on your terminal and share the logs here.
EDIT:
It's "npm run start" or "node startfile.js" Ex: "node app.js"
(can type only app without .js)
I'm new to nodejs and trying to deploy a simple word game to heroku. i followed the instruction on heroku website and everyting works until the last command "heroku open" and it opens a web browser with the following message:
"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."
The heroku logs shows:
2016-08-04T18:56:36.552635+00:00 heroku[api]: Enable Logplex by teamsky916#gmail .com
2016-08-04T18:56:36.552635+00:00 heroku[api]: Release v2 created by teamsky916#g mail.com
2016-08-04T18:58:34.328360+00:00 heroku[router]: at=info code=H81 desc="Blank ap p" method=GET path="/" host=build-word-game.herokuapp.com request_id=f238942c-ef aa-4011-b505-7e5f062221a3 fwd="107.77.75.83" dyno= connect= service= status=502 bytes=
2016-08-04T18:58:35.171645+00:00 heroku[router]: at=info code=H81 desc="Blank ap p" method=GET path="/favicon.ico" host=build-word-game.herokuapp.com request_id= a02c27ef-865c-48e3-91cd-bd6e29ca51e3 fwd="107.77.75.83" dyno= connect= service= status=502 bytes=
2016-08-04T19:26:43.069903+00:00 heroku[api]: Scale to web=1 by teamsky916#gmail .com
2016-08-04T19:26:43.070467+00:00 heroku[api]: Deploy 4725c48 by teamsky916#gmail .com
2016-08-04T19:26:43.070552+00:00 heroku[api]: Release v3 created by teamsky916#g mail.com
2016-08-04T19:26:43.473784+00:00 heroku[slug-compiler]: Slug compilation finishe d
2016-08-04T19:26:43.473765+00:00 heroku[slug-compiler]: Slug compilation started
2016-08-04T19:26:45.915539+00:00 heroku[web.1]: Starting process with command `n ode server.js`
2016-08-04T19:26:50.481084+00:00 app[web.1]: listening to port 3000!
2016-08-04T19:27:46.488886+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-08-04T19:27:46.488886+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-08-04T19:27:46.631684+00:00 heroku[web.1]: Process exited with status 137
2016-08-04T19:27:46.618404+00:00 heroku[web.1]: State changed from starting to c rashed
2016-08-04T19:27:46.619564+00:00 heroku[web.1]: State changed from crashed to st arting
2016-08-04T19:27:48.599634+00:00 heroku[web.1]: Starting process with command `n ode server.js`
2016-08-04T19:27:51.304417+00:00 app[web.1]: listening to port 3000!
2016-08-04T19:28:48.755864+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-08-04T19:28:48.755938+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-08-04T19:28:48.879934+00:00 heroku[web.1]: Process exited with status 137
2016-08-04T19:28:48.893371+00:00 heroku[web.1]: State changed from starting to c rashed
2016-08-04T19:31:31.210359+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/" host=build-word-game.herokuapp.com request_id=e0536d30 -8590-453d-9a04-fb8a56eb6893 fwd="107.77.213.153" dyno= connect= service= status =503 bytes=
2016-08-04T19:31:32.552715+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/favicon.ico" host=build-word-game.herokuapp.com request_ id=89bfb417-9793-4687-b400-72cc34d16ea8 fwd="107.77.213.153" dyno= connect= serv ice= status=503 bytes=
2016-08-04T19:53:16.445270+00:00 heroku[web.1]: State changed from crashed to st arting
2016-08-04T19:53:18.025971+00:00 heroku[web.1]: Starting process with command `n ode server.js`
2016-08-04T19:53:19.981109+00:00 app[web.1]: listening to port 3000!
2016-08-04T19:54:18.509309+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-08-04T19:54:18.509204+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-08-04T19:54:18.601875+00:00 heroku[web.1]: Process exited with status 137
2016-08-04T19:54:18.606261+00:00 heroku[web.1]: State changed from starting to c rashed
2016-08-04T19:59:58.452903+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/" host=build-word-game.herokuapp.com request_id=450b80d9 -a366-4e0f-9426-ff89eac931fb fwd="107.77.213.153" dyno= connect= service= status =503 bytes=
2016-08-04T19:59:59.109794+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/favicon.ico" host=build-word-game.herokuapp.com request_ id=1eecc47a-5334-4a38-bd8d-093a9164ead5 fwd="107.77.213.153" dyno= connect= serv ice= status=503 bytes=
2016-08-04T20:01:28.744667+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/" host=build-word-game.herokuapp.com request_id=a2d52aea -d7fc-4f18-b023-50aa8e93587c fwd="107.77.213.153" dyno= connect= service= status =503 bytes=
2016-08-04T20:01:29.378063+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/favicon.ico" host=build-word-game.herokuapp.com request_ id=8e62ab9c-50a3-43eb-9579-9c3d4a6c9d42 fwd="107.77.213.153" dyno= connect= serv ice= status=503 bytes=
I appreciate your help.
It looks like your Node application is not starting properly. This is likely due to you not binding your Node server to the correct port.
On Heroku, you must bind your Node server to a port number specified in the PORT environment variable. This is because Heroku magically handles routing for your requests, on a server with many other applications.
What you should do is modify your Node code so that it listens on port process.env.PORT.
Here's an example Express.js application that listens to the correct port, as an example:
var express = require('express');
var app = express();
app.listen(process.env.PORT);