[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1052247: Blocks (ana)cron daily jobs and system shutdown for too long



Control: fixed -1 0.1.58
Control: fixed -1 0.1.56~deb12u2
Control: close -1

On  Di 19 Sep 2023 14:33:05 CEST, Guido Berhoerster wrote:

Package: sitesummary-client
Version: 0.1.57

The sitesummary-client daily cron job jurrently has a random delay of up
to one hour which is intended to prevent all clients in a network from
submitting their reports at the same time overloading the server.

This has some unfortunate consequences, anacron uses run-parts which
runs scripts sequentially so it also holds up execution of all scripts
ordered after it and since bookworm the anacron systemd service has an
infinite stop timeout (see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915379#38) which means
that stopping/restarting the anacron service is blocked until execution
has finished.

This is particularly bad in case of shutdown or reboot which may be
blocked for up to an hour without any means to override execept a hard
power off.

IMHO both the lack of timeout in anacron and sleep in the cron.daily
script are problematic.

There are two possible solutions:

- a shorter maximum delay
- stop using anacron and rely on systemd timers which support random delays

This issue has been resolved by uploads 0.1.58 (testing/unstable) and 0.1.56~deb12u2 (bookworm). Unfortunately, I forgot to mention this in d/changelog when uploading.

@Guido: please always(!) put the "Closes #XXXXXX" statement always in the first line of a Git commit. Otherwise gbp dch won't add it to d/changelog. Furthermore: multi-line/-paragraph Git commits are not handled well by gbp dch (the tool with which we create d/changelog). Those lines get simply ignored and I tend to forget moving over additional information from the Git commits over into d/changelog. Please help, easing the d/changelog creation workflow. Thanks!

Greets,
Mike
--

mike gabriel aka sunweaver (Debian Developer)
mobile: +49 (1520) 1976 148
landline: +49 (4351) 486 14 27

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: sunweaver@debian.org, http://sunweavers.net

Attachment: pgpD7w3UffC6Y.pgp
Description: Digitale PGP-Signatur


Reply to: