Skip to content

Instantly share code, notes, and snippets.

@wesbos
Created September 16, 2013 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesbos/ebaeb5cee63f8ddd4171 to your computer and use it in GitHub Desktop.
Save wesbos/ebaeb5cee63f8ddd4171 to your computer and use it in GitHub Desktop.
err Mon, 16 Sep 2013 14:07:03 GMT Error: Cannot write to a secondary
at canCheckoutWriter (/opt/run/snapshot/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:706:12)
at Server.checkoutWriter (/opt/run/snapshot/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:723:16)
at __executeInsertCommand (/opt/run/snapshot/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1683:38)
at Db._executeInsertCommand (/opt/run/snapshot/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1798:5)
at Collection.update (/opt/run/snapshot/package/node_modules/mongoose/node_modules/mongodb/lib/mongodb/collection.js:487:13)
at NativeCollection.(anonymous function) [as update] (/opt/run/snapshot/package/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:129:21)
at Query.update (/opt/run/snapshot/package/node_modules/mongoose/lib/query.js:1981:20)
at Function.update (/opt/run/snapshot/package/node_modules/mongoose/lib/model.js:1511:16)
at SessionStore.module.exports.SessionStore.set (/opt/run/snapshot/package/node_modules/session-mongoose/index.js:139:31)
at Session.save (/opt/run/snapshot/package/node_modules/express/node_modules/connect/lib/middleware/session/session.js:63:25)
at ServerResponse.res.end (/opt/run/snapshot/package/node_modules/express/node_modules/connect/lib/middleware/session.js:283:19)
at SendStream.notModified (/opt/run/snapshot/package/node_modules/express/node_modules/send/lib/send.js:223:7)
at SendStream.send (/opt/run/snapshot/package/node_modules/express/node_modules/send/lib/send.js:353:17)
at SendStream.pipe (/opt/run/snapshot/package/node_modules/express/node_modules/send/lib/send.js:322:10)
at Object.oncomplete (fs.js:297:15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment