Bug 766260 - yum transaction ends on unknow error if not space left on /boot
Summary: yum transaction ends on unknow error if not space left on /boot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 15
Hardware: i686
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 781996 782135 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-11 11:17 UTC by Adam Pribyl
Modified: 2014-01-21 23:20 UTC (History)
10 users (show)

Fixed In Version: rpm-4.9.1.2-6.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-11 23:21:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Pribyl 2011-12-11 11:17:27 UTC
Description of problem:
In F14 this was handled properly by yum complainig that there is not space left on /boot to install kernel. In F15 the situation ends with

Transaction couldn't start:
unknown error 599753 encountered while manipulating package kernel-PAE-2.6.41.4-1.fc15.i686


[('unknown error 599753 encountered while manipulating package kernel-PAE-2.6.41.4-1.fc15.i686', (599753, '/boot', 8416256L))]


Version-Release number of selected component (if applicable):
yum-3.2.29-9.fc15.noarch

Steps to Reproduce:
1. Fill your /boot
2. Try to install new kernel

Comment 1 Zdeněk Pavlas 2011-12-12 08:58:22 UTC
Likely a rpm bug, as I've found the error message lib/rpmprob.c.  Confirmed that rpm-4.8.1-7.fc14 handles this properly.

Comment 2 Panu Matilainen 2011-12-12 09:31:02 UTC
Adam, can you actually reproduce this? If so, are the numbers in the message always the same, and does it make any difference if you use rpm instead of yum to install, ie 'rpm -ivh --test <kernelpkg>'?

I dont see how the type of a problem could end up being 599753, it's only ever explicitly set to one of the RPMPROB_FOO types (in this case it should be RPMPROB_DISKSPACE whose value is 9) and never changed after that. In other words it looks like memory corruption, and I'm not able to reproduce.

Comment 3 Adam Pribyl 2011-12-12 17:15:45 UTC
I can not reproduce it, by just filling the boot. I am sorry.

Now there is a correct:
Transaction Check Error:
  installing package kernel-PAE-2.6.41.4-1.fc15.i686 needs 9MB on the /boot filesystem

Error Summary
-------------
Disk Requirements:
  At least 9MB more space needed on the /boot filesystem.

Interesting consequence was, that after removing one old kernel, the new yum update run was forever printing a message with dependency resolution on /sbin/new-kernel-pkg. I had to clean up the transaction "yum-complete-transaction --cleanup-only" to finish the update correctly. 

Here is the transaction history log:
Loaded plugins: downloadonly, fastestmirror
Transaction ID : 146
Begin time     : Sun Dec 11 12:12:13 2011
Begin rpmdb    : 1343:f830a981887c0220fd1ec4cf9093b6f813810a59
End time       :            12:12:21 2011 (8 seconds)
End rpmdb      : 1343:f830a981887c0220fd1ec4cf9093b6f813810a59
User           :  <covex>
Return-Code    : Failure: 2
Command Line   : update
Transaction performed with:
    Installed     rpm-4.9.1.2-1.fc15.i686
    Installed     yum-3.2.29-9.fc15.noarch
    Installed     yum-plugin-fastestmirror-1.1.31-2.fc15.noarch
Packages Altered:
 ** Updated     acpid-2.0.9-4.fc15.i686
 ** Update            2.0.13-1.fc15.i686
 ** Dep-Install color-filesystem-1-8.noarch
 ** Updated     colord-0.1.7-1.fc15.i686
 ** Update             0.1.15-1.fc15.i686
 ** Updated     dmidecode-1:2.11-4.fc15.i686
 ** Update                1:2.11-5.fc15.i686
 ** Updated     ffmpeg-libs-0.6.90-0.2.rc0.fc15.i686
 ** Update                  0.7.6-1.fc15.i686
 ** Updated     freetype-2.4.4-6.fc15.i686
 ** Update               2.4.4-7.fc15.i686
 ** Updated     icewm-1.2.37-7.fc13.i686
 ** Update            1.3.7-1.fc15.i686
 ** Updated     iproute-2.6.38.1-4.fc15.i686
 ** Update              2.6.38.1-5.fc15.i686
 ** Updated     iw-3.1-1.fc15.i686
 ** Update         3.2-1.fc15.i686
 ** Erase       kernel-PAE-2.6.35.14-96.fc14.i686
 ** Install     kernel-PAE-2.6.41.4-1.fc15.i686
 ** Updated     kernel-headers-2.6.41.1-1.fc15.i686
 ** Update                     2.6.41.4-1.fc15.i686
 ** Updated     lftp-4.2.1-1.fc15.i686
 ** Update           4.3.3-1.fc15.i686
 ** Updated     libXi-1.4.3-2.fc15.i686
 ** Update            1.4.3-3.fc15.i686
 ** Updated     libjpeg-turbo-1.1.1-1.fc15.i686
 ** Update                    1.1.1-3.fc15.i686
 ** Updated     libsmbclient-1:3.5.11-71.fc15.1.i686
 ** Update                   1:3.5.12-72.fc15.1.i686
 ** Updated     mencoder-1.0-0.123.20110412svn.fc15.i686
 ** Update               1.0-0.125.20110816svn.fc15.i686
 ** Updated     minizip-1.2.5-3.fc15.i686
 ** Update              1.2.5-5.fc15.i686
 ** Updated     mplayer-1.0-0.123.20110412svn.fc15.i686
 ** Update              1.0-0.125.20110816svn.fc15.i686
 ** Updated     mplayer-common-1.0-0.123.20110412svn.fc15.i686
 ** Update                     1.0-0.125.20110816svn.fc15.i686
 ** Updated     mysql-5.5.14-2.fc15.i686
 ** Update            5.5.18-1.fc15.i686
 ** Updated     mysql-libs-5.5.14-2.fc15.i686
 ** Update                 5.5.18-1.fc15.i686
 ** Updated     mysql-server-5.5.14-2.fc15.i686
 ** Update                   5.5.18-1.fc15.i686
 ** Updated     pam-1.1.4-4.fc15.i686
 ** Update          1.1.5-1.fc15.i686
 ** Updated     parted-2.3-10.fc15.i686
 ** Update             2.3-11.fc15.i686
 ** Updated     qt-1:4.7.4-6.fc15.i686
 ** Update         1:4.7.4-7.fc15.i686
 ** Updated     samba-1:3.5.11-71.fc15.1.i686
 ** Update            1:3.5.12-72.fc15.1.i686
 ** Updated     samba-client-1:3.5.11-71.fc15.1.i686
 ** Update                   1:3.5.12-72.fc15.1.i686
 ** Updated     samba-common-1:3.5.11-71.fc15.1.i686
 ** Update                   1:3.5.12-72.fc15.1.i686
 ** Updated     samba-winbind-1:3.5.11-71.fc15.1.i686
 ** Update                    1:3.5.12-72.fc15.1.i686
 ** Updated     samba-winbind-clients-1:3.5.11-71.fc15.1.i686
 ** Update                            1:3.5.12-72.fc15.1.i686
 ** Updated     selinux-policy-3.9.16-44.fc15.noarch
 ** Update                     3.9.16-48.fc15.noarch
 ** Updated     selinux-policy-targeted-3.9.16-44.fc15.noarch
 ** Update                              3.9.16-48.fc15.noarch
 ** Dep-Install shared-color-profiles-0.1.4-1.fc15.noarch
 ** Updated     system-setup-keyboard-0.8.6-5.fc15.i686
 ** Update                            0.8.8-1.fc15.i686
 ** Updated     texlive-texmf-2007-37.fc15.noarch
 ** Update                    2007-40.fc15.noarch
 ** Updated     texlive-texmf-afm-2007-37.fc15.noarch
 ** Update                        2007-40.fc15.noarch
 ** Updated     texlive-texmf-dvips-2007-37.fc15.noarch
 ** Update                          2007-40.fc15.noarch
 ** Updated     texlive-texmf-fonts-2007-37.fc15.noarch
 ** Update                          2007-40.fc15.noarch
 ** Updated     texlive-texmf-latex-2007-37.fc15.noarch
 ** Update                          2007-40.fc15.noarch
 ** Updated     vlgothic-fonts-20110722-1.fc15.noarch
 ** Update                     20111122-1.fc15.noarch
 ** Updated     vlgothic-fonts-common-20110722-1.fc15.noarch
 ** Update                            20111122-1.fc15.noarch
 ** Updated     vsftpd-2.3.4-1.fc15.i686
 ** Update             2.3.4-2.fc15.i686
 ** Updated     w3m-0.5.2-20.fc15.i686
 ** Update          0.5.3-2.fc15.i686
 ** Updated     x264-libs-0.0.0-0.29.20110227.fc15.i686
 ** Update                0.0.0-0.30.20110620.fc15.i686
 ** Updated     xorg-x11-drv-wacom-0.11.1-1.fc15.i686
 ** Update                         0.11.1-3.fc15.i686
 ** Updated     ypbind-3:1.32-8.fc15.1.i686
 ** Update             3:1.32-8.fc15.3.i686
 ** Updated     zlib-1.2.5-3.fc15.i686
 ** Update           1.2.5-5.fc15.i686
