Server crash

Hi, the server crashes, think it might be to do with IMAP Node.

The last log entry before the crash is below:

     throw er; // Unhandled 'error' event
:       ^
 Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:205:27)
 Emitted 'error' event on ImapSimple instance at:
     at Connection.<anonymous> (/home/user/.npm-global/lib/node_modules/n8n/node_modules/imap-simple/lib/imapSimple.js:39:14)
     at Connection.emit (events.js:315:20)
    at TLSSocket._onError (/home/user/.npm-global/lib/node_modules/n8n/node_modules/imap/lib/Connection.js:151:10)
     at TLSSocket.emit (events.js:315:20)
    at TLSSocket._emitTLSError (_tls_wrap.js:892:10)
    at JSStreamSocket.<anonymous> (_tls_wrap.js:812:36)
     at JSStreamSocket.emit (events.js:315:20)
     at Socket.<anonymous> (internal/js_stream_socket.js:58:38)

Can anyone help fix this please,
thank you,

Sorry but do not see a way how we would be able to help you here. It is sadly to vague.
Debugging a problem is only possible if there is a way to reproduce it. So please try to find out when that happens. Then write down everything which we need to know to reproduce it.
So the workflow it is happening with (the most basic version of it, so in this case I guess only the IMAP Node), what kind of email is causing it (or if it literally happens with every one), what email service you connect to, your operating system, Node.js and n8n version, and everything else you think could be helpful to know. Thanks.

To help you focus your search, it appears as though the issue has to do with IMAP and the handling of SSL/TLS connections.

If this were me, my next step would be to see if the remote IMAP server is using a proper and updated SSL certificate.

Sorry I can’t be more specific but it is a bit of a start.