Description of problem: [root@localhost ~]# yum -y update --skip-broken Loaded plugins: dellsysidplugin2, downloadonly, fastestmirror, presto, refresh-packagekit, upgrade-helper ... Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction [('installing package kernel-PAE-2.6.29.6-217.2.3.fc11.i686 needs 23MB on the / filesystem', (9, '/', 23228416L)), ('installing package xulrunner-devel-1.9.1.2-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23228416L)), ('installing package bind-utils-32:9.6.1-4.P1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23228416L)), ('installing package pinentry-gtk-0.7.6-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23224320L)), ('installing package xapian-bindings-python-1.0.14-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23465984L)), ('installing package elfutils-0.142-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23486464L)), ('installing package gdm-user-switch-applet-1:2.26.1-13.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23486464L)), ('installing package bluez-cups-4.42-3.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23486464L)), ('installing package vlc-1.0.0-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23605248L)), ('installing package vlc-plugin-jack-1.0.0-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23605248L)), ('installing package vlc-nox-1.0.0-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23605248L)), ('installing package gnome-power-manager-2.26.4-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23642112L)), ('installing package pciutils-3.1.3-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23728128L)), ('installing package PackageKit-gstreamer-plugin-0.4.9-1.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package libbdevid-python-6.0.87-3.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package gnome-python2-gtkmozembed-2.25.3-6.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package yelp-2.26.0-6.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package gvfs-obexftp-1.2.3-9.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package bluez-alsa-4.42-3.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package bluez-gstreamer-4.42-3.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package bluez-4.42-3.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23924736L)), ('installing package gvfs-smb-1.2.3-9.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23924736L)), ('installing package gvfs-gphoto2-1.2.3-9.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23924736L)), ('installing package gvfs-fuse-1.2.3-9.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23924736L)), ('installing package gvfs-archive-1.2.3-9.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23924736L)), ('installing package xorg-x11-server-Xephyr-1.6.2-3.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23924736L)), ('installing package xorg-x11-server-Xnest-1.6.2-3.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23924736L)), ('installing package freetype-freeworld-2.3.9-3.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package gnome-python2-libegg-2.25.3-6.fc11.i586 needs 23MB on the / filesystem', (9, '/', 23920640L)), ('installing package xsane-0.997-1.fc11.i586 needs 24MB on the / filesystem', (9, '/', 24121344L)), ('installing package xine-ui-0.99.5-15.fc11.i586 needs 24MB on the / filesystem', (9, '/', 24199168L)), ('installing package gnome-python2-gtkhtml2-2.25.3-6.fc11.i586 needs 24MB on the / filesystem', (9, '/', 24199168L)), ('installing package gnonlin-0.10.11.2-0.2.fc11.i586 needs 24MB on the / filesystem', (9, '/', 24248320L)), ('installing package nfs-utils-1:1.2.0-4.fc11.i586 needs 24MB on the / filesystem', (9, '/', 24248320L)), ('installing package setuptool-1.19.6-1.fc11.i586 needs 24MB on the / filesystem', (9, '/', 24276992L)), ('installing package perl-gettext-1.05-16.fc11.i586 needs 24MB on the / filesystem', (9, '/', 24276992L)), ('installing package anacron-2.3-78.fc11.i586 needs 24MB on the / filesystem', (9, '/', 24276992L)), ('installing package bzr-1.17-1.fc11.i586 needs 34MB on the / filesystem', (9, '/', 35028992L)), ('installing package mercurial-1.3.1-3.fc11.i586 needs 34MB on the / filesystem', (9, '/', 35553280L)), ('installing package nscd-2.10.1-4.i586 needs 34MB on the / filesystem', (9, '/', 35553280L)), ('installing package sbcl-1.0.30-1.fc11.i586 needs 38MB on the / filesystem', (9, '/', 39022592L)), ('installing package libtool-2.2.6-11.fc11.1.i586 needs 38MB on the / filesystem', (9, '/', 39018496L)), ('installing package nautilus-devel-2.26.3-2.fc11.i586 needs 38MB on the / filesystem', (9, '/', 39018496L)), ('installing package hplip-gui-3.9.6b-5.fc11.i586 needs 38MB on the / filesystem', (9, '/', 39563264L)), ('installing package lxde-common-0.4.2-1.fc11.noarch needs 38MB on the / filesystem', (9, '/', 39591936L)), ('installing package virtaal-0.4.0-0.3.rc2.fc11.noarch needs 39MB on the / filesystem', (9, '/', 39886848L)), ('installing package gutenprint-foomatic-5.2.4-2.fc11.i586 needs 43MB on the / filesystem', (9, '/', 44646400L)), ('installing package system-config-printer-1.1.10-1.fc11.i586 needs 43MB on the / filesystem', (9, '/', 44666880L)), ('installing package vlc-devel-1.0.0-1.fc11.i586 needs 43MB on the / filesystem', (9, '/', 44662784L)), ('installing package libmad-devel-0.15.1b-13.fc11.i586 needs 43MB on the / filesystem', (9, '/', 44662784L)), ('installing package device-mapper-devel-1.02.33-2.fc11.i586 needs 43MB on the / filesystem', (9, '/', 44662784L)), ('installing package firefox-3.5.2-2.fc11.i586 needs 63MB on the / filesystem', (9, '/', 65167360L)), ('installing package flash-plugin-10.0.32.18-release.i386 needs 63MB on the / filesystem', (9, '/', 65327104L)), ('installing package xorg-x11-server-Xorg-1.6.2-3.fc11.i586 needs 63MB on the / filesystem', (9, '/', 65327104L)), ('installing package xorg-x11-drv-evdev-2.2.3-1.fc11.i586 needs 63MB on the / filesystem', (9, '/', 65327104L)), ('installing package PackageKit-yum-0.4.9-1.fc11.i586 needs 63MB on the / filesystem', (9, '/', 65523712L)), ('installing package xorg-x11-drv-synaptics-1.1.3-1.fc11.i586 needs 63MB on the / filesystem', (9, '/', 65540096L)), ('installing package PackageKit-yum-plugin-0.4.9-1.fc11.i586 needs 63MB on the / filesystem', (9, '/', 65732608L)), ('installing package PackageKit-0.4.9-1.fc11.i586 needs 63MB on the / filesystem', (9, '/', 65929216L))] Actually, IMHO more than a proper formatting is needed. It seems like the validator keeps track of how much space is need on each mount point. One thing is that the first package which exceeds the limit (in the arbitrary ordering) causes a warning, but the following warnings sums up the previous warnings. IMHO it would be better to summarize for each mount point: The Transaction needs more free space on the following file systems: 63 MB on / Version-Release number of selected component (if applicable): yum-3.2.23-3.fc11.noarch (I had done some hacking on the python files, but I am pretty sure and have verified that I am using unmodified yum and rpm packages now.)
The problem here is that AFTER yum did the diskspace check the amount of disk space changed just enough to hose the transaction. I just need to add a better second catch for diskspace issues AFTER the test transaction.
I got it again, but I noticed that installing a single (apparently unrelated) package changed it from the ugly message to a nice one. The free or needed diskspace did _not_ change between the ugly and the nice message. (I also noticed that the ugly message leaves a unfinished message.) [root@localhost ~]# yum -y update Loaded plugins: fastestmirror, merge-conf, presto, refresh-packagekit, remove- : with-leaves Loading mirror speeds from cached hostfile * fedora: ftp.klid.dk * rpmfusion-free: rpmfusion.famillecollet.com * rpmfusion-free-updates: rpmfusion.famillecollet.com * rpmfusion-nonfree: rpmfusion.famillecollet.com * rpmfusion-nonfree-updates: rpmfusion.famillecollet.com * updates: ftp.klid.dk * updates-testing: ftp.klid.dk Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package kernel-PAE.i686 0:2.6.32.7-37.fc12 set to be installed ---> Package kernel-firmware.noarch 0:2.6.32.7-37.fc12 set to be updated ---> Package kernel-headers.i686 0:2.6.32.7-37.fc12 set to be updated --> Finished Dependency Resolution --> Running transaction check ---> Package kernel-PAE.i686 0:2.6.31.6-162.fc12 set to be erased ---> Package kernel-PAE.i686 0:2.6.31.6-166.fc12 set to be erased --> Finished Dependency Resolution Dependencies Resolved =============================================================================== Package Arch Version Repository Size =============================================================================== Installing: kernel-PAE i686 2.6.32.7-37.fc12 updates-testing 20 M Updating: kernel-firmware noarch 2.6.32.7-37.fc12 updates-testing 959 k kernel-headers i686 2.6.32.7-37.fc12 updates-testing 740 k Removing: kernel-PAE i686 2.6.31.6-162.fc12 installed 72 M kernel-PAE i686 2.6.31.6-166.fc12 installed 72 M Transaction Summary =============================================================================== Install 1 Package(s) Upgrade 2 Package(s) Remove 2 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Total size: 22 M Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction [('installing package kernel-PAE-2.6.32.7-37.fc12.i686 needs 7MB on the /boot filesystem', (9, '/boot', 6629376L))] [root@localhost ~]# yum -y update kernel-headers Loaded plugins: fastestmirror, merge-conf, presto, refresh-packagekit, remove- : with-leaves Loading mirror speeds from cached hostfile * fedora: ftp.klid.dk * rpmfusion-free: rpmfusion.famillecollet.com * rpmfusion-free-updates: rpmfusion.famillecollet.com * rpmfusion-nonfree: rpmfusion.famillecollet.com * rpmfusion-nonfree-updates: rpmfusion.famillecollet.com * updates: ftp.klid.dk * updates-testing: ftp.klid.dk Setting up Update Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. --> Running transaction check ---> Package kernel-headers.i686 0:2.6.32.7-37.fc12 set to be updated --> Finished Dependency Resolution Dependencies Resolved =============================================================================== Package Arch Version Repository Size =============================================================================== Updating: kernel-headers i686 2.6.32.7-37.fc12 updates-testing 740 k Transaction Summary =============================================================================== Install 0 Package(s) Upgrade 1 Package(s) Total size: 740 k Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : kernel-headers-2.6.32.7-37.fc12.i686 1/2 Cleanup : kernel-headers-2.6.31.12-174.2.3.fc12.i686 2/2 Updated: kernel-headers.i686 0:2.6.32.7-37.fc12 Complete! [root@localhost ~]# yum -y update Loaded plugins: fastestmirror, merge-conf, presto, refresh-packagekit, remove- : with-leaves Loading mirror speeds from cached hostfile * fedora: ftp.klid.dk * rpmfusion-free: rpmfusion.famillecollet.com * rpmfusion-free-updates: rpmfusion.famillecollet.com * rpmfusion-nonfree: rpmfusion.famillecollet.com * rpmfusion-nonfree-updates: rpmfusion.famillecollet.com * updates: ftp.klid.dk * updates-testing: ftp.klid.dk Setting up Update Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. --> Running transaction check ---> Package kernel-PAE.i686 0:2.6.32.7-37.fc12 set to be installed ---> Package kernel-firmware.noarch 0:2.6.32.7-37.fc12 set to be updated --> Finished Dependency Resolution --> Running transaction check ---> Package kernel-PAE.i686 0:2.6.31.6-162.fc12 set to be erased ---> Package kernel-PAE.i686 0:2.6.31.6-166.fc12 set to be erased --> Finished Dependency Resolution Dependencies Resolved =============================================================================== Package Arch Version Repository Size =============================================================================== Installing: kernel-PAE i686 2.6.32.7-37.fc12 updates-testing 20 M Updating: kernel-firmware noarch 2.6.32.7-37.fc12 updates-testing 959 k Removing: kernel-PAE i686 2.6.31.6-162.fc12 installed 72 M kernel-PAE i686 2.6.31.6-166.fc12 installed 72 M Transaction Summary =============================================================================== Install 1 Package(s) Upgrade 1 Package(s) Remove 2 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Total size: 21 M Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Check Error: installing package kernel-PAE-2.6.32.7-37.fc12.i686 needs 7MB on the /boot filesystem Error Summary ------------- Disk Requirements: At least 7MB needed on the /boot filesystem. [root@localhost ~]# rpm -qf /boot/vmlinuz* kernel-PAE-2.6.31.6-162.fc12.i686 kernel-PAE-2.6.31.6-166.fc12.i686 kernel-PAE-2.6.31.9-174.fc12.i686 kernel-PAE-2.6.32.3-24.fc12.i686 [root@localhost ~]# rpm -q yum yum-3.2.25-1.fc12.noarch
Got it again with yum-3.2.27-1.fc12.noarch (In reply to comment #1) > The problem here is that AFTER yum did the diskspace check the amount of disk > space changed just enough to hose the transaction. > > I just need to add a better second catch for diskspace issues AFTER the test > transaction. It is fully reproducible (until I make enough space) without any changes to the amount of free disk space, so it seems more like rpm just estimates slight wrong. That is fair enough for an estimate - the problem is just the output. This solves the output problem for me: --- /usr/lib/python2.6/site-packages/yum/__init__.py.org 2010-03-26 12:07:04.000000000 +0100 +++ /usr/lib/python2.6/site-packages/yum/__init__.py 2010-03-26 12:10:23.000000000 +0100 @@ -1199,7 +1199,9 @@ if self.conf.history_record: herrors = [to_unicode(to_str(x)) for x in errors] self.history.end(rpmdbv, 2, errors=herrors) - raise Errors.YumBaseError, errors + for e in errors: + self.logger.critical(e[0]) + raise Errors.YumBaseError, _("Transaction couldn't start") if not self.conf.keepcache: self.cleanUsedHeadersPackages() I guess the history data should be changed as well. Debugging this was helped by: [root@localhost ~]# diff -u /usr/share/yum-cli/yummain.py.org /usr/share/yum-cli/yummain.py; diff -u /usr/lib/python2.6/site-packages/yum/__init__.py.org /usr/lib/python2.6/site-packages/yum/__init__.py--- /usr/share/yum-cli/yummain.py.org 2010-03-26 11:48:24.000000000 +0100 +++ /usr/share/yum-cli/yummain.py 2010-03-26 11:54:24.000000000 +0100 @@ -23,6 +23,7 @@ import sys import logging import time +import errno from yum import Errors from yum import plugins @@ -44,10 +45,10 @@ return 1 def exIOError(e): - if e.errno == 32: + if e.errno == errno.EPIPE: logger.critical(_('\n\nExiting on Broken Pipe')) else: - logger.critical(_('\n\n%s') % str(e)) + logger.critical(_('\n\nI/O errror: %s') % str(e)) if unlock(): return 200 return 1 @@ -58,12 +59,12 @@ ''' # ' xemacs hack exitmsg = str(e) if exitmsg: - logger.warn('\n\n%s', exitmsg) + logger.warn('\n\nPlugin exited: %s', exitmsg) if unlock(): return 200 return 1 def exFatal(e): - logger.critical('\n\n%s', to_unicode(e.value)) + logger.critical('\n\nFatal error: %s', to_unicode(e.value)) if unlock(): return 200 return 1
Created attachment 410152 [details] Nicer output of the error message when not enough disk space Patch from Mads Kiilerich, just regenerated against current yum-3_2_X for developers' convenience.
I sent a modification to this patch upstream.
successfully upgraded to Fedora 13 from Fedora 12 then did yum update with plenty of problems then I tried yum --skip-broken update 883 entries 1.3 gig download delta download was 5.9 meg Now I get copious messages (and no action): [('installing package kernel-PAE-devel-2.6.33.5-112.fc13.i686 needs 48MB on the / filesystem', (9, '/', 49754112L)), ('installing package eclipse-phpeclipse-1.2.3-1.fc13.noarch needs 68MB on the / filesystem', (9, '/', 70504448L)), ('installing package libcurl-devel-7.20.1-2.fc13.i686 needs 68MB on the / filesystem', (9, '/', 70828032L)), ('installing package java-1.6.0-openjdk-src-1:1.6.0.0-39.b18.fc13.i686 needs 68MB on the / filesystem', (9, '/', 71004160L)), ('installing package kdelibs-devel-6:4.4.3-2.fc13.i686 needs 68MB on the / filesystem', (9, '/', 71004160L)), and a few more now I have: [root@localhost ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup-lv_root 33043260 30435296 929424 98% / tmpfs 513228 276672 236556 54% /dev/shm /dev/sdb1 198337 22892 165205 13% /boot [root@localhost ~]# wonder where all my disk space went. On the preupgrade install questions I did list both SCSI drives as data drives. Could some temp storage from install be clogging up the works? I have: [root@localhost ~]# yum list installed kernel\* Loaded plugins: presto, refresh-packagekit Installed Packages kernel-PAE.i686 2.6.33.3-85.fc13 @anaconda-InstallationRepo-201005130056.i386 kernel-PAE-devel.i686 2.6.33.3-85.fc13 @anaconda-InstallationRepo-201005130056.i386 kernel-headers.i686 2.6.33.3-85.fc13 @anaconda-InstallationRepo-201005130056.i386 [root@localhost ~]# Is my 38 Gig SCSI drive not enough for yum all of a sudden? What do I do install F13 from scratch? F13 seems to be working except for yum.
fredsilsbee: Yes, you hit the issue reported in this bug report: That the otherwise fine and correct message about missing disk space isn't shown properly. Thanks for the confirmation. For the other questions and general support see http://fedoraproject.org/en/get-help
yum-3.2.28-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc13
yum-3.2.28-1.fc14 has been submitted as an update for Fedora 14. http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc14
yum-3.2.28-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc12
yum-3.2.28-1.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc13
yum-3.2.28-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc12
yum-3.2.28-1.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc14
yum-3.2.28-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.28-3.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc12
yum-3.2.28-3.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc13
yum-3.2.28-3.fc14 has been submitted as an update for Fedora 14. http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc14
yum-3.2.28-3.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.28-3.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.28-3.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.