Errors:
   1 ('unknown error 599753 encountered while manipulating package kernel-PAE-2.6.41.4-1.fc15.i686', (599753, '/boot', 8416256L))
history info

Comment 4 David Juran 2012-01-16 20:24:06 UTC
*** Bug 782135 has been marked as a duplicate of this bug. ***

Comment 5 David Juran 2012-01-16 20:27:39 UTC
In regards to comment 2, I encountered the problem and got the number 695609 (see bug 782135) When I tried to upgrade only the kernel, I got the correct message that more space was needed in /boot

Comment 6 David Juran 2012-01-16 20:29:14 UTC
Also worth noting I encountered this problem on F16 with rpm-4.9.1.2-1.fc16.x86_64 and yum-3.4.3-7.fc16.noarch

Comment 7 Paul Bolle 2012-02-24 18:48:12 UTC
(In reply to comment #5)
> In regards to comment 2, I encountered the problem and got the number 695609
> (see bug 782135) When I tried to upgrade only the kernel, I got the correct
> message that more space was needed in /boot

Ditto (though another large number) while trying to upgrade to kernel-3.3.0-0.rc4.git3.1.fc18.i686 (ie, current rawhide kernel).

The problem seems to be triggered by trying to yum upgrade (install) a kernel without enough space in /boot while also trying to yum upgrade other packages.

Comment 8 Eddie Lania 2012-02-24 21:08:39 UTC
*** Bug 781996 has been marked as a duplicate of this bug. ***

Comment 9 Adam Pribyl 2012-02-26 13:00:47 UTC
Happened to me too again on F15, but I am not able to reproduce it at will.

Comment 10 Panu Matilainen 2012-02-28 12:02:39 UTC
Ah, now I see it... rpm >= 4.9.x tries to estimate the size required for rpmdb as well and that's buggy, causing invalid memory access (in some cases at least) and resulting in the bogus errors and unpredicable behavior people are seeing here.

There was an early indication of something being wrong in this area: https://bugzilla.redhat.com/show_bug.cgi?id=671056#c6
It just never got properly tracked down, and applied band-aid was only treating a symptom rather than the disease as I suspected.

Will fix...

Comment 11 Panu Matilainen 2012-02-28 13:05:39 UTC
Should be fixed upstream now, leaving open for Fedora tracking (this will want updates across all Fedora versions sooner than later).

Comment 12 Fedora Update System 2012-03-07 11:34:13 UTC
rpm-4.9.1.2-14.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/rpm-4.9.1.2-14.fc17

Comment 13 Fedora Update System 2012-03-07 11:36:36 UTC
rpm-4.9.1.2-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/rpm-4.9.1.2-6.fc16

Comment 14 Fedora Update System 2012-03-08 04:58:51 UTC
Package rpm-4.9.1.2-6.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpm-4.9.1.2-6.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-3336/rpm-4.9.1.2-6.fc16
then log in and leave karma (feedback).

Comment 15 Fedora Update System 2012-03-11 23:21:41 UTC
rpm-4.9.1.2-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2012-03-21 19:05:52 UTC
rpm-4.9.1.2-14.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.