You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
After my mongodb server goes down for around like 2 mins, I start getting this error. Also after the mongodb server is up after this point, no logs are getting added to mongo collection.
MongoError: server instance pool was destroyed
at Function.MongoError.create (/home/app/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:29:11)
at basicWriteValidations (/home/app/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:450:51)
at Server.insert (/home/app/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:542:16)
at Server.insert (/home/app/node_modules/mongodb/lib/server.js:390:17)
at insertDocuments (/home/app/node_modules/mongodb/lib/collection.js:744:19)
at insertOne (/home/app/node_modules/mongodb/lib/collection.js:439:3)
at /home/app/node_modules/mongodb/lib/collection.js:431:5
at new Promise (<anonymous>)
at Collection.insertOne (/home/app/node_modules/mongodb/lib/collection.js:430:10)
at process.nextTick (/home/app/node_modules/winston-mongodb/lib/winston-mongodb.js:217:44)
Hello,
After my mongodb server goes down for around like 2 mins, I start getting this error. Also after the mongodb server is up after this point, no logs are getting added to mongo collection.
The way I am setting up mongodb with winston:
I also tried with tryReconnect option but it didn't help.
Please let me know if I am doing it wrongly or do I need some workaround.
Thanks
The text was updated successfully, but these errors were encountered: