Control: retitled -1 anacron: upgrade hangs on "Setting up anacron (2.3-48) ..." for any jobs waiting to be run

On 4/13/26 6:11 PM, Vincent Lefevre wrote:
On 2026-04-13 12:22:23 +0200, Jean-Marc wrote:
Upgrading anacron:amd64 from 2.3-47 to 2.3-48 today on my Debian sid without
any issue or nor freeze.

I used apt and not aptitude.

I've just upgraded anacron:amd64 from 2.3-47 to 2.3-48 on another
machine with aptitude, and there were no issues. But I did not get

   Will run job `cron.daily' in 5 min.
   Will run job `cron.weekly' in 10 min.

in the journalctl output.

Thank you for testing. I reproduced this with 2.3-47 to 2.3-48 and 2.3-43 to 2.3-48. If no jobs need to be run or have already run, the upgrade will not hang.

So, cron.daily & cron.weekly jobs are normally run at around 7:30
(every day for cron.daily, every week for cron.weekly). But on this
machine, when I upgraded, it did not wait for 7:30.

Or is this forced when the deadline is close enough, e.g. a few hours
before cron.weekly jobs should be run?

During an upgrade, anacron will run any jobs waiting to be run for that day. anacron does not check to make sure jobs are run in the timer window but anacron checks if the day is correct for running a job.

I think the issue could be "Type=oneshot" added to the service file in the latest release so I plan to upload a new version to experimental without this change for testing.

--
Lance Lin
GPG Fingerprint: 4A31 DB5A 1EE4 096C 8739 9880 9036 4929 4C33 F9B7

Attachment: OpenPGP_0x903649294C33F9B7.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to