1

I'm running a NodeJs server on linux and after several hours up it crashes:

events.js:72
        throw er; // Unhandled 'error' event
          ^
Error: write EIO
    at errnoException (net.js:901:11)
    at Object.afterWrite (net.js:718:19)

Can anyone help me please?? Why downvoting?

Glow
  • 31
  • 4
  • Have you looked at this?http://stackoverflow.com/questions/17035399/why-this-error-happend-nodejs-error-write-eio – Pedro Apr 12 '16 at 19:18
  • Can you tell me what version of node you're running (type ```node -v?``` in bash)? I'm looking at net.js in the node.js library currently available on github and line 901 seems to be a blank line... and the line after is ```if (pipe) {``` which doesn't seem likely to be connected to the error you're having. Similarly, line 718 is just ```case 'ucs2':``` which seems unlikely to be causing this particular exception. – Peter David Carter Apr 12 '16 at 19:18
  • @Pedro: Thanks but i'm running Linux – Glow Apr 13 '16 at 16:58
  • @Peter David Carter v4.4.2 – Glow Apr 13 '16 at 17:00
  • @Pedro: Please read the complete question before answering. – Glow Apr 13 '16 at 17:09
  • I read the complete question, did not answer, and know you're running Linux. I wondered if there would be overlap in the solutions. Clearly there was not. – Pedro Apr 13 '16 at 17:14

1 Answers1

0

I actually managed to fix it. This helped a lot: How to make a node.js application run permanently?

The problem was that the process was trying to write into a closed terminal.

Community
  • 1
  • 1
Glow
  • 31
  • 4