Heroku application crashing - heroku

I recently built a MERN stack application. As this was my first one of this kind I used this Tutorial series (https://www.youtube.com/playlist?list=PLillGF-RfqbbiTGgA77tGO426V3hRF9iE) as a generel guidline, especially when it comes to the server side. Even though the content of the app varies and I implemented a few other features, the structur of the app is de facto the same.
Now I want to make the application run with heroku (as instructed in the video).
However, when I pushed to code to heroku the app kept crashing. I opened the log and this is what I got as Errors:
2020-08-11T03:07:10.314848+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:878:14)
2020-08-11T03:07:10.314849+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
2020-08-11T03:07:10.314849+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 {
2020-08-11T03:07:10.314849+00:00 app[web.1]: code: 'MODULE_NOT_FOUND',
2020-08-11T03:07:10.314850+00:00 app[web.1]: requireStack: [ '/app/server.js' ]
2020-08-11T03:07:10.314850+00:00 app[web.1]: }
2020-08-11T03:07:10.330704+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-08-11T03:07:10.330940+00:00 app[web.1]: npm ERR! errno 1
2020-08-11T03:07:10.333787+00:00 app[web.1]: npm ERR! steffi#1.0.0 start: `node server.js`
2020-08-11T03:07:10.333895+00:00 app[web.1]: npm ERR! Exit status 1
2020-08-11T03:07:10.334073+00:00 app[web.1]: npm ERR!
2020-08-11T03:07:10.334210+00:00 app[web.1]: npm ERR! Failed at the steffi#1.0.0 start script.
2020-08-11T03:07:10.334313+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-08-11T03:07:10.344122+00:00 app[web.1]:
2020-08-11T03:07:10.344322+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-08-11T03:07:10.344441+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-08-11T03_07_10_335Z-debug.log
2020-08-11T03:07:10.389095+00:00 heroku[web.1]: Process exited with status 1
2020-08-11T03:07:10.431342+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-11T08:45:48.247619+00:00 heroku[web.1]: State changed from crashed to starting
2020-08-11T08:46:00.002801+00:00 heroku[web.1]: Starting process with command `npm start`
2020-08-11T08:46:02.120377+00:00 app[web.1]:
2020-08-11T08:46:02.120405+00:00 app[web.1]: > steffi#1.0.0 start /app
2020-08-11T08:46:02.120406+00:00 app[web.1]: > node server.js
2020-08-11T08:46:02.120406+00:00 app[web.1]:
2020-08-11T08:46:02.686644+00:00 app[web.1]: internal/modules/cjs/loader.js:968
2020-08-11T08:46:02.686672+00:00 app[web.1]: throw err;
2020-08-11T08:46:02.686672+00:00 app[web.1]: ^
2020-08-11T08:46:02.686672+00:00 app[web.1]:
2020-08-11T08:46:02.686674+00:00 app[web.1]: Error: Cannot find module './routes/APIs/Report'
2020-08-11T08:46:02.686674+00:00 app[web.1]: Require stack:
2020-08-11T08:46:02.686675+00:00 app[web.1]: - /app/server.js
2020-08-11T08:46:02.686677+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
2020-08-11T08:46:02.686677+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:841:27)
2020-08-11T08:46:02.686677+00:00 app[web.1]: at Module.require (internal/modules/cjs/loader.js:1025:19)
2020-08-11T08:46:02.686677+00:00 app[web.1]: at require (internal/modules/cjs/helpers.js:72:18)
2020-08-11T08:46:02.686678+00:00 app[web.1]: at Object.<anonymous> (/app/server.js:8:16)
2020-08-11T08:46:02.686678+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:1137:30)
2020-08-11T08:46:02.686678+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
2020-08-11T08:46:02.686678+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:985:32)
2020-08-11T08:46:02.686679+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:878:14)
2020-08-11T08:46:02.686680+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
2020-08-11T08:46:02.686680+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 {
2020-08-11T08:46:02.686680+00:00 app[web.1]: code: 'MODULE_NOT_FOUND',
2020-08-11T08:46:02.686681+00:00 app[web.1]: requireStack: [ '/app/server.js' ]
2020-08-11T08:46:02.686681+00:00 app[web.1]: }
2020-08-11T08:46:02.696283+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-08-11T08:46:02.696490+00:00 app[web.1]: npm ERR! errno 1
2020-08-11T08:46:02.698937+00:00 app[web.1]: npm ERR! steffi#1.0.0 start: `node server.js`
2020-08-11T08:46:02.699033+00:00 app[web.1]: npm ERR! Exit status 1
2020-08-11T08:46:02.699145+00:00 app[web.1]: npm ERR!
2020-08-11T08:46:02.699229+00:00 app[web.1]: npm ERR! Failed at the steffi#1.0.0 start script.
2020-08-11T08:46:02.699312+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-08-11T08:46:02.706889+00:00 app[web.1]:
2020-08-11T08:46:02.707038+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-08-11T08:46:02.707136+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-08-11T08_46_02_699Z-debug.log
2020-08-11T08:46:02.751097+00:00 heroku[web.1]: Process exited with status 1
2020-08-11T08:46:02.788818+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-11T14:22:15.896541+00:00 heroku[web.1]: State changed from crashed to starting
2020-08-11T14:22:29.138852+00:00 heroku[web.1]: Starting process with command `npm start`
2020-08-11T14:22:33.759937+00:00 app[web.1]:
2020-08-11T14:22:33.759960+00:00 app[web.1]: > steffi#1.0.0 start /app
2020-08-11T14:22:33.759961+00:00 app[web.1]: > node server.js
2020-08-11T14:22:33.759961+00:00 app[web.1]:
2020-08-11T14:22:34.574404+00:00 app[web.1]: internal/modules/cjs/loader.js:968
2020-08-11T14:22:34.574426+00:00 app[web.1]: throw err;
2020-08-11T14:22:34.574427+00:00 app[web.1]: ^
2020-08-11T14:22:34.574427+00:00 app[web.1]:
2020-08-11T14:22:34.574428+00:00 app[web.1]: Error: Cannot find module './routes/APIs/Report'
2020-08-11T14:22:34.574428+00:00 app[web.1]: Require stack:
2020-08-11T14:22:34.574429+00:00 app[web.1]: - /app/server.js
2020-08-11T14:22:34.574429+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
2020-08-11T14:22:34.574430+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:841:27)
2020-08-11T14:22:34.574430+00:00 app[web.1]: at Module.require (internal/modules/cjs/loader.js:1025:19)
2020-08-11T14:22:34.574430+00:00 app[web.1]: at require (internal/modules/cjs/helpers.js:72:18)
2020-08-11T14:22:34.574431+00:00 app[web.1]: at Object.<anonymous> (/app/server.js:8:16)
2020-08-11T14:22:34.574431+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:1137:30)
2020-08-11T14:22:34.574431+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
2020-08-11T14:22:34.574432+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:985:32)
2020-08-11T14:22:34.574432+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:878:14)
2020-08-11T14:22:34.574433+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
2020-08-11T14:22:34.574433+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 {
2020-08-11T14:22:34.574434+00:00 app[web.1]: code: 'MODULE_NOT_FOUND',
2020-08-11T14:22:34.574435+00:00 app[web.1]: requireStack: [ '/app/server.js' ]
2020-08-11T14:22:34.574435+00:00 app[web.1]: }
2020-08-11T14:22:34.597512+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-08-11T14:22:34.597879+00:00 app[web.1]: npm ERR! errno 1
2020-08-11T14:22:34.602909+00:00 app[web.1]: npm ERR! steffi#1.0.0 start: `node server.js`
2020-08-11T14:22:34.603105+00:00 app[web.1]: npm ERR! Exit status 1
2020-08-11T14:22:34.603488+00:00 app[web.1]: npm ERR!
2020-08-11T14:22:34.603763+00:00 app[web.1]: npm ERR! Failed at the steffi#1.0.0 start script.
2020-08-11T14:22:34.603974+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-08-11T14:22:34.625203+00:00 app[web.1]:
2020-08-11T14:22:34.626034+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-08-11T14:22:34.626253+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-08-11T14_22_34_613Z-debug.log
2020-08-11T14:22:34.714592+00:00 heroku[web.1]: Process exited with status 1
2020-08-11T14:22:34.756698+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-11T18:46:15.852670+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tagesberichte.herokuapp.com request_id=ba691bfe-def4-474f-9ac6-7ec994824c19 fwd="81.217.30.193" dyno= connect= service= status=503 bytes= protocol=https
2020-08-11T18:46:16.217361+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tagesberichte.herokuapp.com request_id=0872c7dd-5396-4da7-a9c6-88fc22adb5bc fwd="81.217.30.193" dyno= connect= service= status=503 bytes= protocol=https
2020-08-11T18:49:13.569812+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tagesberichte.herokuapp.com request_id=4b4a6c67-9e6c-4d9e-a99a-e5c4d194d99f fwd="81.217.30.193" dyno= connect= service= status=503 bytes= protocol=https
2020-08-11T18:50:53.665135+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tagesberichte.herokuapp.com request_id=9489e7f5-cda1-490b-a4f9-2ab453ed519c fwd="81.217.30.193" dyno= connect= service= status=503 bytes= protocol=https
2020-08-11T19:02:59.282527+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tagesberichte.herokuapp.com request_id=a9bbed3f-0a27-45ec-be9d-8312d9303604 fwd="81.217.30.193" dyno= connect= service= status=503 bytes= protocol=https
This being my first time using the MERN stack and heroku, I have to admit that I don't really know what the error log means. It seems that heroku doesnt't find some of the files and I dont really understand why. As a reference point, this is the project that I pushed to heroku (minus the API for mongoDB): https://github.com/lamorak13/tagesberichte
I am thankful for every peace of advice I can get to make this work. Thanks a lot :)

