ECONNRESET on Windows
See original GitHub issueSee below:
PS D:\> run-rs --keep --host 192.168.100.5
Skipping purge
Running 'C:\Users\x\AppData\Roaming\nvm\v12.8.0\node_modules\run-rs\4.0.12\mongod.exe' [ 27017, 27018, 27019 ]
Restarting replica set...
events.js:180
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:183:27)
Emitted 'error' event at:
at Socket.<anonymous> (C:\Users\x\AppData\Roaming\nvm\v12.8.0\node_modules\run-rs\node_modules\mongodb-core\lib\connection\connection.js:321:10)
at Object.onceWrapper (events.js:291:20)
at Socket.emit (events.js:203:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
name: 'MongoNetworkError',
errorLabels: [ 'TransientTransactionError' ],
[Symbol(mongoErrorContextSymbol)]: {}
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
How to Fix Error: Read ECONNRESET on Windows 10? Easy ...
The Error: Read ECONNRESET is an error that pops up when trying to read the data from a socket. This socket might have...
Read more >net Node.js Error: read ECONNRESET (on Windows)
Error: read ECONNRESET at errnoException (net.js:904:11) at TCP.onread (net.js:558:19). I attempted to catch the error in the server code with c.on("error" ...
Read more >Connection lost - read ECONNRESET (Node.JS Error)
This is a node.js application im running on my local PC not on any azure service, However i am connecting to an azure...
Read more >How to resolve ECONNRESET error?.. i am using a ... - Reddit
How to resolve ECONNRESET error?.. i am using a Windows Server, Backed is Nodejs and Front end is React JS. While starting the...
Read more >Npm command execution is failing throwing ECONNRESET
Developer Community. Your open channel to Microsoft engineering teams. Select a page .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I also came across this issue, and it only occurred the first time I used run-rs. After a data directory gets created you can use the
-kflag again and it works. Might have something to do with the purging and/or creating a data directory?Seems to be some sort of error with the data directory, the same data directory works when using Windows Subsystem for Linux. Maybe there’s some incompatibility between Mongo for Linux and Win32’s data directories.
Running it without
--keepseems to make it start properly.Would be nice to print the actual error that stopped the replica set from starting.