do-release-upgrade does not warn about lack of free space

Bug #160027 reported by TeasesTheBear
10
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: update-manager

While using do-release-upgrade on my server-machine i encountered an error. The following lines should cover the most important sections form stdout:
---------------------------------------------------------------------
Setting up lvm2 (2.02.26-1ubuntu4) ...
Installing new version of config file /etc/lvm/lvm.conf ...
Backing up any LVM2 metadata that may exist...done.
update-initramfs: deferring update (trigger activated)

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...

update-initramfs: Generating /boot/initrd.img-2.6.20-16-server
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Errors were encountered while processing:
 linux-ubuntu-modules-2.6.22-14-server

Could not install the upgrades
The upgrade aborts now. Your system could be in an unusable state. A recovery will run now (dpkg --configure -a).
Please report this bug against the 'update-manager' package and include the files in /var/log/dist-upgrade/ in the bugreport.
-------------------------------------------------------------------------------------------

I'm running a system-disk with LVM2 and four additional disks with RAID5 and, also, LVM2 on top of it, should this information be of value.
I would have attached the following text as files, but could not find out how to do so, so:

--apt.log:
--------------------------------------------------
** empty **
--------------------------------------------------

--main.log
--------------------------------------------------
2007-11-04 18:48:35,305 INFO release-upgrader version '0.81' started
2007-11-04 18:48:38,543 DEBUG lsb-release: 'feisty'
2007-11-04 18:49:06,242 DEBUG _pythonSymlinkCheck run
2007-11-04 18:49:07,583 DEBUG checkViewDepends()
2007-11-04 18:49:14,319 DEBUG Foreign:
2007-11-04 18:49:14,319 DEBUG Obsolete:
2007-11-04 18:49:14,321 DEBUG updateSourcesList()
2007-11-04 18:49:14,421 DEBUG rewriteSourcesList()
2007-11-04 18:49:14,428 DEBUG examining: 'deb http://at.archive.ubuntu.com/ubuntu/ feisty main restricted'
2007-11-04 18:49:14,428 DEBUG entry 'deb http://at.archive.ubuntu.com/ubuntu/ gutsy main restricted' updated to new dist
2007-11-04 18:49:14,429 DEBUG examining: 'deb-src http://at.archive.ubuntu.com/ubuntu/ feisty main restricted'
2007-11-04 18:49:14,429 DEBUG entry 'deb-src http://at.archive.ubuntu.com/ubuntu/ gutsy main restricted' updated to new dist
2007-11-04 18:49:14,429 DEBUG examining: 'deb http://at.archive.ubuntu.com/ubuntu/ feisty-updates main restricted'
2007-11-04 18:49:14,429 DEBUG entry 'deb http://at.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted' updated to new dist
2007-11-04 18:49:14,430 DEBUG examining: 'deb-src http://at.archive.ubuntu.com/ubuntu/ feisty-updates main restricted'
2007-11-04 18:49:14,430 DEBUG entry 'deb-src http://at.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted' updated to new dist
2007-11-04 18:49:14,430 DEBUG examining: 'deb http://at.archive.ubuntu.com/ubuntu/ feisty universe'
2007-11-04 18:49:14,430 DEBUG entry 'deb http://at.archive.ubuntu.com/ubuntu/ gutsy universe' updated to new dist
2007-11-04 18:49:14,431 DEBUG examining: 'deb-src http://at.archive.ubuntu.com/ubuntu/ feisty universe'
2007-11-04 18:49:14,431 DEBUG entry 'deb-src http://at.archive.ubuntu.com/ubuntu/ gutsy universe' updated to new dist
2007-11-04 18:49:14,431 DEBUG examining: 'deb http://at.archive.ubuntu.com/ubuntu/ feisty multiverse'
2007-11-04 18:49:14,431 DEBUG entry 'deb http://at.archive.ubuntu.com/ubuntu/ gutsy multiverse' updated to new dist
2007-11-04 18:49:14,432 DEBUG examining: 'deb-src http://at.archive.ubuntu.com/ubuntu/ feisty multiverse'
2007-11-04 18:49:14,432 DEBUG entry 'deb-src http://at.archive.ubuntu.com/ubuntu/ gutsy multiverse' updated to new dist
2007-11-04 18:49:14,432 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu feisty-security main restricted'
2007-11-04 18:49:14,433 DEBUG entry 'deb http://security.ubuntu.com/ubuntu gutsy-security main restricted' updated to new dist
2007-11-04 18:49:14,433 DEBUG examining: 'deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted'
2007-11-04 18:49:14,433 DEBUG entry 'deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted' updated to new dist
2007-11-04 18:49:14,433 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu feisty-security universe'
2007-11-04 18:49:14,434 DEBUG entry 'deb http://security.ubuntu.com/ubuntu gutsy-security universe' updated to new dist
2007-11-04 18:49:14,434 DEBUG examining: 'deb-src http://security.ubuntu.com/ubuntu feisty-security universe'
2007-11-04 18:49:14,434 DEBUG entry 'deb-src http://security.ubuntu.com/ubuntu gutsy-security universe' updated to new dist
2007-11-04 18:49:14,434 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu feisty-security multiverse'
2007-11-04 18:49:14,435 DEBUG entry 'deb http://security.ubuntu.com/ubuntu gutsy-security multiverse' updated to new dist
2007-11-04 18:49:14,435 DEBUG examining: 'deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse'
2007-11-04 18:49:14,435 DEBUG entry 'deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse' updated to new dist
2007-11-04 18:52:23,536 DEBUG demoted: 'liblzo1'
2007-11-04 18:52:25,432 DEBUG Purging 'xorg-common' (Distro PostUpgradePurge rule)
2007-11-04 18:52:25,433 DEBUG Purging 'libgl1-mesa' (Distro PostUpgradePurge rule)
2007-11-04 18:52:25,433 DEBUG Purging 'ltsp-client' (Distro PostUpgradePurge rule)
2007-11-04 18:52:25,537 DEBUG Purging 'ltspfsd' (Distro PostUpgradePurge rule)
2007-11-04 18:52:25,643 DEBUG Purging 'python2.3' (Distro PostUpgradePurge rule)
2007-11-04 18:52:25,644 DEBUG running gutsyQuirks handler
2007-11-04 18:52:25,645 DEBUG found nfs mount in line 'nfsd /proc/fs/nfsd nfsd rw 0 0', marking nfs-common for install
2007-11-04 18:52:25,750 DEBUG Kernel uname: '2.6.20-16-server'
2007-11-04 18:52:31,473 DEBUG About to apply the following changes
2007-11-04 18:52:31,873 DEBUG Held-back:
2007-11-04 18:52:31,874 DEBUG Remove: lvm-common
2007-11-04 18:52:31,874 DEBUG Install: libdevmapper1.02.1 liblwres30 libexpat1 libdb4.5 gcc-4.2-base librpc-xml-perl linux-headers-2.6.22-14 libatm1 libiw29 libhtml-tree-perl liburi-perl libxml-parser-perl libisc32 libwww-perl libisccfg30 ntfs-3g libkeyutils1 fuse-utils libhtml-tagset-perl liblzo2-2 libcurl3-gnutls libterm-readkey-perl tcpd linux-ubuntu-modules-2.6.22-14-server apparmor libntfs-3g12 libidn11 libhtml-parser-perl linux-headers-2.6.22-14-server libdns32 linux-image-2.6.22-14-server libisccc30 libfuse2 apparmor-utils libbind9-30
2007-11-04 18:52:31,874 DEBUG Upgrade: libbz2-1.0 python2.5-minimal base-files net-tools grub udev libevent1 volumeid util-linux-locales libuuid1 wpasupplicant libss2 info libsasl2-2 login libgcrypt11 bzip2 libwrap0 mdadm upstart-logd libsqlite3-0 tzdata linux-server netcat openssh-server libusb-0.1-4 libpam-foreground e2fslibs ifupdown libdb4.3 libdb4.2 libdb4.4 upstart-compat-sysv libncurses5 procps python-central gettext-base perl-modules passwd coreutils iputils-tracepath dselect libldap2 bsdmainutils locales libpam-modules libgpmg1 ppp initramfs-tools gpgv dhcp3-common apt sysv-rc libsigc++-2.0-0c2a whiptail netbase debianutils cpp nfs-common lvm2 libgnutls13 libparted1.7-1 sed libnewt0.52 debconf-i18n python libsasl2-modules cpp-4.1 findutils module-init-tools tcpdump libgcc1 libopencdk8 ed ubuntu-standard dosfstools klogd dnsutils bash python-gnupginterface libpcap0.8 xkb-data belocs-locales-bin alsa-utils sudo libasound2 klibc-utils eject laptop-detect gnupg linux-headers-server dash libtasn1-3 lsb-release inputattach iputils-arping libssl0.9.8 python-minimal system-services gcc-4.1 ncurses-base linux-sound-base debconf apt-utils command-not-found-data libncursesw5 linux-image-server libsepol1 perl-base command-not-found libnfsidmap2 mktemp installation-report memtest86+ ethtool libselinux1 samba-common dpkg binutils console-terminus readline-common libdbus-1-3 ucf libmagic1 nano librpcsecgss3 alsa-base ubuntu-minimal libedit2 zlib1g libcomerr2 util-linux file makedev libgssapi2 pciutils nfs-kernel-server libnet1 libc6-i686 python2.5 sysvutils ltrace parted libslang2 psmisc pppconfig mount samba libreadline5 console-setup gcc-4.1-base startup-tasks man-db busybox-initramfs vim-tiny initscripts libklibc diff gzip bind9-host sysklogd openssh-client update-inetd time libpam-runtime libkrb53 tasksel-data iproute libstdc++6 manpages libgpg-error0 e2fsprogs liblocale-gettext-perl ftp wireless-tools upstart popularity-contest wget hdparm vim-common less dmidecode python-support iputils-ping iptables tasksel dmsetup libblkid1 libcap1 portmap libelfg0 lshw reiserfsprogs ncurses-bin mtr-tiny base-passwd update-manager-core perl libconsole libsysfs2 aptitude xfsprogs libc6 dhcp3-client gcc libvolume-id0 strace pppoeconf libcupsys2 libpam0g adduser console-tools ntpdate bsdutils python-apt ubuntu-keyring lsb-base cpio rsync usbutils lsof tar
2007-11-04 18:52:31,877 DEBUG Free space on /: 105811968
2007-11-04 18:52:31,878 DEBUG Free space on /usr: 2899877888
2007-11-04 18:52:31,879 DEBUG Free space on /var: 863465472
2007-11-04 18:52:31,879 DEBUG Free space on /boot: 199046144
2007-11-04 18:52:31,880 DEBUG Dir /var/cache/apt/archives mounted on /var
2007-11-04 18:52:31,881 DEBUG Free space on /home: 1062928384
2007-11-04 18:52:31,882 DEBUG fs_free contains: '{'/var': <DistUpgradeControler.FreeSpace object at 0x9ecd5ac>, '/home': <DistUpgradeControler.FreeSpace object at 0x9ecd64c>, '/boot': <DistUpgradeControler.FreeSpace object at 0x9ecd5ec>, '/usr': <DistUpgradeControler.FreeSpace object at 0x9ecd56c>, '/': <DistUpgradeControler.FreeSpace object at 0x9ecd4ec>, '/var/cache/apt/archives': <DistUpgradeControler.FreeSpace object at 0x9ecd5ac>}'
2007-11-04 18:52:32,136 DEBUG linux-image-2.6.20-15-server (upgrade|installed) added with 10485760 to boot space
2007-11-04 18:52:32,148 DEBUG linux-image-2.6.20-16-server (upgrade|installed) added with 10485760 to boot space
2007-11-04 18:52:32,179 DEBUG linux-image-2.6.22-14-server (new-install) added with 10485760 to boot space
2007-11-04 18:52:32,420 DEBUG dir '/var/cache/apt/archives' needs '106113080.0' of '<DistUpgradeControler.FreeSpace object at 0x9ecd5ac>' (863465472.000000)
2007-11-04 18:52:32,420 DEBUG dir '/usr' needs '161525760.0' of '<DistUpgradeControler.FreeSpace object at 0x9ecd56c>' (2899877888.000000)
2007-11-04 18:52:32,421 DEBUG dir '/usr' needs '52428800' of '<DistUpgradeControler.FreeSpace object at 0x9ecd56c>' (2738352128.000000)
2007-11-04 18:52:32,421 DEBUG dir '/boot' needs '31457280' of '<DistUpgradeControler.FreeSpace object at 0x9ecd5ec>' (199046144.000000)
2007-11-04 18:52:32,421 DEBUG dir '/' needs '10485760' of '<DistUpgradeControler.FreeSpace object at 0x9ecd4ec>' (105811968.000000)
2007-11-04 18:53:41,324 INFO using backports in '/tmp/tmpc82ikj/backports'
2007-11-04 18:53:41,326 DEBUG have: ['/tmp/tmpc82ikj/backports/release-upgrader-dpkg_1.14.5ubuntu11.2_i386.udeb', '/tmp/tmpc82ikj/backports/release-upgrader-apt_0.6.46.4ubuntu10.3_i386.udeb']
2007-11-04 18:53:41,326 DEBUG no file '/etc/apt/apt.conf.d/20archive'
2007-11-04 19:43:36,211 ERROR IOError in cache.commit(): 'Failed to fetch http://at.archive.ubuntu.com/ubuntu/pool/main/n/netkit-ftp/ftp_0.17-16build1_i386.deb Connection timed out [IP: 91.189.88.45 80]
'. Retrying (currentTry: 0)
2007-11-04 19:43:38,068 INFO cache.commit()
2007-11-04 20:12:39,629 ERROR got an error from dpkg for pkg: '/var/cache/apt/archives/linux-image-2.6.22-14-server_2.6.22-14.46_i386.deb': 'failed in buffer_write(fd) (10, ret=-1)
'
2007-11-04 20:12:44,988 ERROR SystemError from cache.commit(): E:Sub-process /tmp/tmpc82ikj/backports/usr/bin/dpkg returned an error code (1)
2007-11-04 20:12:44,990 DEBUG can't find apport gui
2007-11-04 20:13:29,070 DEBUG no file '/etc/apt/apt.conf.d/20archive'
2007-11-04 20:13:29,637 ERROR SystemError from cache.commit(): installArchives() failed
2007-11-04 20:13:29,639 DEBUG can't find apport gui
2007-11-04 20:13:29,722 DEBUG no file '/etc/apt/apt.conf.d/20archive'
--------------------------------------------------

--main_pre_req.log
--------------------------------------------------
2007-11-04 18:46:21,184 INFO release-upgrader version '0.81' started
2007-11-04 18:46:21,325 DEBUG lsb-release: 'feisty'
2007-11-04 18:46:53,350 DEBUG _pythonSymlinkCheck run
2007-11-04 18:46:54,737 DEBUG checkViewDepends()
2007-11-04 18:46:54,738 DEBUG getRequiredBackports()
2007-11-04 18:47:02,444 DEBUG marking 'release-upgrader-apt' for install
2007-11-04 18:47:02,539 DEBUG marking 'release-upgrader-dpkg' for install
2007-11-04 18:48:34,663 DEBUG pre-requists item: '<pkgAcquire::ItemIterator object: Status: 2 Complete: 1 Local: 0 IsTrusted: 1 FileSize: 1924684 DestFile:'/tmp/tmpc82ikj/backports/release-upgrader-dpkg_1.14.5ubuntu11.2_i386.udeb' DescURI: 'http://us.archive.ubuntu.com/ubuntu/pool/main/r/release-upgrader-dpkg/release-upgrader-dpkg_1.14.5ubuntu11.2'
2007-11-04 18:48:34,664 DEBUG pre-requists item: '<pkgAcquire::ItemIterator object: Status: 2 Complete: 1 Local: 0 IsTrusted: 1 FileSize: 1307096 DestFile:'/tmp/tmpc82ikj/backports/release-upgrader-apt_0.6.46.4ubuntu10.3_i386.udeb' DescURI: 'http://us.archive.ubuntu.com/ubuntu/pool/main/r/release-upgrader-apt/release-upgrader-apt_0.6.46.4ubuntu10.'
2007-11-04 18:48:34,666 DEBUG extracting udeb '/tmp/tmpc82ikj/backports/release-upgrader-dpkg_1.14.5ubuntu11.2_i386.udeb'
2007-11-04 18:48:34,914 DEBUG extracting udeb '/tmp/tmpc82ikj/backports/release-upgrader-apt_0.6.46.4ubuntu10.3_i386.udeb'
--------------------------------------------------

Tags: feisty2gutsy
Revision history for this message
TeasesTheBear (e0326352) wrote :

Ok, now that i know how to attach files (why can't i initially do so?), i would like to edit my bug description do transfer the log-information from the description to files ^^

Revision history for this message
TeasesTheBear (e0326352) wrote :

Sorry for inconveninece and unecessary additionaly work.
The problem was, supposedly, too little diskspace. Increasing the space on the root-partition and running
apt-get -f install
and
apt-get dist-upgrade

seems to have solved the problem.

However, shouldn't there have been a check for enough space prior to the upgrade (The desktop-version's update-manager definately has one)?
Anyway, the porblem, for me, is solved and this bug-report can be closed (at least form my point of view).

Changed in update-manager:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :

update manager checks for sufficient disk space now.

thank you for your report.

Changed in update-manager (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.