Related

Liveview app reloading infinitely on heroku deployment

This might be a stupid question to ask but are there any extra steps I need to complete to deploy a phoenix liveview app to heroku?
From official documents deployment of phoenix app was successful but converting the same page into a liveview caused the page to reload infinitely
And the error I get on heroku logs are:
2022-01-18T07:35:12.424013+00:00 heroku[router]: at=info method=GET path="/" host=fast-fortress-60216.herokuapp.com request_id=0bf752c3-185a-44d4-84ce-7004f7031984 fwd="27.34.20.173" dyno=web.1 connect=0ms service=2ms status=200 bytes=4941 protocol=https
2022-01-18T07:35:13.895958+00:00 heroku[router]: at=info method=GET path="/assets/app-097a5c6ca9e10ff4881312b83e54a14f.css?vsn=d" host=fast-fortress-60216.herokuapp.com request_id=8d4e402d-cf16-4e4d-8b26-3bdcbbc6186c fwd="27.34.20.173" dyno=web.1 connect=0ms service=2ms status=200 bytes=15612 protocol=https
2022-01-18T07:35:15.191409+00:00 heroku[router]: at=info method=GET path="/live/websocket?_csrf_token=SC9hAXBiKRoOLDYALRkhCT8EBzk8LT0syDSs70xHbMfQfZyowhVUrjDs&_track_static%5B0%5D=https%3A%2F%2Ffast-fortress-60216.herokuapp.com%2Fassets%2Fapp-097a5c6ca9e10ff4881312b83e54a14f.css%3Fvsn%3Dd&_track_static%5B1%5D=https%3A%2F%2Ffast-fortress-60216.herokuapp.com%2Fassets%2Fapp-a670ca05a10bcaada1c4842b40be19a2.js%3Fvsn%3Dd&_mounts=0&vsn=2.0.0" host=fast-fortress-60216.herokuapp.com request_id=e8ef08c8-d80a-4a79-8b73-d21cc5e47d2c fwd="27.34.20.173" dyno=web.1 connect=0ms service=1ms status=403 bytes=195 protocol=https
2022-01-18T07:35:15.191230+00:00 app[web.1]: 07:35:15.191 [error] Could not check origin for Phoenix.Socket transport.
2022-01-18T07:35:15.191243+00:00 app[web.1]:
2022-01-18T07:35:15.191244+00:00 app[web.1]: Origin of the request: https://fast-fortress-60216.herokuapp.com
2022-01-18T07:35:15.191244+00:00 app[web.1]:
2022-01-18T07:35:15.191245+00:00 app[web.1]: This happens when you are attempting a socket connection to
2022-01-18T07:35:15.191246+00:00 app[web.1]: a different host than the one configured in your config/
2022-01-18T07:35:15.191246+00:00 app[web.1]: files. For example, in development the host is configured
2022-01-18T07:35:15.191246+00:00 app[web.1]: to "localhost" but you may be trying to access it from
2022-01-18T07:35:15.191247+00:00 app[web.1]: "127.0.0.1". To fix this issue, you may either:
2022-01-18T07:35:15.191247+00:00 app[web.1]:
2022-01-18T07:35:15.191248+00:00 app[web.1]: 1. update [url: [host: ...]] to your actual host in the
2022-01-18T07:35:15.191248+00:00 app[web.1]: config file for your current environment (recommended)
2022-01-18T07:35:15.191248+00:00 app[web.1]:
2022-01-18T07:35:15.191248+00:00 app[web.1]: 2. pass the :check_origin option when configuring your
2022-01-18T07:35:15.191249+00:00 app[web.1]: endpoint or when configuring the transport in your
2022-01-18T07:35:15.191249+00:00 app[web.1]: UserSocket module, explicitly outlining which origins
2022-01-18T07:35:15.191250+00:00 app[web.1]: are allowed:
2022-01-18T07:35:15.191251+00:00 app[web.1]:
2022-01-18T07:35:15.191251+00:00 app[web.1]: check_origin: ["https://example.com",
2022-01-18T07:35:15.191251+00:00 app[web.1]: "//another.com:888", "//other.com"]
Do I have to install extra buildpacks or some changes in my configs?
My bad
The solution was right there but I didn't exactly know how to implement it.
The solution is adding
config :grasruts, GrasrutsWeb.Endpoint, check_origin: ["http://localhost:4000/","https://HEROKU_APP_URL/"]

