polonel / trudesk

:coffee: :seedling: Trudesk is an open-source help desk/ticketing solution.
http://trudesk.io
Other
1.31k stars 442 forks source link

Mailer check Error: read ECONNRESET #567

Closed teutat3s closed 1 year ago

teutat3s commented 2 years ago

Is this a BUG REPORT or FEATURE REQUEST?:

What happened: Mailer check crashed when trying to create a ticket from mail in Inbox

What did you expect to happen: Ticket should get created correctly

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

09-27-2022 11:47:32 [33178] info:           .                              .o8                     oooo
09-27-2022 11:47:32 [33178] info:         .o8                             "888                     `888
09-27-2022 11:47:32 [33178] info:       .o888oo oooo d8b oooo  oooo   .oooo888   .ooooo.   .oooo.o  888  oooo
09-27-2022 11:47:32 [33178] info:         888   `888""8P `888  `888  d88' `888  d88' `88b d88(  "8  888 .8P'
09-27-2022 11:47:32 [33178] info:         888    888      888   888  888   888  888ooo888 `"Y88b.   888888.
09-27-2022 11:47:32 [33178] info:         888 .  888      888   888  888   888  888    .o o.  )88b  888 `88b.
09-27-2022 11:47:32 [33178] info:         "888" d888b     `V88V"V8P' `Y8bod88P" `Y8bod8P' 8""888P' o888o o888o
09-27-2022 11:47:32 [33178] info:       ==========================================================================
09-27-2022 11:47:32 [33178] info:       trudesk v1.2.6 Copyright (C) 2014-2022 Chris Brame
09-27-2022 11:47:32 [33178] info:
09-27-2022 11:47:32 [33178] info:       Running in: development
09-27-2022 11:47:32 [33178] info:       Server Time: Tue Sep 27 2022 11:47:32 GMT+0000 (Coordinated Universal Time)
09-27-2022 11:47:32 [33178] info:       Connected to MongoDB
09-27-2022 11:47:35 [33178] debug:      Checking Default Settings...
09-27-2022 11:47:35 [33178] debug:      Timezone set to Europe/Berlin
09-27-2022 11:47:35 [33178] debug:      Registering Permissions...
09-27-2022 11:47:35 [33178] info:       SocketServer Running
09-27-2022 11:47:35 [33178] debug:      Starting MailCheck...
09-27-2022 11:47:35 [33178] debug:      Building dynamic sass...
09-27-2022 11:47:35 [33178] debug:      MailCheck: Nothing to Fetch.
09-27-2022 11:47:36 [33178] info:       Trudesk is now listening on port: 8118
09-27-2022 11:47:36 [33178] info:       trudesk Ready
09-27-2022 11:47:37 [33206] debug:      Pulled 2
09-27-2022 11:47:37 [33206] debug:      Cache Loaded
09-27-2022 11:48:22 [33178] debug:      User successfully connected: trudesk-admin
09-27-2022 11:48:25 [33178] debug:      Processing 1 Mail
09-27-2022 11:48:25 [33178] error:      read ECONNRESET - Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)

Environment:

teutat3s commented 2 years ago

Pinging @mrt-prodz, because I saw you worked on the Mailer check code. Do you have any idea what might be going wrong here? I'd be happy to help providing any other required debug logs.

mrt-prodz commented 2 years ago

Hello @teutat3s , this is rather strange we are using this on a daily basis and did not encounter this issue.

Could you maybe give us more info about the mailing service you are using ?

teutat3s commented 2 years ago

It's our own self-hosted mail server, it uses a valid Let's Encrypt TLS cert, dovecot for IMAP. I can confirm the initial connection is successful, because the mail status changes to "read".

mrt-prodz commented 2 years ago

As far as I understand the connection with your mailing service is working, marking the email as read but then suddenly disconnect throwing an ECONNRESET.

Since you control the mail service yourself do you see anything in the logs ?

teutat3s commented 2 years ago

No, I can't see anything wrong in the logs (timestamp is the same, but the first log is UTC):

Sep 27 13:47:35 localhost dovecot: imap-login: Login: user=<help@my.domain>, method=PLAIN, rip=xx.xx.xx.xx, lip=xx.xx.xx.xx, mpid=700, TLS, session=<3aLTNafpPp5VWBeo>
Sep 27 13:47:35 localhost dovecot: imap(help@my.domain): Logged out in=91 out=968
github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.