Haraka: Error: Callback was already called
I’m getting this crash about once or twice a week on average. I can’t quite put together what the problem may be. During the times of failure, it appears the server is processing several mails simultaneously, so that makes it more difficult to pin down (or is a clue). However, in all of the cases just before the crash, there does appear to be a socket or delivery failure of various causes (time out, hang up, grey-listing delay, etc), so perhaps that is a clue. It is always in Outbound delivery. I’ll show a less busy log snippet as an example:
[11:10:43] [ERROR] [-] [outbound] Ongoing connection failed to 25.10.148.12:25 : Error: socket hang up
[11:10:43] [DEBUG] [-] [core] [outbound] release_client: 25.10.148.12:25 to undefined
[11:10:43] [DEBUG] [-] [core] Temp fail for: Tried all MXs
[11:10:43] [DEBUG] [-] [outbound] running deferred hooks
[11:10:43] [INFO] [-] [outbound] Temp failing 1496848206803_1496848302397_1_7660_YYOOgO_411_omega12 for 128 seconds: Tried all MXs
[11:10:43] [CRIT] [-] [core] Error: Callback was already called.
[11:10:43] [CRIT] [-] [core] at C:\Haraka\npm\node_modules\Haraka\node_modules\async\dist\async.js:903:32
[11:10:43] [CRIT] [-] [core] at HMailItem.hmail.next_cb (C:\Haraka\npm\node_modules\Haraka\outbound\queue.js:41:9)
[11:10:43] [CRIT] [-] [core] at C:\Haraka\npm\node_modules\Haraka\outbound\hmail.js:1251:15
[11:10:43] [CRIT] [-] [core] at FSReqWrap.oncomplete (fs.js:114:15)
[11:10:43] [NOTICE] [-] [core] Shutting down
In every case, the server immediately restarts and then successfully delivers whatever mail it crashed on. I’ve tried to find a technique to reproduce this error but have been unsuccessful. I’d appreciate any advice on how to track this problem down and fix it.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 42 (8 by maintainers)
Email and being bored in a taxi helps hana
On 3 Feb 2018 18:29, “Sergei Sleptsov” notifications@github.com wrote:
I should’ve fixed this which’ll be available in the next release
On 3 Feb 2018 18:24, “Sergei Sleptsov” notifications@github.com wrote:
Some extra eyes would be much appreciated. My job has been extraordinarily demanding lately (with excessive travel and unrealistic overtime) and I have had almost no time to properly debug this since it started for me. I can add some minor additional info. I see 3 distinct ways to get this error:
I don’t have many continuous hours of free time, but I’d like to help where I can.