Discord.js bot | Heroku deploy error | npm ERR! missing script: start

Here is the Heroku logs;
2021-01-22T11:17:07.911108+00:00 heroku[web.1]: State changed from crashed to starting
2021-01-22T11:17:10.754315+00:00 heroku[web.1]: Starting process with command `npm start`
2021-01-22T11:17:15.636637+00:00 app[web.1]: npm ERR! missing script: start
2021-01-22T11:17:15.662837+00:00 app[web.1]:
2021-01-22T11:17:15.673294+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-01-22T11:17:15.673769+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-01-22T11_17_15_637Z-debug.log
2021-01-22T11:17:15.744906+00:00 heroku[web.1]: Process exited with status 1
2021-01-22T11:17:15.806698+00:00 heroku[web.1]: State changed from starting to crashed
2021-01-22T11:17:23.632780+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=hamburgerbot-djs.herokuapp.com request_id=5860703d-5eea-494e-b4d0-e052b7d90a44 fwd="176.41.220.196" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T11:17:24.442814+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=hamburgerbot-djs.herokuapp.com request_id=ec0558b8-95ce-43f3-b764-8bccdfc9cc4a fwd="176.41.220.196" dyno= connect= service= status=503 bytes= protocol=https
How can I solve this error(s)?
It looks like you might not have defined a start script in your package.json file. Due to this error: 2021-01-22T11:17:15.636637+00:00 app[web.1]: npm ERR! missing script: start
You could either change the name of your application script to server.js or add the following to your package.json
"scripts": {
"start": "node your-script.js"
}

