Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

App crashes on Heroku. #170

Open
rikard-io opened this issue Aug 23, 2017 · 2 comments
Open

App crashes on Heroku. #170

rikard-io opened this issue Aug 23, 2017 · 2 comments

Comments

@rikard-io
Copy link

Followed instructions in README but app keeps crashing without any insightful log.
Example works fine running both elasticsearch and app.js locally
Example does not crash but gives indexNotFound error when running app.js locally and elastic search throught bonsai

Starting process with command `node ./app.js`
2017-08-23T17:58:08.580603+00:00 heroku[worker.1]: State changed from starting to up
2017-08-23T17:58:10.858949+00:00 app[worker.1]: Configured using BONSAI_URL environment variable https://ea5qte4q:n7ud9lbn9h1k622w@dogwood-xxxxxx.us-east-1.bonsaisearch.net { FB_URL: 'https://let-there-flash-light.firebaseio.com',
2017-08-23T17:58:10.858960+00:00 app[worker.1]:   FB_REQ: 'search/request',
2017-08-23T17:58:10.858961+00:00 app[worker.1]:   FB_RES: 'search/response',
2017-08-23T17:58:10.858962+00:00 app[worker.1]:   FB_SERVICEACCOUNT: 'service-account.json',
2017-08-23T17:58:10.858963+00:00 app[worker.1]:   ES_HOST: 'xxxxxx.us-east-1.bonsaisearch.net',
2017-08-23T17:58:10.858964+00:00 app[worker.1]:   ES_PORT: 80,
2017-08-23T17:58:10.858964+00:00 app[worker.1]:   ES_USER: 'xxxxxx',
2017-08-23T17:58:10.858965+00:00 app[worker.1]:   ES_PASS: 'xxxxxx' }
2017-08-23T17:58:11.034203+00:00 app[worker.1]: Connecting to ElasticSearch host dogwood-xxxxxx.us-east-1.bonsaisearch.net:80
2017-08-23T17:58:16.743069+00:00 app[worker.1]: Connected to ElasticSearch host dogwood-xxxxxx.us-east-1.bonsaisearch.net:80
2017-08-23T17:58:16.743368+00:00 app[worker.1]: Connecting to Firebase https://xxxxxx.firebaseio.com
2017-08-23T17:58:16.843849+00:00 heroku[worker.1]: State changed from up to crashed

@sugarme
Copy link

sugarme commented Sep 17, 2017

@rikardjh have you managed to fix this issue yet?

@sugarme
Copy link

sugarme commented Sep 17, 2017

@rikardjh @agroves333 I figured it out. App stopped at "connecting to Firebase ...". I fixed it by making sure that config.js is added, also added serviceaccount.json as well as added heroku app domain to firebase authorized domains.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants