Heroku deployment: Internal Server Error (no idea what's going on)
-
Hey all!
I'm having a little trouble deploying my local NodeBB app to Heroku. I was wondering if anybody would be willing to offer some guidance.
I followed the instructions available at: https://docs.nodebb.org/installing/cloud/heroku/#heroku pretty much verbatim.
As for the redis database configuration,
Host IP or address of your Redis instance: redis://redistogo:[email protected]:11951/
Host port of your Redis instance:
11951
Password of your Redis database:
PASSWORD
Which database to use:
(default) 0The logs from when the source was being built:
*Initially, in development, we noticed that Node v8.0.0 was not compatible with NodeBB, so we downgraded to v7.10.0. Speculating that this might be the reason that the app is failing in production as well, we specified the node version as v7.10.0. But it didn't resolve the issue.remote: Compressing source files... done. remote: Building source: remote: remote: -----> Node.js app detected remote: remote: -----> Creating runtime environment remote: remote: NPM_CONFIG_LOGLEVEL=error remote: NPM_CONFIG_PRODUCTION=true remote: NODE_VERBOSE=false remote: NODE_ENV=production remote: NODE_MODULES_CACHE=true remote: remote: -----> Installing binaries remote: engines.node (package.json): 7.10.0 remote: engines.npm (package.json): unspecified (use default) remote: remote: Downloading and installing node 7.10.0... remote: Using default npm version: 4.2.0 remote: remote: -----> Restoring cache remote: Skipping cache restore (new-signature) remote: remote: -----> Building dependencies remote: Installing node modules (package.json) remote: remote: > [email protected] install /tmp/build_e220483025115735e73591a2a50a7692/node_modules/uws remote: > node-gyp rebuild > build_log.txt 2>&1 || exit 0 remote: remote: [email protected] /tmp/build_e220483025115735e73591a2a50a7692 remote: ├── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ └── [email protected] remote: │ │ └── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ └─┬ [email protected] remote: │ │ │ └── [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ └─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ ├── [email protected] remote: │ │ │ └─┬ [email protected] remote: │ │ │ ├── [email protected] remote: │ │ │ └── [email protected] remote: │ │ └─┬ [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ ├─┬ [email protected] remote: │ │ │ │ └── [email protected] remote: │ │ │ └── [email protected] remote: │ │ ├── [email protected] remote: │ │ └─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ └─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └─┬ [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └─┬ [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ └─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └─┬ [email protected] remote: │ └─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ └── [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ └─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ ├── [email protected] remote: │ │ │ └─┬ [email protected] remote: │ │ │ └── [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ ├── [email protected] remote: │ │ │ ├── [email protected] remote: │ │ │ ├── [email protected] remote: │ │ │ └── [email protected] remote: │ │ └─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ └── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ └── [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ └─┬ [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├─┬ [email protected] remote: │ │ │ ├── [email protected] remote: │ │ │ ├── [email protected] remote: │ │ │ └── [email protected] remote: │ │ ├── [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ └─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├─┬ [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ ├── [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├─┬ [email protected] remote: │ │ └─┬ [email protected] remote: │ │ └── [email protected] remote: │ └── [email protected] remote: ├─┬ [email protected] remote: │ ├─┬ [email protected] remote: │ │ └── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ └─┬ [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├─┬ [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ ├── [email protected] remote: │ └── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: ├── [email protected] remote: └── [email protected] remote: remote: remote: -----> Caching build remote: Clearing previous node cache remote: Saving 2 cacheDirectories (default): remote: - node_modules remote: - bower_components (nothing to cache) remote: remote: -----> Build succeeded! remote: -----> Discovering process types remote: Procfile declares types -> web remote: remote: -----> Compressing... remote: Done: 46.3M remote: -----> Launching... remote: Released v4 remote: https://vast-gorge-52911.herokuapp.com/ deployed to Heroku remote: remote: Verifying deploy... done. To https://git.heroku.com/vast-gorge-52911.git * [new branch] v1.5.x -> master Branch v1.5.x set up to track remote branch master from heroku.
============================================================
But when I open the app, I get the following error:
And the heroku logs:2017-06-08T08:08:52.018505+00:00 app[api]: Initial release by user [email protected]
2017-06-08T08:08:52.018505+00:00 app[api]: Release v1 created by user [email protected]
2017-06-08T08:08:52.133641+00:00 app[api]: Enable Logplex by user [email protected]
2017-06-08T08:08:52.133641+00:00 app[api]: Release v2 created by user [email protected]
2017-06-08T08:09:25.499344+00:00 app[api]: Release v3 created by user [email protected]
2017-06-08T08:09:25.499344+00:00 app[api]: Attach REDISTOGO (@ref:redistogo-concentric-59348) by user [email protected]
2017-06-08T08:13:30.000000+00:00 app[api]: Build started by user [email protected]
2017-06-08T08:14:20.815758+00:00 app[api]: Deploy c73a4c8e by user [email protected]
2017-06-08T08:14:20.815758+00:00 app[api]: Release v4 created by user [email protected]
2017-06-08T08:14:20.834362+00:00 app[api]: Scaled to web@1:Free by user [email protected]
2017-06-08T08:13:30.000000+00:00 app[api]: Build succeeded
2017-06-08T08:14:25.436646+00:00 heroku[web.1]: Starting process with commandnode loader.js --no-daemon
2017-06-08T08:14:31.752036+00:00 heroku[web.1]: State changed from starting to up
2017-06-08T08:14:40.487961+00:00 heroku[router]: at=info method=GET path="/" host=vast-gorge-52911.herokuapp.com request_id=b4ab1a26-21e0-4618-a9b9-9deca8902651 fwd="121.128.254.157" dyno=web.1 connect=1ms service=124ms status=500 bytes=630 protocol=https
2017-06-08T08:14:42.167403+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=vast-gorge-52911.herokuapp.com request_id=631de158-a63d-4d99-a17f-104493c2bbe1 fwd="121.128.254.157" dyno=web.1 connect=0ms service=16ms status=200 bytes=690 protocol=httpsI tried several times to reinstall the whole NodeBB app (and the Heroku app) to fix the problem, but to no avail. Any help at all would be greatly appreciated!
-
Same situation, follow https://docs.nodebb.org/installing/cloud/heroku/ but not works. Also tried https://github.com/NodeBB/NodeBB/issues/5805 and change Procfile to
./nodebb setup && ./nodebb start
but not work either.Any advice?