In the server logs after a process has been successfully connected to mongo via node 6.11.1 and mongoose 4.10.4 I started seeing this error:
MongoError: failed to connect to server [aws-us-east-1-portal.8.dblayer.com:15180] on first connect [MongoError: connection 0 to aws-us-east-1-portal.8.dblayer.com:15180 timed out]
During this time, mongoose recognized an issue:
mongoose.connection.readyState
had a value of 0.
What else can I do to debug the connection issue? Is there some other way I can inspect this or figure out what's going on and how to resolve it?
The mongo database (version 3.2.10) is actually running over at compose.io and during this time the compose.io interface is showing all healthy statuses for the database.
- Node: 6.11.1
- Mongoose 4.10.4
- MongoDB: 3.2.10