Bug 595063 (yum-akmods) - Exception during yum upgrade, due to corrupt rpmdb-indexes (akmods)
Summary: Exception during yum upgrade, due to corrupt rpmdb-indexes (akmods)
Keywords:
Status: CLOSED WONTFIX
Alias: yum-akmods
Product: Fedora
Classification: Fedora
Component: yum
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-23 07:53 UTC by Filip Miletic
Modified: 2014-01-21 23:15 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-03 14:26:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
First file (390.00 KB, application/x-tar)
2010-05-24 05:03 UTC, Filip Miletic
no flags Details
Second file (390.00 KB, application/x-tar)
2010-05-24 05:04 UTC, Filip Miletic
no flags Details

Description Filip Miletic 2010-05-23 07:53:33 UTC
Description of problem:
Exception while upgrading

Version-Release number of selected component (if applicable):
yum-plugin-refresh-updatesd-1.1.26-1.fc12.noarch
yum-kernel-module-1.1.19-1.fc10.noarch
EekBoek-yum-1.04-3.noarch
yumex-2.9.7-1.fc12.noarch
yum-plugin-fastestmirror-1.1.26-1.fc12.noarch
yum-updatesd-0.9-3.fc12.noarch
anaconda-yum-plugins-1.0-5.fc12.noarch
yum-3.2.27-3.fc12.noarch
yum-metadata-parser-1.1.2-14.fc12.i686
PackageKit-yum-0.5.7-2.fc12.i686
yum-utils-1.1.26-1.fc12.noarch
PackageKit-yum-plugin-0.5.7-2.fc12.i686
yum-fedorakmod-1.1.19-1.fc10.noarch


How reproducible:
Try 'yum upgrade'


Steps to Reproduce:
1.
  
Actual results:
Exception

Expected results:
yum upgrade should upgrade

Additional info:

filip@kravica:~
$ sudo yum upgrade
[sudo] password for filip: 
/usr/lib/yum-plugins/fedorakmod.py:25: DeprecationWarning: the sets module is deprecated
  from sets import Set
Loaded plugins: dellsysidplugin, dellsysidplugin2, fastestmirror, fedorakmod, kernel-module, refresh-
              : packagekit, refresh-updatesd
Loading mirror speeds from cached hostfile
 * fedora: mirror.lib.ucdavis.edu
 * fusion: www.lordmorgul.net
 * livna: rpm.livna.org
 * rpmfusion-free: mirrors.cat.pdx.edu
 * rpmfusion-free-updates: mirrors.cat.pdx.edu
 * rpmfusion-nonfree: mirrors.cat.pdx.edu
 * rpmfusion-nonfree-updates: mirrors.cat.pdx.edu
 * updates: mirror.lib.ucdavis.edu
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package dhclient.i686 12:4.1.1-16.fc12 set to be updated
---> Package dhcp.i686 12:4.1.1-16.fc12 set to be updated
---> Package google-chrome-beta.i386 0:5.0.375.55-47796 set to be updated
---> Package groff.i686 0:1.18.1.4-21.fc12 set to be updated
---> Package groff-perl.i686 0:1.18.1.4-21.fc12 set to be updated
---> Package guake.i686 0:0.4.1-3.fc12 set to be updated
---> Package initscripts.i686 0:9.02.2-1 set to be updated
---> Package krb5-devel.i686 0:1.7.1-9.fc12 set to be updated
---> Package krb5-libs.i686 0:1.7.1-9.fc12 set to be updated
---> Package krb5-workstation.i686 0:1.7.1-9.fc12 set to be updated
---> Package logwatch.noarch 0:7.3.6-51.fc12 set to be updated
---> Package ppp.i686 0:2.4.5-8.fc12 set to be updated
---> Package stunnel.i686 0:4.33-1.fc12 set to be updated
---> Package system-setup-keyboard.i686 0:0.7-3.fc12 set to be updated
---> Package tar.i686 2:1.22-13.fc12 set to be updated
---> Package yp-tools.i686 0:2.9-9.fc12 set to be updated
---> Package ypbind.i686 3:1.20.4-23.fc12 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================
 google-chrome-beta                i386               5.0.375.55-47796             google               22 M
 groff                             i686               1.18.1.4-21.fc12             updates             1.5 M
 groff-perl                        i686               1.18.1.4-21.fc12             updates              23 k
 guake                             i686               0.4.1-3.fc12                 updates             135 k
 initscripts                       i686               9.02.2-1                     updates             931 k
 krb5-devel                        i686               1.7.1-9.fc12                 updates             1.1 M
 krb5-libs                         i686               1.7.1-9.fc12                 updates             656 k
 krb5-workstation                  i686               1.7.1-9.fc12                 updates             448 k
 logwatch                          noarch             7.3.6-51.fc12                updates             300 k
 ppp                               i686               2.4.5-8.fc12                 updates             325 k
 stunnel                           i686               4.33-1.fc12                  updates             123 k
 system-setup-keyboard             i686               0.7-3.fc12                   updates              12 k
 tar                               i686               2:1.22-13.fc12               updates             744 k
 yp-tools                          i686               2.9-9.fc12                   updates              63 k
 ypbind                            i686               3:1.20.4-23.fc12             updates              43 k

Transaction Summary
=============================================================================================================
Install       0 Package(s)
Upgrade      17 Package(s)

Total size: 29 M
Is this ok [y/N]: y^[[A
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 254, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 192, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 496, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1182, in runTransaction
    self.rpmdb.transactionResultVersion(self.tsInfo.futureRpmDBVersion())
  File "/usr/lib/python2.6/site-packages/yum/transactioninfo.py", line 580, in futureRpmDBVersion
    self.rpmdb.preloadPackageChecksums()
  File "/usr/lib/python2.6/site-packages/yum/rpmsack.py", line 749, in preloadPackageChecksums
    pkg = self.searchNevra(n, e, v, r, a)[0]
IndexError: list index out of range
filip@kravica:~
$ rpm -qa | grep yum
yum-plugin-refresh-updatesd-1.1.26-1.fc12.noarch
yum-kernel-module-1.1.19-1.fc10.noarch
EekBoek-yum-1.04-3.noarch
yumex-2.9.7-1.fc12.noarch
yum-plugin-fastestmirror-1.1.26-1.fc12.noarch
yum-updatesd-0.9-3.fc12.noarch
anaconda-yum-plugins-1.0-5.fc12.noarch
yum-3.2.27-3.fc12.noarch
yum-metadata-parser-1.1.2-14.fc12.i686
PackageKit-yum-0.5.7-2.fc12.i686
yum-utils-1.1.26-1.fc12.noarch
PackageKit-yum-plugin-0.5.7-2.fc12.i686
yum-fedorakmod-1.1.19-1.fc10.noarch
filip@kravica:~
$

Comment 1 James Antill 2010-05-24 04:47:39 UTC
Can you run:

stat /var/lib/rpm/Packages
tar -cvf rpmdb-cache1.tar /var/cache/yum/i386/12/installed
sudo rm /var/cache/yum/i386/12/installed/version
sudo yum upgrade
tar -cvf rpmdb-cache2.tar /var/cache/yum/i386/12/installed

...and upload both tarfiles and the output from the stat? If the yum upgrade doesn't work, then also let us know but "yum clean rpmdb" will make it work.

Comment 2 Filip Miletic 2010-05-24 05:02:22 UTC
root@kravica:/home/filip
$ stat /var/lib/rpm/Packages 
  File: ‘/var/lib/rpm/Packages’
  Size: 191578112 	Blocks: 374512     IO Block: 4096   normaal bestand
Device: 803h/2051d	Inode: 55640074    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2010-05-23 01:32:00.000000000 -0700
Modify: 2010-05-19 05:04:34.000000000 -0700
Change: 2010-05-19 05:04:34.000000000 -0700

Comment 3 Filip Miletic 2010-05-24 05:03:29 UTC
Created attachment 416024 [details]
First file

Comment 4 Filip Miletic 2010-05-24 05:04:14 UTC
Created attachment 416025 [details]
Second file

Comment 5 James Antill 2010-05-24 15:10:04 UTC
 So packages is:

Modify: 2010-05-19 05:04:34.000000000 -0700

..and installed/version was:

Modify: 2010-05-19 08:04:58.000000000 -0400

...and the difference is that:

1. dhclient/dhcp updated release/checksum.

2. google-chrome-beta updated release/checksum.

3. groff/groff-perl updated release/checksum.

4. guake updated release/checksum.

5. initscripts updated release/checksum.

6. kmod-nvidia-2.6.32.11-99.fc12.i686 was removed (but the rpmdb version package count stays the same).

7. krb5-devel/krb5-libs/krb5-workstation updated release/checksum.

8. logwatch updated release/checksum.

9. ppp updated release/checksum.

10. stunnel updated release/checksum.

11. system-setup-keyboard updated release/checksum.

12. tar updated release/checksum.

13. yp-tools/ypbind updated release/checksum.

...so removing the things in the update above ... that leaves dhclient/dhcp and kmod as the only changes.
 I notice you have the kmod and kernel plugins from fc10 ... I wonder if they are doing something.

Comment 6 James Antill 2010-05-24 17:00:40 UTC
Looking in yumdb-package-checksums I see you have "akmods" installed, looking through what that does this is very likely what is causing the problem.
The defensive fixes we've put in upstream yum should fix it ... but it might be better to keep the rpm locked or something.

Comment 7 James Antill 2010-06-01 15:39:12 UTC
*** Bug 591382 has been marked as a duplicate of this bug. ***

Comment 8 James Antill 2010-06-01 15:39:18 UTC
*** Bug 597853 has been marked as a duplicate of this bug. ***

Comment 9 Owen Taylor 2010-06-25 12:20:58 UTC
I'm getting this error on Fedora 13, no third-party repository packages involved at all. The only "strange" thing I did was:

 yum --enablerepo=rawhide install kernel
 < ... later ...>
 rpm -e <kernel-version-from-rawhide>

Can you add information here about what would be useful for debugging what is going on here, or how to recover from this problem?

Comment 10 Owen Taylor 2010-06-25 12:23:52 UTC
Moving the contents of /var/cache/yum/ aside worked around the problem.

Comment 11 Nick 2010-07-07 22:28:13 UTC
I managed to accidentally duplicate this problem by rsync'ing /var/cache/yum from one installation of F12 to another.  My guess is the RPM database was copied in addition to the 'packages' subfolders.  Moving the rsync'd copy away and rebuilding the cache fixed the issue.  whoops.  carry on..

Comment 12 Nick 2010-07-07 22:29:20 UTC
bug 593654 appears to be related.

Comment 13 Bug Zapper 2010-11-03 14:22:29 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 14 Bug Zapper 2010-12-03 14:26:59 UTC
Fedora 12 changed to end-of-life (EOL) status on 2010-12-02. Fedora 12 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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