Stormpath and Heroku

I've been trying to launch the Stormpath tutorial app to Heroku, but Heroku is telling me '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 checked the logs and the main thing seems to be 'Error: API key ID and secret is required.', but I have no idea what that's supposed to mean. I already followed the guide here https://stormpath.com/blog/build-nodejs-express-stormpath-app and set the key ID and secret in the terminal. What do I do to make this thing launch on Heroku properly?
Everything runs just fine locally and here is the full log:
2016-05-23T00:57:21.912777+00:00 app[web.1]: > node server.js
2016-05-23T00:57:21.912752+00:00 app[web.1]:
2016-05-23T00:57:21.912773+00:00 app[web.1]: > my-webapp#1.0.0 start /app
2016-05-23T00:57:21.912778+00:00 app[web.1]:
2016-05-23T00:57:23.236038+00:00 app[web.1]: error: Error: API key ID and secret is required.
2016-05-23T00:57:23.236061+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:1213:16
2016-05-23T00:57:23.236061+00:00 app[web.1]: at fn (/app/node_modules/async/lib/async.js:746:34)
2016-05-23T00:57:23.236062+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:166:37
2016-05-23T00:57:23.236060+00:00 app[web.1]: at ValidateClientConfigStrategy.process (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:33:12)
2016-05-23T00:57:23.236056+00:00 app[web.1]: at newError (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:15:14)
2016-05-23T00:57:23.236063+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:706:43
2016-05-23T00:57:23.236063+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:167:37
2016-05-23T00:57:23.236065+00:00 app[web.1]: at Immediate._onImmediate (/app/node_modules/async/lib/async.js:1206:34)
2016-05-23T00:57:23.236066+00:00 app[web.1]: at tryOnImmediate (timers.js:534:15)
2016-05-23T00:57:23.236066+00:00 app[web.1]: at processImmediate [as _immediateCallback] (timers.js:514:5)
2016-05-23T00:58:19.594432+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-05-23T00:58:19.594683+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-05-23T00:58:20.928062+00:00 heroku[web.1]: State changed from starting to crashed
2016-05-23T00:58:20.879933+00:00 heroku[web.1]: Process exited with status 137
2016-05-23T00:58:40.721955+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=a8142cf5-0e42-402b-b777-69aa7867808a fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T00:58:41.882687+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=04db8c96-ff75-4535-9aa9-cb1415951742 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:00:10.489523+00:00 heroku[api]: Release v6 created by brandonlum94#gmail.com
2016-05-23T01:00:10.489494+00:00 heroku[api]: Deploy 7873309 by brandonlum94#gmail.com
2016-05-23T01:00:10.619075+00:00 heroku[slug-compiler]: Slug compilation started
2016-05-23T01:00:10.619085+00:00 heroku[slug-compiler]: Slug compilation finished
2016-05-23T01:00:10.966086+00:00 heroku[web.1]: State changed from crashed to starting
2016-05-23T01:00:12.625037+00:00 heroku[web.1]: Starting process with command `npm start`
2016-05-23T01:00:15.420889+00:00 app[web.1]:
2016-05-23T01:00:15.420908+00:00 app[web.1]: > my-webapp#1.0.0 start /app
2016-05-23T01:00:15.420911+00:00 app[web.1]: > node server.js
2016-05-23T01:00:15.420912+00:00 app[web.1]:
2016-05-23T01:00:16.939751+00:00 app[web.1]: error: Error: API key ID and secret is required.
2016-05-23T01:00:16.939761+00:00 app[web.1]: at newError (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:15:14)
2016-05-23T01:00:16.939763+00:00 app[web.1]: at ValidateClientConfigStrategy.process (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:33:12)
2016-05-23T01:00:16.939764+00:00 app[web.1]: at fn (/app/node_modules/async/lib/async.js:746:34)
2016-05-23T01:00:16.939765+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:1213:16
2016-05-23T01:00:16.939766+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:706:43
2016-05-23T01:00:16.939765+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:166:37
2016-05-23T01:00:16.939767+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:167:37
2016-05-23T01:00:16.939768+00:00 app[web.1]: at Immediate._onImmediate (/app/node_modules/async/lib/async.js:1206:34)
2016-05-23T01:00:16.939769+00:00 app[web.1]: at tryOnImmediate (timers.js:534:15)
2016-05-23T01:00:16.939770+00:00 app[web.1]: at processImmediate [as _immediateCallback] (timers.js:514:5)
2016-05-23T01:01:13.074993+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-05-23T01:01:13.074993+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-05-23T01:01:13.918547+00:00 heroku[web.1]: State changed from starting to crashed
2016-05-23T01:01:13.916299+00:00 heroku[web.1]: Process exited with status 137
2016-05-23T01:01:16.688198+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=b8b03962-66f9-4b67-be55-009dff78c8b0 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:01:17.984769+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=5a6a9d91-a144-415c-9293-951aedc0f26b fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:02:40.694187+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=b004fcf9-f3d8-482f-bae3-3e4cfe90160e fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:02:41.552456+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=80a2b214-7a03-4a32-b09d-7ed210685b1e fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:04:23.179785+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=47a5a69e-b26b-4318-9c34-869a1f488e54 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:04:24.057028+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=1736845b-b276-435d-ac09-dd308592f290 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:07:39.697756+00:00 heroku[api]: Release v7 created by brandonlum94#gmail.com
2016-05-23T01:07:39.697756+00:00 heroku[api]: Set STORMPATH_SECRET_KEY config vars by brandonlum94#gmail.com
2016-05-23T01:07:40.390722+00:00 heroku[web.1]: State changed from crashed to starting
2016-05-23T01:07:42.158518+00:00 heroku[web.1]: Starting process with command `npm start`
2016-05-23T01:07:44.211079+00:00 app[web.1]:
2016-05-23T01:07:44.211110+00:00 app[web.1]: > my-webapp#1.0.0 start /app
2016-05-23T01:07:44.211113+00:00 app[web.1]: > node server.js
2016-05-23T01:07:44.211119+00:00 app[web.1]:
2016-05-23T01:07:45.303304+00:00 app[web.1]: error: Error: API key ID and secret is required.
2016-05-23T01:07:45.303317+00:00 app[web.1]: at newError (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:15:14)
2016-05-23T01:07:45.303318+00:00 app[web.1]: at ValidateClientConfigStrategy.process (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:33:12)
2016-05-23T01:07:45.303319+00:00 app[web.1]: at fn (/app/node_modules/async/lib/async.js:746:34)
2016-05-23T01:07:45.303320+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:1213:16
2016-05-23T01:07:45.303320+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:166:37
2016-05-23T01:07:45.303321+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:706:43
2016-05-23T01:07:45.303321+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:167:37
2016-05-23T01:07:45.303322+00:00 app[web.1]: at Immediate._onImmediate (/app/node_modules/async/lib/async.js:1206:34)
2016-05-23T01:07:45.303324+00:00 app[web.1]: at processImmediate [as _immediateCallback] (timers.js:514:5)
2016-05-23T01:07:45.303323+00:00 app[web.1]: at tryOnImmediate (timers.js:534:15)
2016-05-23T01:08:42.173794+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-05-23T01:08:42.173889+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-05-23T01:08:42.972327+00:00 heroku[web.1]: State changed from starting to crashed
2016-05-23T01:08:42.960998+00:00 heroku[web.1]: Process exited with status 137
2016-05-23T01:08:42.973810+00:00 heroku[web.1]: State changed from crashed to starting
2016-05-23T01:08:44.895681+00:00 heroku[web.1]: Starting process with command `npm start`
2016-05-23T01:08:47.490885+00:00 app[web.1]:
2016-05-23T01:08:47.490893+00:00 app[web.1]: > my-webapp#1.0.0 start /app
2016-05-23T01:08:47.490900+00:00 app[web.1]:
2016-05-23T01:08:47.490899+00:00 app[web.1]: > node server.js
2016-05-23T01:08:48.673636+00:00 app[web.1]: error: Error: API key ID and secret is required.
2016-05-23T01:08:48.673657+00:00 app[web.1]: at newError (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:15:14)
2016-05-23T01:08:48.673659+00:00 app[web.1]: at ValidateClientConfigStrategy.process (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:33:12)
2016-05-23T01:08:48.673660+00:00 app[web.1]: at fn (/app/node_modules/async/lib/async.js:746:34)
2016-05-23T01:08:48.673660+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:1213:16
2016-05-23T01:08:48.673661+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:166:37
2016-05-23T01:08:48.673665+00:00 app[web.1]: at tryOnImmediate (timers.js:534:15)
2016-05-23T01:08:48.673661+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:706:43
2016-05-23T01:08:48.673666+00:00 app[web.1]: at processImmediate [as _immediateCallback] (timers.js:514:5)
2016-05-23T01:08:48.673662+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:167:37
2016-05-23T01:08:48.673664+00:00 app[web.1]: at Immediate._onImmediate (/app/node_modules/async/lib/async.js:1206:34)
2016-05-23T01:09:44.945559+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2016-05-23T01:09:44.916097+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-05-23T01:09:44.916097+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-05-23T01:09:45.800059+00:00 heroku[web.1]: Process exited with status 22
2016-05-23T01:09:45.849441+00:00 heroku[web.1]: State changed from starting to crashed
2016-05-23T01:17:24.998834+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=f573e1ab-6029-4115-b925-3034b93ca7dc fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:17:25.895402+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=eca422af-0a7c-4d10-9bd6-16fc54b6b10d fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:21:00.461372+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=89189a45-6415-48e4-be08-0fb2a83291e8 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:21:01.050242+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=6d4fa6d5-1feb-4a10-8864-ef50fe72845b fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
I work at Stormpath, so just hopping in here. We recently released a new version of our express-stormpath library, which looks for environment variables with different names than those which are included by default on Heroku.
I'm going to fix this in the Heroku documentation right now.
What you can do to get things working in the interim is this:
$ heroku config:set STORMPATH_APPLICATION_HREF=$(heroku config:get STORMPATH_URL)
$ heroku config:set STORMPATH_CLIENT_APIKEY_ID=$(heroku config:get STORMPATH_API_KEY_ID)
$ heroku config:set STORMPATH_CLIENT_APIKEY_SECRET=$(heroku config:get STORMPATH_API_KEY_SECRET)
Those above commands will duplicate your Heroku environment variables for Stormpath, naming them correctly.
Sorry for the confusion, I'm working on getting this fixed right now =)

