Bug#1019554: anacron: Anacron no longer seems to execute jobs
Package: anacron Version: 2.3-34 Followup-For: Bug #1019554 Dear Maintainer, It seems that those symlinks(/etc/systemd/system/multi-user.target.wants/anacron.service and /etc/systemd/system/timers.target.wants/anacron.timer) are not "dangling". My testing in a debootstrap sid shows that installing anacron=2.3-32 will create those symlinks and purging the anaron package will remove those symlinks. It seems that those symlinks are handled by deb-systemd-helper in anacron.post{inst,rm}: segment in anacron.postinst: # Automatically added by dh_installsystemd/13.9.1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon figure" ] || [ "$1" = "abort-remove" ] ; then # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'anacron.service' >/dev/null || true # was-enabled defaults to true, so new installations run enable. if deb-systemd-helper --quiet was-enabled 'anacron.service'; then # Enables the unit on first installation, creates new # symlinks on upgrades if the unit file has changed. deb-systemd-helper enable 'anacron.service' >/dev/null || true else # Update the statefile to add new symlinks (if any), which need to be # cleaned up on purge. Also remove old symlinks. deb-systemd-helper update-state 'anacron.service' >/dev/null || true fi fi # End automatically added section segment in anacron.postrm: # Automatically added by dh_installsystemd/13.9.1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'anacron.service' 'anacron.timer' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'anacron.service' 'anacron.timer' >/dev/null || true deb-systemd-helper unmask 'anacron.service' 'anacron.timer' >/dev/null || true fi fi # End automatically added section deb-systemd-helper is included in the init-system-helpers package, which is a essential package meaning it will be installed in all Debian system. So those symlinks will be purged when the anacron package is purged. On Mon, 19 Sep 2022 12:59:59 + Lance Lin wrote: > # Close bug #993348 > rm /etc/systemd/system/multi-user.target.wants/anacron.service > rm /etc/systemd/system/timers.target.wants/anacron.timer And concerning your proposed changes, it seems to me that if anacron.service or anacron.timer were disabled, these rm will cause anacron.postrm exited with error. So I think there is no need to manually handle those symlinks and anacron.postrm should be reverted to the 2.3-32 revision. -- System Information: Debian Release: bookworm/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.19.0-1-amd64 (SMP w/2 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages anacron depends on: ii libc6 2.34-8 ii sysvinit-utils [lsb-base] 3.05-5 Versions of packages anacron recommends: ii cron [cron-daemon] 3.0pl1-149 Versions of packages anacron suggests: ii exim4-daemon-light [mail-transport-agent] 4.96-4 ii powermgmt-base 1.37 ii rsyslog [system-log-daemon]8.2208.0-1 -- no debconf information
Bug#1019554: anacron: Anacron no longer seems to execute jobs
Package: anacron Version: 2.3-34 Followup-For: Bug #1019554 Anacron seems to be failing for me recently also. But in my case, an additional factor has changed (besides the new version of anacron): I recently changed my power management settings to suspend my computer when idle. I have a backup script in root's crontab (set using "crontab -e") that is supposed to run every night at 2am. Now the computer is asleep at that hour, and the script does not get run any time the next day either when the computer is awake. -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing'), (400, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.19.0-1-amd64 (SMP w/32 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages anacron depends on: ii libc6 2.34-7 ii lsb-base 11.2 Versions of packages anacron recommends: ii cron [cron-daemon] 3.0pl1-149 Versions of packages anacron suggests: ii dma [mail-transport-agent] 0.13-1+b1 ii powermgmt-base 1.37 ii rsyslog [system-log-daemon] 8.2208.0-1 -- no debconf information
Bug#1019554: anacron: Anacron no longer seems to execute jobs
Package: anacron Version: 2.3-34 Followup-For: Bug #1019554 Dear Maintainer, I experience the same bug after the last upgrade. Anacron does no longer execute jobs on both of my Debian/testing installations. Reading the already happened conversation, I now started anacron manually with: # service anacron start The anacron service now runs again; checked with: # ps auxwww root 249421 0.0 0.0 14480 1060 ?Ss 08:03 0:00 /usr/sbin/anacron -d -q -s I will now wait, if anacron executes jobs again and for an upgraded package which will fix the bug. Thank you very much. Sincerely, Adrian Kiess -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (990, 'testing') merged-usr: no Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.19.0-1-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages anacron depends on: ii libc6 2.34-7 ii lsb-base 11.2 Versions of packages anacron recommends: ii cron [cron-daemon] 3.0pl1-149 Versions of packages anacron suggests: ii exim4-daemon-heavy [mail-transport-agent] 4.96-3 ii powermgmt-base 1.37 ii rsyslog [system-log-daemon]8.2208.0-1 -- Configuration Files: /etc/cron.d/anacron changed: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 30 21 * * * root [ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi -- no debconf information
Bug#1019554: anacron: Anacron no longer seems to execute jobs
Package: anacron Version: 2.3-34 Severity: important Since the upgrade to 2.3-34 anacron no longer seems to execute jobs. I just expected my weekly cron jobs, but nothing happened. Since most (ana)cronjobs are silent, it's hard to notice, but the (most important) weekly jobs are not run. Looking at my logs I noticed that the anacron log messages changed a lot after the last update: Sep 4 06:07:24 twentytwo anacron[818]: Job `cron.daily' started Sep 4 06:07:24 twentytwo anacron[6013]: Updated timestamp for job `cron.daily' to 2022-09-04 Sep 4 06:07:25 twentytwo anacron[818]: Job `cron.daily' terminated Sep 4 06:07:25 twentytwo anacron[818]: Normal exit (1 job run) Sep 4 06:07:25 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 06:25:01 twentytwo CRON[10382]: (root) CMD (test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; }) Sep 4 06:47:01 twentytwo CRON[17122]: (root) CMD (test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.weekly; }) Sep 4 07:30:01 twentytwo CRON[32520]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 07:32:43 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 07:32:43 twentytwo anacron[32625]: Anacron 2.3 started on 2022-09-04 Sep 4 07:32:43 twentytwo anacron[32625]: Normal exit (0 jobs run) Sep 4 07:32:43 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 08:30:01 twentytwo CRON[35144]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 08:34:48 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 08:34:48 twentytwo anacron[35196]: Anacron 2.3 started on 2022-09-04 Sep 4 08:34:48 twentytwo anacron[35196]: Normal exit (0 jobs run) Sep 4 08:34:48 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 09:30:01 twentytwo CRON[39613]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 09:32:24 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 09:32:24 twentytwo anacron[39634]: Anacron 2.3 started on 2022-09-04 Sep 4 09:32:24 twentytwo anacron[39634]: Normal exit (0 jobs run) Sep 4 09:32:24 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 10:30:01 twentytwo CRON[42128]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 10:31:25 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 10:31:25 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 10:31:25 twentytwo anacron[42208]: Anacron 2.3 started on 2022-09-04 Sep 4 10:31:25 twentytwo anacron[42208]: Normal exit (0 jobs run) Sep 4 11:30:01 twentytwo CRON[374183]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 11:30:33 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 11:30:33 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 11:30:33 twentytwo anacron[374192]: Anacron 2.3 started on 2022-09-04 Sep 4 11:30:33 twentytwo anacron[374192]: Normal exit (0 jobs run) Sep 4 12:30:01 twentytwo CRON[382867]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 12:34:03 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 12:34:03 twentytwo anacron[382910]: Anacron 2.3 started on 2022-09-04 Sep 4 12:34:03 twentytwo anacron[382910]: Normal exit (0 jobs run) Sep 4 12:34:03 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 13:30:01 twentytwo CRON[386353]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 13:34:13 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 13:34:13 twentytwo anacron[386396]: Anacron 2.3 started on 2022-09-04 Sep 4 13:34:13 twentytwo anacron[386396]: Normal exit (0 jobs run) Sep 4 13:34:13 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 14:30:01 twentytwo CRON[389318]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 14:31:43 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 14:31:43 twentytwo anacron[389380]: Anacron 2.3 started on 2022-09-04 Sep 4 14:31:43 twentytwo anacron[389380]: Normal exit (0 jobs run) Sep 4 14:31:43 twentytwo systemd[1]: anacron.service: Deactivated successfully. Sep 4 15:30:01 twentytwo CRON[392039]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi) Sep 4 15:31:48 twentytwo systemd[1]: Started Run anacron jobs. Sep 4 15:31:48 twentytwo