Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('socket timeout waiting on quit') #3388

Open
tabascoterrier opened this issue Aug 6, 2024 · 0 comments

Comments

@tabascoterrier
Copy link

Describe the bug

I had a few Haraka process crashes the other day over the space of about an hour, with an error I'd not seen before. Presumably caused by a particular destination server misbehaving for a while, and the error hasn't occurred again since, so it seems to be a very rare occurence.

Sadly I can't pin it down to a particular server or reproduce it, however I was hoping it might be related to / shed some light on #2807

Expected behavior

Haraka to handle the error gracefully

Observed behavior

Haraka process crashes with this error

{"level":"CRIT","uuid":"-","origin":"core","message":"Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('socket timeout waiting on quit')"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at pluggableStream.emit (node:events:508:17)"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at pluggableStream.<anonymous> (/usr/lib/node_modules/Haraka/outbound/hmail.js:394:20)"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at Object.onceWrapper (node:events:633:28)"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at pluggableStream.emit (node:events:519:28)"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at TLSSocket.<anonymous> (/usr/lib/node_modules/Haraka/tls_socket.js:93:18)"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at TLSSocket.emit (node:events:519:28)"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at Socket._onTimeout (node:net:590:8)"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at listOnTimeout (node:internal/timers:573:17)"}
{"level":"CRIT","uuid":"-","origin":"core","message":"    at process.processTimers (node:internal/timers:514:7)"}

Steps To Reproduce

Unable to reproduce

System Info

Haraka Haraka.js — Version: 3.0.3
Node v20.13.1
OS Linux 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
openssl OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant