Unattended upgrades maybe very slow and time out on shutdown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
* Ubuntu Xenial 16.04.6 LTS
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
* 1.1ubuntu1.
3) What you expected to happen
* Packages to be upgraded on reboot / shutdown.
4) What happened instead
* The host just rebooted. Didn't perform upgrades. No useful output either until I enabled debug logging in the systemd unit file.
I'm reporting a new bug but this is very similar to #1806487 and I'm actually wondering if it resurfaced somehow.
We're running Ubuntu Xenial 16.04.6 which has 1.1ubuntu1.
I see that #1806487 was resolved with 1.1ubuntu1.
So far I've modified systemd to see if anything stands out. I do have an strace and then just debug mode.
Unless needed, simply put, this is what a reboot with debug logging looks like (i.e. unattended-
2019-09-06 09:20:04,871 DEBUG - Waiting for signal to start operation
2019-09-06 09:20:43,996 WARNING - SIGTERM or SIGHUP received, stopping unattended-
2019-09-06 09:20:43,996 DEBUG - Starting countdown of 25.0 minutes
2019-09-06 09:20:43,997 DEBUG - get_lock returned 7
2019-09-06 09:20:43,997 DEBUG - lock not taken
I hope that helps, please let me know if you need anything else from me or if I can provide any more information.
I've done this many times before, this is the first time it hasn't worked. When I patched around the end of May, all went well. My other variants worked, well mainly Trusty but that's EOL for public access. Bionic doesn't seem to have anything it needs to update.
Changed in unattended-upgrades (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in unattended-upgrades (Ubuntu): | |
status: | Invalid → In Progress |
summary: |
- Unattended upgrades does not work on shutdown + Unattended upgrades maybe very slow and time out on shutdown |
Changed in unattended-upgrades (Ubuntu): | |
status: | In Progress → Invalid |
I did want to suggest, before (i.e. Bug #1806487) it seemed to be a race / ordering issue, could a possible fix just be adjusting the systemd unit files after or before bits?
Although even after restarting while the system was up, a reboot didn't work so not sure it's that simple.