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

Bug#977984: marked as done (cron.d and cron.daily jobs may run in parallel and conflict)



Your message dated Wed, 03 Nov 2021 17:35:27 +0000
with message-id <E1miKAZ-000F1w-G5@fasolo.debian.org>
and subject line Bug#977984: fixed in popularity-contest 1.73
has caused the Debian Bug report #977984,
regarding cron.d and cron.daily jobs may run in parallel and conflict
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
977984: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977984
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: popularity-contest
Version: 1.70
Severity: important

From time to time I've been seeing cron failure mails relating to
popularity-contest on my laptop.  I have seen this with both Vixie
cron and systemd-cron.

Today I opened my laptop at around 17:53, and systemd-cron started
running cron jobs that were scheduled to run during the time it was
suspended.  That included both cron.d and cron.daily jobs for
popularity-contest:

# systemctl status cron-popularity-contest-root-0.service
● cron-popularity-contest-root-0.service - [Cron] "10 5 * * * root test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond"
     Loaded: loaded (/etc/cron.d/popularity-contest; generated)
     Active: inactive (dead) since Wed 2020-12-23 17:53:54 CET; 3h 12min ago
TriggeredBy: ● cron-popularity-contest-root-0.timer
       Docs: man:systemd-crontab-generator(8)
    Process: 97570 ExecStart=/bin/sh /run/systemd/generator/cron-popularity-contest-root-0.sh (code=exited, status=0/SUCCESS)
   Main PID: 97570 (code=exited, status=0/SUCCESS)

Dec 23 17:53:49 deadeye systemd[1]: Starting [Cron] "10 5 * * * root test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond"...
Dec 23 17:53:54 deadeye popularity-contest[97891]: unable to submit report to http://popcon.debian.org/cgi-bin/popcon.cgi.
Dec 23 17:53:54 deadeye systemd[1]: cron-popularity-contest-root-0.service: Succeeded.
Dec 23 17:53:54 deadeye systemd[1]: cron-popularity-contest-root-0.service: Unit process 97896 (exim4) remains running after unit stopped.
Dec 23 17:53:54 deadeye systemd[1]: Finished [Cron] "10 5 * * * root test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond".
# systemctl status cron-daily.service
● cron-daily.service - systemd-cron daily script service
     Loaded: loaded (/lib/systemd/system/cron-daily.service; static)
     Active: failed (Result: exit-code) since Wed 2020-12-23 17:53:55 CET; 3h 8min ago
       Docs: man:systemd.cron(7)
    Process: 97569 ExecStartPre=/lib/systemd-cron/boot_delay 5 (code=exited, status=0/SUCCESS)
    Process: 97615 ExecStart=/bin/run-parts --report /etc/cron.daily (code=exited, status=1/FAILURE)
   Main PID: 97615 (code=exited, status=1/FAILURE)

Dec 23 17:53:50 deadeye runuser[97819]: pam_unix(runuser:session): session opened for user www-data by (uid=0)
Dec 23 17:53:50 deadeye runuser[97819]: pam_unix(runuser:session): session closed for user www-data
Dec 23 17:53:55 deadeye run-parts[97615]: /etc/cron.daily/popularity-contest:
Dec 23 17:53:55 deadeye run-parts[97615]: gpg: can't open '/var/log/popularity-contest.new': No such file or directory
Dec 23 17:53:55 deadeye run-parts[97615]: gpg: /var/log/popularity-contest.new: encryption failed: No such file or directory
Dec 23 17:53:55 deadeye run-parts[97615]: run-parts: /etc/cron.daily/popularity-contest exited with return code 2
Dec 23 17:53:55 deadeye systemd[1]: cron-daily.service: Main process exited, code=exited, status=1/FAILURE
Dec 23 17:53:55 deadeye systemd[1]: cron-daily.service: Failed with result 'exit-code'.
Dec 23 17:53:55 deadeye systemd[1]: Failed to start systemd-cron daily script service.
Dec 23 17:53:55 deadeye systemd[1]: cron-daily.service: Triggering OnFailure= dependencies.

This seems to be likely to happen on any system that remains suspended
across the times of both cron jobs.  Some kind of serialisation is
required, so that only one job at a time will manipulate the log
files.

Ben.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-4-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.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 popularity-contest depends on:
ii  debconf [debconf-2.0]  1.5.74
ii  dpkg                   1.20.5

Versions of packages popularity-contest recommends:
ii  exim4-daemon-light [mail-transport-agent]  4.94-9+b1
ii  gnupg                                      2.2.20-1
ii  systemd-cron [cron-daemon]                 1.5.15-1

Versions of packages popularity-contest suggests:
ii  systemd-cron [anacron]  1.5.15-1
pn  tor                     <none>
ii  torsocks                2.3.0-3

-- debconf-show failed

--- End Message ---
--- Begin Message ---
Source: popularity-contest
Source-Version: 1.73
Done: Bill Allombert <ballombe@debian.org>

We believe that the bug you reported is fixed in the latest version of
popularity-contest, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 977984@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bill Allombert <ballombe@debian.org> (supplier of updated popularity-contest package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 02 Nov 2021 17:49:47 +0100
Source: popularity-contest
Architecture: source
Version: 1.73
Distribution: unstable
Urgency: medium
Maintainer: Popularity Contest Developers <debian-popcon@lists.debian.org>
Changed-By: Bill Allombert <ballombe@debian.org>
Closes: 944968 977984 987425
Changes:
 popularity-contest (1.73) unstable; urgency=medium
 .
   * Updated Croatian by Valentin Vidic. Closes: #987425
   * Update example server-side scripts to popcon.d.o version:
     - popanal.py, popanal3.py: bump stable version to 1.71
   * debian/postinst: use "command -v" instead of "which"
   * popularity-contest:
     - get files list by using dpkg-query ${db-fsys:Files} instead of
       reading /var/lib/dpkg/info. Closes: #944968. Thanks Niels Thykier
     for suggesting a workable strategy.
   * debian/cron.daily:
     - use unique name for POPCONNEW to allow for atomic update.
     Closes: #977984. Thanks Ben Hutchings
Checksums-Sha1:
 aa5eedda6567884d1e87aad692d8f58a4ae7d4cb 1731 popularity-contest_1.73.dsc
 ffc288a90e9ab9289b65b1f55b9db9830aecd6d4 78436 popularity-contest_1.73.tar.xz
 f7da6c4b4cd7d7ecd3bcb31abbbecc5fbfb441cf 5479 popularity-contest_1.73_source.buildinfo
Checksums-Sha256:
 8ef342fe395f14cfd2deac52d060418a83a12c11258a68596f6cfcdaa7d4ed4b 1731 popularity-contest_1.73.dsc
 0f5f161111639dabf64a7cb7ec59cd2e99a5871cfb0b33b4fbb048ea1605fde5 78436 popularity-contest_1.73.tar.xz
 83fc04875c719196b6e48bcc0bd9e1c1c4b881df6d78217b3b93ef7e6522a59b 5479 popularity-contest_1.73_source.buildinfo
Files:
 315ba450365151d96c4b42536eecdcc0 1731 misc optional popularity-contest_1.73.dsc
 f92603eaa2aca63c44c8641728bf1f9b 78436 misc optional popularity-contest_1.73.tar.xz
 4b94fef5a415fd9e568d65207a9bd3f5 5479 misc optional popularity-contest_1.73_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQgKOpASi6dgKxFMUjw58K0Ui44cFAmGCwmYACgkQjw58K0Ui
44d+1w//T8BBcpF5ujD2jAPpOx1ZPhabcZmSEmfAFMS7Qa2I/0A9L8ix22+qkNJ4
t9NQJlX6/2GL5VKs6BHmxbTvTVf7E6aSdyGisBN+nurm1tFlBKXNywkCrbB5rCm7
UMRSDNWM5OcWPeJoWpXShTjk2UvRw6SbNTarMd/dfDsgF74yuKDjZHQlmnAHh9oK
seyZZxhR0aAgYZhWd5eJg0n41A9P0janhg0yXFjI8OyCLBPyDmbMtqApzzimybPw
ov/qe9zUj1IXwaZcp5d/QhLvSqq95WZ3ZTLTJSB74cWT9JQ1hFZp1vTq2NPMrCX6
5oUKj7b/lxbE85fcpQ9xzgjkJ82wdA4Y16QGrVmtAKXPuvDQ/AAZupP50RIrweNk
/SlliTurGn4NJvMgz0KK2TQ3lDoRRLUZXiTI+iF1fp5gP8vhsLQfQ8vPDwSX4fcB
xYdgrFpdWgkYkdgsw0ZPodJskpR6E21e4eBuOXjrEA6s+OTHWJv0TKd3HxZDbRG9
xbTouV2tS/EsnZnM78NikOhgiVqffTcGE1WeSOnKykc8PSg/MvRp7lWoTaF/8Ses
ZljcGb7AVhhhPGrHaJf4ppZCLdxMHZuImzJgYf9nYCleXn6n3mjZnicAIklJ527P
+er7C9ahFDR/Cl6+JV06lW/QYCuUdK3hn0BAplhsMfpOlBokH44=
=mz9+
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: