googlearchive/flashlight

App crashes on Heroku.

Opened this issue · 2 comments

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

@rikardjh have you managed to fix this issue yet?

@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.