Problems with database connection

HI,

We’re struggling with a very strange error on our production instance. It seems that our app looses connection to it’s mongo database and cannot connect to it. We’re deployed on modulus.io, running on a single servo for now, we have had the issue with various versions of meteor (right now we’re on 1.3.3.1). Restarting the project helps for a few hours. What helped for longer time is setting up a new database in modulus and migrating our data to it and then switching connect string. Still after a month our issues are back. Any idea how we can further investigate it?

The message we’re getting is the following:
Exception while polling query {“collectionName”:“meteor_accounts_loginServiceConfiguration”,“selector”:{},“options”:{“transform”:null,“fields”:{“secret”:0}}}: Error: failed to connect to [olympia.modulusmongo.net:27017]
at Object.Future.wait (/mnt/app/bundle/programs/server/node_modules/fibers/future.js:449:15)
at SynchronousCursor._nextObject (packages/mongo/mongo_driver.js:986:47)
at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1020:22)
at SynchronousCursor.getRawObjects (packages/mongo/mongo_driver.js:1069:12)
at PollingObserveDriver._pollMongo (packages/mongo/polling_observe_driver.js:152:48)
at PollingObserveDriver.proto.pollMongo (packages/meteorhacks_kadira/lib/hijack/wrap_observers.js:100:1)
at Object.task (packages/mongo/polling_observe_driver.js:90:12)
at [object Object].
.extend._run (packages/meteor/fiber_helpers.js:147:1)
at packages/meteor/fiber_helpers.js:125:1
- - - - -
at [object Object]. (/mnt/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:556:74)
at [object Object].emit (events.js:106:17)
at [object Object]. (/mnt/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)
at [object Object].emit (events.js:98:17)
at Socket. (/mnt/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)
at Socket.emit (events.js:95:17)
at net.js:441:14
at process._tickCallback (node.js:448:13)