question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ECONNRESET on Windows

See original GitHub issue

See 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

6reactions
JadenHcommented, Mar 14, 2020

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 -k flag again and it works. Might have something to do with the purging and/or creating a data directory?

4reactions
andreialecucommented, Dec 18, 2019

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 --keep seems to make it start properly.

Would be nice to print the actual error that stopped the replica set from starting.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found