[Bug 1541730] Re: all cron.daily scripts are skipped on a day when unattended-upgrades triggers a reboot

Barry Kolts bhkolts at gotrain.org
Thu Jun 30 00:36:06 UTC 2016


I have noticed this too, at least with logrotate not running. I thought this was because the reboot happens right after, or during, unattended-upgrades. So I set the time to reboot to 7:30 AM in /etc/apt/apt.conf/50unattended-upgrades to give the rest of cron.daily time to run. However logrotate still did not run. And I assume neither did the rest of cron.daily. I believe unattended-upgrades issues 
shutdown -r 07:30
in my case. So I wondered if the impending shutdown was blocking logrotate, and the rest of cron.daily. However searching the Internet I could not confirm that theory. So I too think cron.daily/apt should be the last thing run in cron.daily.
One more issue that may be related. After the reboot /var/run/reboot-required and /var/run/reboot-required.pkgs still exist and the "*****System restart required****" message appearers  at logoin.

** Attachment added: "Apport report and 50unatended-upgrades file"
   https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1541730/+attachment/4692505/+files/apport.unattended-upgrades.fttw5049.apport

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1541730

Title:
  all cron.daily scripts are skipped on a day when unattended-upgrades
  triggers a reboot

Status in unattended-upgrades package in Ubuntu:
  Confirmed

Bug description:
  When unattended-upgrades is configured to apply updates and
  Unattended-Upgrade::Automatic-Reboot is set to "true", and there's an
  update that requires a reboot, you'll find that none of the scripts in
  /etc/cron.daily were executed on that day.  (To be more precise, none
  that are alphabetically after the 'apt' script, which is most of
  them.)

  It would be good if unattended-upgrades did the reboot from
  /etc/cron.daily/zzz-unattended-upgrade-reboot, so the other scripts
  get a chance to run first.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: unattended-upgrades 0.82.1ubuntu2.4
  ProcVersionSignature: Ubuntu 3.13.0-77.121-generic 3.13.11-ckt32
  Uname: Linux 3.13.0-77-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.19
  Architecture: amd64
  Date: Thu Feb  4 10:02:38 2016
  PackageArchitecture: all
  SourcePackage: unattended-upgrades
  UpgradeStatus: Upgraded to trusty on 2014-09-16 (505 days ago)
  mtime.conffile..etc.apt.apt.conf.d.50unattended.upgrades: 2014-10-09T09:04:05

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1541730/+subscriptions



More information about the foundations-bugs mailing list