App crashing on galaxy [SOLVED by root cause unknown]

My app just crashed, but don’t really understand the error. Any tips? This has never happened before. But last weekend I migrated the database from mlab to Mongodb Atlas. Now I’m thinking that was probably a big mistake.

Looks like a database problem but I have TWO other apps connected to the same database and they are working fine

2017-02-23 13:52:22+09:00 at Function.MongoError.create (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/error.js:29:11)
gpcj
2017-02-23 13:52:22+09:00 at TLSSocket. (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:190:22)
gpcj
2017-02-23 13:52:22+09:00 at TLSSocket.g (events.js:260:16)
gpcj
2017-02-23 13:52:22+09:00 at emitOne (events.js:82:20)
gpcj
2017-02-23 13:52:22+09:00 at TLSSocket.emit (events.js:169:7)
gpcj
2017-02-23 13:52:22+09:00 at Socket. (net.js:487:12)
gpcj
2017-02-23 13:52:22+09:00 at Socket.g (events.js:260:16)
gpcj
2017-02-23 13:52:22+09:00 at emitOne (events.js:77:13)
gpcj
2017-02-23 13:52:22+09:00 at Socket.emit (events.js:169:7)
gpcj
2017-02-23 13:52:22+09:00 at TCP._onclose (net.js:487:12)
acs2
2017-02-23 13:52:22+09:00Exception while polling query {“collectionName”:“conversations”,“selector”:{“_id”:“318072312”},“options”:{“limit”:1,“fields”:{“adminThreads”:0}}}: MongoError: connection 0 to blackshipwre-production-shard-00-00-8gwdv.mongodb.net:27017 closed
acs2
2017-02-23 13:52:22+09:00 at Object.Future.wait (/app/bundle/programs/server/node_modules/fibers/future.js:449:15)
acs2
2017-02-23 13:52:22+09:00 at SynchronousCursor._nextObject (packages/mongo/mongo_driver.js:1024:47)
acs2
2017-02-23 13:52:22+09:00 at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1058:22)
acs2
2017-02-23 13:52:22+09:00 at SynchronousCursor.getRawObjects (packages/mongo/mongo_driver.js:1107:12)
acs2
2017-02-23 13:52:22+09:00 at PollingObserveDriver._pollMongo (packages/mongo/polling_observe_driver.js:152:48)
acs2
2017-02-23 13:52:22+09:00 at PollingObserveDriver.proto.pollMongo (packages/meteorhacks_kadira.js:2985:23)
acs2
2017-02-23 13:52:22+09:00 at Object.task (packages/mongo/polling_observe_driver.js:90:12)
acs2
2017-02-23 13:52:22+09:00 at [object Object].
.extend._run (packages/meteor.js:807:18)
acs2
2017-02-23 13:52:22+09:00 at packages/meteor.js:785:14
acs2
2017-02-23 13:52:22+09:00 - - - - -
acs2
2017-02-23 13:52:22+09:00 at Function.MongoError.create (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/error.js:29:11)
acs2
2017-02-23 13:52:22+09:00 at TLSSocket. (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:190:22)
acs2
2017-02-23 13:52:22+09:00 at TLSSocket.g (events.js:260:16)
acs2
2017-02-23 13:52:22+09:00 at emitOne (events.js:82:20)
acs2
2017-02-23 13:52:22+09:00 at TLSSocket.emit (events.js:169:7)
acs2
2017-02-23 13:52:22+09:00 at Socket. (net.js:487:12)
acs2
2017-02-23 13:52:22+09:00 at Socket.g (events.js:260:16)
acs2
2017-02-23 13:52:22+09:00 at emitOne (events.js:77:13)
acs2
2017-02-23 13:52:22+09:00 at Socket.emit (events.js:169:7)
acs2
2017-02-23 13:52:22+09:00 at TCP._onclose (net.js:487:12)
acs2
2017-02-23 13:52:22+09:00Exception in setInterval callback: MongoError: connection 0 to blackshipwre-production-shard-00-00-8gwdv.mongodb.net:27017 closed
acs2
2017-02-23 13:52:22+09:00 at Object.Future.wait (/app/bundle/programs/server/node_modules/fibers/future.js:449:15)
acs2
2017-02-23 13:52:22+09:00 at SynchronousCursor._nextObject (packages/mongo/mongo_driver.js:1024:47)
acs2
2017-02-23 13:52:22+09:00 at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1058:22)
acs2
2017-02-23 13:52:22+09:00 at Cursor.(anonymous function) (packages/mongo/mongo_driver.js:907:44)
acs2
2017-02-23 13:52:22+09:00 at Cursor.cursorProto.(anonymous function) (packages/meteorhacks_kadira.js:3352:32)
acs2
2017-02-23 13:52:22+09:00 at Cursor.kadira_Cursor_forEach [as forEach] (packages/meteorhacks_kadira.js:3732:34)
acs2
2017-02-23 13:52:22+09:00 at JobCollection.promote_jobs (packages/vsivsi_job-collection/src/server.coffee:194:10)
acs2
2017-02-23 13:52:22+09:00 at [object Object].
.extend.withValue (packages/meteor.js:1122:17)
acs2
2017-02-23 13:52:22+09:00 at packages/meteor.js:445:45
acs2
2017-02-23 13:52:22+09:00 at runWithEnvironment (packages/meteor.js:1176:24)
acs2
2017-02-23 13:52:22+09:00 - - - - -
acs2
2017-02-23 13:52:22+09:00 at Function.MongoError.create (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/error.js:29:11)
acs2
2017-02-23 13:52:22+09:00 at TLSSocket. (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:190:22)
acs2
2017-02-23 13:52:22+09:00 at TLSSocket.g (events.js:260:16)
acs2
2017-02-23 13:52:22+09:00 at emitOne (events.js:82:20)
acs2
2017-02-23 13:52:22+09:00 at TLSSocket.emit (events.js:169:7)
acs2
2017-02-23 13:52:22+09:00 at Socket. (net.js:487:12)
acs2
2017-02-23 13:52:22+09:00 at Socket.g (events.js:260:16)
acs2
2017-02-23 13:52:22+09:00 at emitOne (events.js:77:13)
acs2
2017-02-23 13:52:22+09:00 at Socket.emit (events.js:169:7)
acs2
2017-02-23 13:52:22+09:00 at TCP._onclose (net.js:487:12)

I stopped and started the app but no recovery. Redeploying the app fixed it. Weird. We ran on 3 compact containers for a year without problems, and then it crashes a few days after we switch to two Standard containers.

Upgrading meteor and meteor core packages helps mitigate this issue. Here’s some background information: https://github.com/meteor/meteor/issues/5773