node.jsmongodbshardingnode.js-connectconnect-mongo

MongoDB: mongos process, node-mongodb-native, connect-session-mongo


I'm using the node-mongodb-native driver with connect-session-mongo. When I use connect-session-mongo with the Mongos it throws an error in the set method of connect-session-mongo:

[Error: no open connections]

It seems to work just fine if I comment out the connect-session-mongo code. Anyone else using both those together with sharding?

It was fine with replica-set only, but when we setup sharding on a test instance it has been a nightmare.

Any ideas how to get them to play nice? Should I run a second mongos process for each?


Solution

  • Fixed in Node.JS Mongo Driver update 1.1.5.