Socketio.1 Error: getting ECONNRESET msg and later server stops

The logs here should give you clues
frappe@erpnext:~/frappe-bench$ find logs -name ‘.’ | xargs grep ‘socket’

Am Getting this error

13:48:28 socketio.1 | method: ‘GET’,
13:48:28 socketio.1 | path: ‘/api/method/frappe.async.get_user_info’ },
13:48:28 socketio.1 | accepted: false,
13:48:28 socketio.1 | noContent: false,
13:48:28 socketio.1 | badRequest: false,
13:48:28 socketio.1 | unauthorized: false,
13:48:28 socketio.1 | notAcceptable: false,
13:48:28 socketio.1 | forbidden: false,
13:48:28 socketio.1 | notFound: false,
13:48:28 socketio.1 | type: ‘text/html’,
13:48:28 socketio.1 | charset: ‘utf-8’,
13:48:28 socketio.1 | links: {},
13:48:28 socketio.1 | setEncoding: [Function: bound ],
13:48:28 socketio.1 | redirects: [] } }
13:48:28 web.1 | ----------------------------------------
13:48:28 web.1 | Exception happened during processing of request from127.0.0.1 - - [14/Nov/2017 13:48:28] “GET /api/method/frappe.async.get_user_info HTTP/1.1” 200 -
13:48:28 web.1 | 127.0.0.1 - - [14/Nov/2017 13:48:28] “GET /api/method/frappe.async.get_user_info HTTP/1.1” 200 -
13:48:28 web.1 | ('127.0.0.1’127.0.0.1 - - [14/Nov/2017 13:48:28] “GET /api/method/frappe.async.get_user_info HTTP/1.1” 200 -
13:48:28 web.1 | 127.0.0.1 - - [14/Nov/2017 13:48:28] “GET /api/method/frappe.async.get_user_info HTTP/1.1” 200 -
13:48:28 socketio.1 | { Error: read ECONNRESET
13:48:28 socketio.1 | at exports._errnoException (util.js:1020:11)
13:48:28 socketio.1 | at TCP.onread (net.js:568:26)
13:48:28 socketio.1 | code: ‘ECONNRESET’,
13:48:28 socketio.1 | errno: ‘ECONNRESET’,
13:48:28 socketio.1 | syscall: ‘read’,
13:48:28 socketio.1 | response: undefined }
13:48:28 socketio.1 | { Error: read ECONNRESET
13:48:28 socketio.1 | at exports._errnoException (util.js:1020:11)
13:48:28 socketio.1 | at TCP.onread (net.js:568:26)
13:48:28 socketio.1 | code: ‘ECONNRESET’,
13:48:28 socketio.1 | errno: ‘ECONNRESET’,
13:48:28 socketio.1 | syscall: ‘read’,
13:48:28 socketio.1 | response: undefined }
13:48:28 web.1 | 127.0.0.1 - - [14/Nov/2017 13:48:28] “GET /api/method/frappe.async.get_user_info HTTP/1.1” 200 -
13:48:28 web.1 | , 54358)
13:48:28 web.1 | Traceback (most recent call last):
13:48:28 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 596, in process_request_thread
13:48:28 web.1 | self.finish_request(request, client_address)
13:48:28 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 331, in finish_request
13:48:28 web.1 | self.RequestHandlerClass(request, client_address, self)
13:48:28 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 650, in init
13:48:28 web.1 | self.setup()
13:48:28 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 703, in setup
13:48:28 web.1 | 127.0.0.1 - - [14/Nov/2017 13:48:28] “GET /api/method/frappe.async.get_user_info HTTP/1.1” 200 -
13:48:28 web.1 | 127.0.0.1 - - [14/Nov/2017 13:48:28] “GET /api/method/frappe.async.get_user_info HTTP/1.1” 200 -
13:48:28 web.1 | self.wfile = self.connection.makefile(‘wb’, self.wbufsize)
13:48:28 web.1 | error: [Errno 24] Too many open files
13:48:28 web.1 | ----------------------------------------
13:48:28 socketio.1 | { Error: socket hang up
13:48:28 socketio.1 | at createHangUpError (_http_client.js:254:15)
13:48:28 socketio.1 | at Socket.socketOnEnd (_http_client.js:346:23)
13:48:28 socketio.1 | at emitNone (events.js:91:20)
13:48:28 socketio.1 | at Socket.emit (events.js:185:7)
13:48:28 socketio.1 | at endReadableNT (_stream_readable.js:974:12)
13:48:28 socketio.1 | at _combinedTickCallback (internal/process/next_tick.js:80:11)
13:48:28 socketio.1 | at process._tickCallback (internal/process/next_tick.js:104:9) code: ‘ECONNRESET’, response: undefined }

Some more details please and things to try -

What version ERPNext?

When did you last run ‘bench update’ and ‘sudo apt-get update’?

With this

at process._tickCallback (internal/process/next_tick.js:104:9) code: ‘ECONNRESET’,

Open a web browser console to check for a JS error

You have checked in for eg logs/node-socketio.error.log for more clues?

Run this
frappe@erpnext:~/frappe-bench$ sudo supervisorctl restart all

Reinstall socketio?
bench setup socketio