Bug#1052247: Blocks (ana)cron daily jobs and system shutdown for too long
Mike Gabriel <[email protected]>
| Newsgroups | gmane.linux.skolelinux.devel |
|---|---|
| Organization | DAS-NETZWERKTEAM |
| Message-ID | <20231119094947.Horde.USP1jFK5Q3iAIVy1N_6LNK1__35396.3902148948$1700387682$gmane$org@mail.das-netzwerkteam.de> |
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: [email protected], http://sunweavers.net
signature.asc
(application/pgp-signature, 851 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAABCgAdFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmVZ2joACgkQmvRrMCV3 GzGbgBAAlr4tfZz6MADOgV6ShPk+zzxhq3UOHZ4q/XE8IlYeJdh3s6oh2V5a+inX +0QTwk79sRCSFyMzq5QSX4tPvyCKQ2p9yanGRqMQ7q4J4vRD9en6Qk3LU5SUuMQf 6P7AgogC9U9DpYVks/v1UVaG6Yhqw6P6AYRETEfU8STvNgn9kZo3CM7veQMrqB8v sqdsJYBdT6APceK+TM5qjF6ms2pAz2h9QCsy6NAGzsz/czz7FrR4Uu0hEPc3VJhH KG7+RBp63LRR9kUG+qTvFRiZcHYfn3Ly2RPdo6TemvVLfqr0yG7NuSoYk/hhLvWg zYlBiTlk+kfS72Tdd1ZKpx35Hj+QsFYRW2CNz4a8E4rGz7B738lQyTW3ryiDzDyE DE5u1nydAzSM1+S05fl0TeLJfE4d/7frD5RCtshkN9VDJLu6E9u0jXbtN8M1qM4t tPmxCK8fcsmlxPiJe+uwPQux3PIm6PaVC6QCMgXt4G/vyPhkYF4JMWtdfiQN88mK ElKoO4yDEusVso0YIatibnr7R5tWxwJLRKPcRbOdDZvqBswhI5tHEbeeqrxA9ywI DZcbs2KGiqQE4Y+/Fvqf017ARnQYQxDHNg64ZNI681B8Ufftp4U2pqLISlAh0DXs h8Uz1E0d7mDfqh7vp1nYnyCA7E02CvZLjNWa7Ituws6j5R8uQ+k= =kY64 -----END PGP SIGNATURE-----