update-manager no longer gives good information if /var is too full
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Artful |
Triaged
|
High
|
Unassigned |
Bug Description
Upgrading from 17.04 to 17.10:
Previous installations of Ubuntu would eventually fail due to lack of space in any one of the filesystems, but at least update-manager and/or do-release-upgrade told me which filesystem was lacking the space and how much it needed, so I could do an online extend since I'm using LVM.
The newer update-manager doesn't do that, even in the terminal output, and even by do-release-upgrade. It just tells me:
==========
Building dependency tree
Reading state information... Done
Calculating the changes
Calculating the changes
Not enough free disk space
Restoring original system state
Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command terminated with exit status 1 (Wed Nov 1 12:44:09 2017) ===
I understand that Ubuntu is geared towards the novice user, but hiding this kind of information is not useful to him/her too. I eventually found out that the logs had a cryptically formatted space requirement output:
[12:57] [3762] [patola@ovo log]% tail -20 /var/log/
2017-11-01 12:43:59,445 DEBUG Free space on /boot: 400269312
2017-11-01 12:43:59,445 DEBUG Dir /var/cache/
2017-11-01 12:43:59,445 DEBUG Free space on /tmp: 4931989504
2017-11-01 12:43:59,445 DEBUG Free space on /home: 3533549568
2017-11-01 12:43:59,445 DEBUG Dir /tmp mounted on /tmp
2017-11-01 12:43:59,446 DEBUG fs_free contains: '{'/home': <DistUpgrade.
2017-11-01 12:44:00,388 DEBUG linux-image-
2017-11-01 12:44:05,555 DEBUG dir '/var/cache/
2017-11-01 12:44:05,556 DEBUG dir '/usr' needs '1734142976' of '<DistUpgrade.
2017-11-01 12:44:05,556 DEBUG dir '/usr' needs '52428800' of '<DistUpgrade.
2017-11-01 12:44:05,556 DEBUG dir '/boot' needs '120526816' of '<DistUpgrade.
2017-11-01 12:44:05,556 DEBUG dir '/tmp' needs '5242880' of '<DistUpgrade.
2017-11-01 12:44:05,556 DEBUG dir '/' needs '10485760' of '<DistUpgrade.
2017-11-01 12:44:05,556 DEBUG dir '/tmp' needs '0.0' of '<DistUpgrade.
2017-11-01 12:44:05,556 DEBUG dir '/usr' needs '0.0' of '<DistUpgrade.
2017-11-01 12:44:05,556 ERROR Not enough free space: ['/var']
2017-11-01 12:44:05,566 DEBUG abort called
2017-11-01 12:44:05,575 DEBUG openCache()
2017-11-01 12:44:05,575 DEBUG failed to SystemUnLock() (E:Not locked)
2017-11-01 12:44:09,030 DEBUG /openCache(), new cache size 88780
[12:57] [3763] [patola@ovo log]%
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: update-manager 1:17.04.8
ProcVersionSign
Uname: Linux 4.10.0-
NonfreeKernelMo
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
CurrentDesktop: Unity:Unity7
Date: Wed Nov 1 12:51:16 2017
GsettingsChanges:
b'com.
b'com.
b'com.
b'com.
b'com.
InstallationDate: Installed on 2014-08-02 (1187 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitec
SourcePackage: update-manager
UpgradeStatus: Upgraded to zesty on 2017-11-01 (0 days ago)
Related branches
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in ubuntu-release-upgrader (Ubuntu Artful): | |
status: | New → Triaged |
importance: | Undecided → High |
Thanks for reporting this issue, the lack of an error message is specific to /var being full. Could you tell me what version of ubuntu- release- upgrader you were using. You should be able to find a version string towards the beginning of /var/log/ dist-upgrade/ main.log. Thanks!