Dashing on Heroku giving "config.ru" error

So, I am just trying to get a simple Heroku server running Dashing up. So far, I have the dashing and gemlock committed to heroku. Whenever I open the site, I get an error. My logs give me this:
2015-03-14T04:05:37.617789+00:00 heroku[api]: Deploy 2447a74 by #gmail.com
2015-03-14T04:05:37.617789+00:00 heroku[api]: Release v8 created by #gmail.com
2015-03-14T04:05:38.099916+00:00 heroku[web.1]: State changed from crashed to starting
2015-03-14T04:05:41.184158+00:00 heroku[web.1]: Starting process with command bundle exec thin start -R config.ru -e pr
oduction -p 12627
2015-03-14T04:05:43.367997+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/rack/adapter/loader.rb:32
:in read': No such file or directory - config.ru (Errno::ENOENT)
2015-03-14T04:05:43.368046+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/rack/adapter/load
er.rb:32:inload'
2015-03-14T04:05:43.368055+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:20
0:in run_command'
2015-03-14T04:05:43.368051+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/controllers/
controller.rb:182:inload_rackup_config'
2015-03-14T04:05:43.368053+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/controllers/
controller.rb:72:in start'
2015-03-14T04:05:43.368064+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/bin/thin:6:in'
2015-03-14T04:05:43.368066+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/thin:23:in load'
2015-03-14T04:05:43.368062+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:15
6:inrun!'
2015-03-14T04:05:43.368069+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/thin:23:in `'
2015-03-14T04:05:44.164461+00:00 heroku[web.1]: State changed from starting to crashed
2015-03-14T04:05:44.157004+00:00 heroku[web.1]: Process exited with status 1
2015-03-14T04:06:01.687293+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pacific-d
awn-3700.herokuapp.com request_id=902320e9-1789-4099-94b2-8b4431d59495 fwd="66.190.95.133" dyno= connect= service= statu
s=503 bytes=
2015-03-14T04:06:02.015965+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" hos
t=pacific-dawn-3700.herokuapp.com request_id=6563d675-9732-4a21-84f4-c486fb6d792e fwd="66.190.95.133" dyno= connect= ser
vice= status=503 bytes=
A config.ru file was never created...I'm new to Ruby and Dashing and Heroku. I've even tried creating a blank config.ru, but even more errors occur...
Found the config file in anothjer directory somehow. Popped it in, it works!

Clojure (Joodo) deployment on Heroku failing

I'm having some trouble getting my Joodo application to deploy to Heroku. According to the deployment instructions here http://joodoweb.com/, we can theoretically deploy without specifying a Procfile. This causes Heroku to run lein with-profile production trampoline run as the default command to launch the project. This leads to this error:
2014-04-26T19:30:46.899454+00:00 app[web.1]: Error encountered performing task 'trampoline' with profile(s): 'production'
2014-04-26T19:30:46.899525+00:00 app[web.1]: Suppressed exit
2014-04-26T19:30:46.899112+00:00 app[web.1]: No :main namespace specified in project.clj.
2014-04-26T19:30:48.275513+00:00 heroku[web.1]: Process exited with status 1
2014-04-26T19:30:49.093441+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=floating-chamber-7585.herokuapp.com request_id=de532a37-57b1-4ce2-b5c0-c056019eda6b fwd="76.171.76.49" dyno= connect= service= status=503 bytes=
2014-04-26T19:30:48.303715+00:00 heroku[web.1]: State changed from starting to crashed
I have also tried explicitly setting the Procfile to 'lein ring server' (which is what you run in development). The error then is:
2014-04-26T21:24:34.229386+00:00 app[web.1]: java.lang.Exception: No namespace: heepster.view-helpers found
2014-04-26T21:24:34.221227+00:00 app[web.1]: :request-method :get
2014-04-26T21:24:34.221229+00:00 app[web.1]: :scheme :http
2014-04-26T21:24:34.221232+00:00 app[web.1]: :server-port 80
2014-04-26T21:24:34.221235+00:00 app[web.1]: :session/key nil
2014-04-26T21:24:34.229391+00:00 app[web.1]: at joodo.views$eval_content.invoke(views.clj:48)
2014-04-26T21:24:34.221238+00:00 app[web.1]: :uri /}
2014-04-26T21:24:34.229380+00:00 app[web.1]:
2014-04-26 21:24:34.227:WARN:oejs.AbstractHttpConnection:/
2014-04-26T21:24:34.229395+00:00 app[web.1]: at joodo.views$render_in_layout.invoke(views.clj:59)
2014-04-26T21:24:34.229388+00:00 app[web.1]: at clojure.core$the_ns.invoke(core.clj:3760)
2014-04-26T21:24:34.229401+00:00 app[web.1]: at heepster.main$fn__2523.invoke(main.clj:23)
2014-04-26T21:24:34.229405+00:00 app[web.1]: at compojure.core$if_route$fn__649.invoke(core.clj:40)
2014-04-26T21:24:34.229393+00:00 app[web.1]: at joodo.views$render.invoke(views.clj:52)
2014-04-26T21:24:34.229409+00:00 app[web.1]: at compojure.core$routing$fn__667.invoke(core.clj:107)
2014-04-26T21:24:34.229413+00:00 app[web.1]: at compojure.core$routing.doInvoke(core.clj:107)
2014-04-26T21:24:34.229397+00:00 app[web.1]: at joodo.views$render_template.doInvoke(views.clj:86)
2014-04-26T21:24:34.229403+00:00 app[web.1]: at compojure.core$make_route$fn__661.invoke(core.clj:94)
Does anyone have any ideas?

Resources