Heroku install went smooth, but app crashes immediately
-
I am new new to nodeBB, excited to get things going!
I followed the instructions at:
https://docs.nodebb.org/en/latest/installing/cloud/heroku.html
to install on Heroku and all of the steps seem to go smoothly,But when I try to view the app, I get a (standard Heroku) "Application Error" message.
Looking at the logs I found the follow, which doesn't seem to provide much insight:
2015-08-12T14:01:15.294630+00:00 heroku[api]: Enable Logplex by [email protected] 2015-08-12T14:01:15.294630+00:00 heroku[api]: Release v2 created by [email protected] 2015-08-12T14:17:42.858141+00:00 heroku[slug-compiler]: Slug compilation started 2015-08-12T14:17:42.858159+00:00 heroku[slug-compiler]: Slug compilation finished 2015-08-12T14:17:42.769401+00:00 heroku[api]: Scale to web=1 by [email protected] 2015-08-12T14:17:42.816196+00:00 heroku[api]: Release v3 created by [email protected] 2015-08-12T14:17:42.816196+00:00 heroku[api]: Deploy f12c3f2 by [email protected] 2015-08-12T14:17:48.326841+00:00 heroku[web.1]: Starting process with command `node loader.js --no-daemon` 2015-08-12T14:17:52.067405+00:00 heroku[web.1]: State changed from crashed to starting 2015-08-12T14:17:52.066137+00:00 heroku[web.1]: State changed from starting to crashed 2015-08-12T14:17:52.040458+00:00 heroku[web.1]: Process exited with status 0 2015-08-12T14:17:56.266234+00:00 heroku[web.1]: Starting process with command `node loader.js --no-daemon` 2015-08-12T14:17:59.226070+00:00 heroku[web.1]: State changed from starting to crashed 2015-08-12T14:17:59.213278+00:00 heroku[web.1]: Process exited with status 0 2015-08-12T14:25:59.584537+00:00 heroku[api]: Scale to web=1 by [email protected] 2015-08-12T14:26:17.967124+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-app.herokuapp.com request_id=ed569ab5-5fb9-4d18-af46-6e5294e3958a fwd="24.123.240.91" dyno= connect= service= status=503 bytes=
Thoughts? Are there ways to enable a debug mode to help troubleshoot the reason for the crash?
-
I think I figured this out after trying to run it locally,
The Heroku install steps say to add the follow dependencies to you package.json:
"dependencies": { ... "nodebb-plugin-dbsearch": "0.0.10", "redis": "~0.10.1", "connect-redis": "~2.0.0" }, "devDependencies": {
But looking closer, nodebb-plugin-dbsearch is already in the package.json at a higher version. This conflict seemed to cause the crash.
I am guessing that recent versions of nodeBB have changed so this part of the doc is no longer applicable. Here is a pull request to adjust the docs, if I am correct in this assumption: