<p>[Background]<br>
On posix/unix systems, when you send a SIGTERM to a process, it should save all data and gracefully shut down.</p>
<p>[How to Reproduce]</p>
<ol>
<li>Prepare a Bisq Seednode using installer script</li>
<li>Start the Bisq Seednode service</li>
<li>Wait a few minutes</li>
<li>Stop the Bisq Seednode service</li>
</ol>
<p>[Expected Result]<br>
After step 4, Bisq should save all data and gracefully shut down within a few seconds.</p>
<p>[Actual Result]<br>
Bisq's child Tor process gracefully shuts down, but Bisq does not. For the next 60 seconds, Bisq floods the logs with Tor connection failure errors, until systemd forcefully <code>kill -9</code>'s the Java process</p>
<p>[Log Snippet]</p>
<pre><code>Jan 10 08:15:05 wizvm bisq-seednode[68826]: #011message=GetPeersRequest
Jan 10 08:15:05 wizvm bisq-seednode[68826]: #011throwable=java.io.IOException: Cannot connect to hidden service
Jan 10 08:15:05 wizvm bisq-seednode[68826]: #033[0;39m#033[34mJan-10 08:15:05.939 [SeedNodeMain] INFO  b.n.p.n.NetworkNode: onFailure at sendMessage: peersNodeAddress=extj4rlmchb3zzzn.onion:9999
Jan 10 08:15:05 wizvm bisq-seednode[68826]: #011message=GetPeersRequest
Jan 10 08:15:05 wizvm bisq-seednode[68826]: #011throwable=java.io.IOException: Cannot connect to hidden service
Jan 10 08:15:06 wizvm bisq-seednode[68826]: #033[0;39m#033[34mJan-10 08:15:06.339 [NetworkNode:SendMessage-to-bcrhutzsmvgvp6lh.onion:9999] INFO  b.n.p.n.NetworkNode: onFailure at sendMessage: peersNodeAddress=bcrhutzsmvgvp6lh.onion:9999
Jan 10 08:15:06 wizvm bisq-seednode[68826]: #011message=GetPeersRequest
Jan 10 08:15:06 wizvm bisq-seednode[68826]: #011throwable=java.io.IOException: Cannot connect to hidden service
Jan 10 08:15:06 wizvm bisq-seednode[68826]: #033[0;39m#033[34mJan-10 08:15:06.540 [SeedNodeMain] INFO  b.n.p.n.NetworkNode: onFailure at sendMessage: peersNodeAddress=ikicl65q45twvmyu.onion:9999
Jan 10 08:15:06 wizvm bisq-seednode[68826]: #011message=GetPeersRequest
Jan 10 08:15:06 wizvm bisq-seednode[68826]: #011throwable=java.io.IOException: Cannot connect to hidden service
Jan 10 08:15:06 wizvm systemd[1]: bisq-seednode.service: State 'stop-sigterm' timed out. Killing.
Jan 10 08:15:06 wizvm bisq-seednode[68826]: #033[0;39m
Jan 10 08:15:06 wizvm systemd[1]: bisq-seednode.service: Main process exited, code=killed, status=9/KILL
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/3884?email_source=notifications&email_token=AJFFTNWTQ2CMAVJI6ND7LWLQ46WKDA5CNFSM4KE75HCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFGN2CQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNVU22EM76SXD2ZMARDQ46WKDANCNFSM4KE75HCA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNW5WJ3YHEAQFGUNGRLQ46WKDA5CNFSM4KE75HCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFGN2CQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/3884?email_source=notifications\u0026email_token=AJFFTNWTQ2CMAVJI6ND7LWLQ46WKDA5CNFSM4KE75HCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFGN2CQ",
"url": "https://github.com/bisq-network/bisq/issues/3884?email_source=notifications\u0026email_token=AJFFTNWTQ2CMAVJI6ND7LWLQ46WKDA5CNFSM4KE75HCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFGN2CQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>