Repository: haraka/Haraka

Issue #1576: Crash: release called twice for the same resource
Created: 2016-08-29T23:16:28Z
Haraka version
2.8.8
Observed behavior
[ERROR] [806DE749-F0A2-4BA7-9F4D-74FCEDCBAE99.1.1] [outbound] Ongoing connection failed to cli.ent.ip.addr:25 : Error: write after end
[INFO] [-] [core] [outbound] [outbound::25:cli.ent.ip.addr:undefined:50] dispense() clients=0 available=1
[INFO] [806DE749-F0A2-4BA7-9F4D-74FCEDCBAE99.1.1] [outbound] Temp failing 1472505160080_1_5187_8878.relay for 128 seconds: Tried all MXs
[NOTICE] [806DE749-F0A2-4BA7-9F4D-74FCEDCBAE99.1.1] [outbound] delivered file=1472505160080_1_5187_8878.relay domain="--redacted--.com" host="staff.--redacted--.com" ip=cli.ent.ip.addr port=25 mode=SMTP tls=N auth=N response="" delay=7230.286 fails=2 rcpts=1/0/0
[ERROR] [-] [core] [outbound] [outbound::25:cli.ent.ip.addr:undefined:50] release called twice for the same resource: Error
    at Pool.release (/usr/lib/node_modules/Haraka/node_modules/generic-pool/lib/generic-pool.js:409:65)
    at release_client (/usr/lib/node_modules/Haraka/outbound.js:1228:10)
    at finish_processing_mail (/usr/lib/node_modules/Haraka/outbound.js:1477:9)
    at pluggableStream.<anonymous> (/usr/lib/node_modules/Haraka/outbound.js:1709:25)
    at emitOne (events.js:77:13)
    at pluggableStream.emit (events.js:169:7)
    at pluggableStream.socket.process_data (/usr/lib/node_modules/Haraka/line_socket.js:23:20)
    at pluggableStream.<anonymous> (/usr/lib/node_modules/Haraka/line_socket.js:34:48)
    at emitOne (events.js:77:13)
    at pluggableStream.emit (events.js:169:7)
[WARN] [-] [core] [outbound] Socket [outbound::25:cli.ent.ip.addr:undefined:50] in pool got FIN
[INFO] [-] [core] [outbound] [outbound::25:cli.ent.ip.addr:undefined:50] force destroying all objects
[CRIT] [-] [core] Error: Callback was already called.
[CRIT] [-] [core]     at /usr/lib/node_modules/Haraka/node_modules/async/lib/async.js:43:36
[CRIT] [-] [core]     at HMailItem.hmail.next_cb (/usr/lib/node_modules/Haraka/outbound.js:98:9)
[CRIT] [-] [core]     at /usr/lib/node_modules/Haraka/outbound.js:2131:15
[CRIT] [-] [core]     at FSReqWrap.oncomplete (fs.js:82:15)
[NOTICE] [-] [core] Shutting down
root@relay:#

Duplicate issue #2304: Haraka crashed.
Created: 2017-11-29T14:35:13Z
system info



Haraka
Haraka.js — Version: 2.8.16




Node
v6.11.3


OS
Linux server.inwebse.org 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


openssl
OpenSSL 1.0.2k-fips  26 Jan 2017



Logs (last 100 lines) - https://gist.github.com/MrSorcus/4214a559895f1165e1fd2e254cfefd6a

Closing comment (2017-12-01T15:05:37Z): Duplicate of #1576, #2202 and #2222

…
On Fri, Dec 1, 2017 at 9:37 AM, MrSorcus ***@***.***> wrote:
 Crashed again

 2017-11-30T23:30:44.305Z [CRIT] [-] [core] Error: We are already running hooks! Fatal error!
 2017-11-30T23:30:44.305Z [CRIT] [-] [core]     at Object.plugins.run_hooks (/usr/lib/node_modules/Haraka/plugins.js:403:15)
 2017-11-30T23:30:44.305Z [CRIT] [-] [core]     at Connection.process_line (/usr/lib/node_modules/Haraka/connection.js:369:21)
 2017-11-30T23:30:44.305Z [CRIT] [-] [core]     at Connection._process_data (/usr/lib/node_modules/Haraka/connection.js:493:18)
 2017-11-30T23:30:44.305Z [CRIT] [-] [core]     at Connection.process_data (/usr/lib/node_modules/Haraka/connection.js:404:10)
 2017-11-30T23:30:44.305Z [CRIT] [-] [core]     at pluggableStream.<anonymous> (/usr/lib/node_modules/Haraka/connection.js:136:14)
 2017-11-30T23:30:44.305Z [CRIT] [-] [core]     at emitOne (events.js:96:13)
 2017-11-30T23:30:44.306Z [CRIT] [-] [core]     at pluggableStream.emit (events.js:188:7)
 2017-11-30T23:30:44.306Z [CRIT] [-] [core]     at TLSSocket.<anonymous> (/usr/lib/node_modules/Haraka/tls_socket.js:57:14)
 2017-11-30T23:30:44.306Z [CRIT] [-] [core]     at emitOne (events.js:96:13)
 2017-11-30T23:30:44.306Z [CRIT] [-] [core]     at TLSSocket.emit (events.js:188:7)
 2017-11-30T23:30:44.362Z [NOTICE] [-] [core] Shutting down

 —
 You are receiving this because you are subscribed to this thread.
 Reply to this email directly, view it on GitHub
 <#2304 (comment)>, or mute
 the thread
 <https://github.com/notifications/unsubscribe-auth/AAobYz_Ot8S9fHqVId8CjtKDrxTAeH4qks5s8A9EgaJpZM4QvDww>
 .