I am a beginner at MongoDB and in my course I was learning how to create add transaction feature in my E-Commerce website, but for that I have to create replication of MongoDB and I am facing an error in that.
OS: Windows 11
In order to start the relocation server I have to shut down the server right, but when I run this command in mongosh, I get the following error,
test> db.shutdownServer()
Error: read ECONNRESET
If I ignore this error and go ahead with the procedure to start the relocation server with the next command than I get stuck in an infinite loop.
mongod -replSet rs0 -dbpath “C:Program FilesMongoDBServer7.0data”
I get a never ending loop. I have been trying to get this fixed and I am really desperate for a solution. Please help me out
test> db.shutdownServer()
Error: read ECONNRESET
this is the main issue, also the infinite loop that I am getting on entering the command,
mongod -replSet rs0 -dbpath “C:Program FilesMongoDBServer7.0data”
Gaurang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.