Page MenuHomePhabricator

stunnel4 keeps not exiting cleanly on Bookworm(?)
Closed, ResolvedPublic

Description

Observing frequent "stunnel4 did not exit cleanly and thus cannot be restarted" issues on deploy2003. While this isn't unheard of, the frequency with which it happens here (multiple times a week) is a problem.

Investigation needed to see if this is a bookworm issue or an OS-independent "new deployment server" issue.

Event Timeline

Change #1310589 had a related patch set uploaded (by Kamila Součková; author: Kamila Součková):

[operations/puppet@production] modules/rsync: add pidfile to stunnel.conf

https://gerrit.wikimedia.org/r/1310589

Mentioned in SAL (#wikimedia-operations) [2026-07-16T14:21:10Z] <kamila@deploy2003> Started scap sync-world: Test deployment to check rsync is working - T432108

Mentioned in SAL (#wikimedia-operations) [2026-07-16T14:21:44Z] <kamila@deploy2003> sync-world aborted: Test deployment to check rsync is working - T432108 (duration: 00m 36s)

Mentioned in SAL (#wikimedia-operations) [2026-07-16T14:24:58Z] <kamila@deploy2003> Started scap sync-world: Test deployment to check rsync is working - T432108

Mentioned in SAL (#wikimedia-operations) [2026-07-16T14:27:55Z] <kamila@deploy2003> Finished scap sync-world: Test deployment to check rsync is working - T432108 (duration: 02m 57s)

Change #1310589 merged by Clément Goubert:

[operations/puppet@production] modules/rsync: add pidfile to stunnel.conf

https://gerrit.wikimedia.org/r/1310589

Looks like this caused T432442 on gerrit and releases hosts which was kind of my concern with that patch. Have not looked yet if it was only temporary though.

Looks like this caused T432442 on gerrit and releases hosts which was kind of my concern with that patch. Have not looked yet if it was only temporary though.

Yep, I think I fixed all of them when they popped up. Otherwise the fix is pkill stunnel4 && run-puppet-agent

This should be resolved, feel free to reopen if not.