[Planetlab-users] yum fail on some planetlab nodes

Andy Bavier acb at CS.Princeton.EDU
Mon Jul 21 16:50:34 EDT 2008


If things are really wedged, as they appear to be if rpm --rebuilddb
fails, you may have to do 'sudo rm /var/lib/rpm/__db.00*' first.

Cheers,
Andy

On Mon, Jul 21, 2008 at 4:38 PM, Hecker W <heckerme at gmail.com> wrote:
> Here is another error node even cannot be fixed through rebuilddb.
>
> hostname: pepper.planetlab.cs.umd.edu
>
> [northwestern_list1 at pepper ~]$ sudo rpm --rebuilddb
> rpmdb: Lock table is out of available locker entries
> rpmdb: Unknown locker ID: bac
> error: db4 error(22) from db->close: Invalid argument
> error: cannot open Packages index using db3 - Cannot allocate memory (12)
> [northwestern_list1 at pepper ~]$ sudo yum -yt install nc
> rpmdb: Lock table is out of available locker entries
> rpmdb: Unknown locker ID: bad
> error: db4 error(22) from db->close: Invalid argument
> error: cannot open Packages index using db3 - Cannot allocate memory (12)
> error: cannot open Packages database in /var/lib/rpm
> Traceback (most recent call last):
>  File "/usr/bin/yum", line 29, in <module>
>    yummain.main(sys.argv[1:])
>  File "/usr/share/yum-cli/yummain.py", line 85, in main
>    base.getOptionsConfig(args)
>  File "/usr/share/yum-cli/cli.py", line 154, in getOptionsConfig
>    disabled_plugins=opts.disableplugins)
>  File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/site-packages/yum/__init__.py",
> line 159, in _getConfig
>  File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/site-packages/yum/config.py",
> line 613, in readMainConfig
>  File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/site-packages/yum/config.py",
> line 680, in _getsysver
> TypeError: rpmdb open failed
> [northwestern_list1 at pepper ~]$ hostname
> pepper.planetlab.cs.umd.edu
>
>
> On Mon, Jul 21, 2008 at 1:16 PM, Hecker W <heckerme at gmail.com> wrote:
>> Thanks for mentioning rpm --rebuilddb. It can solve the core dump
>> problem as well (at least to the node I showed below)
>>
>> Here is a node which will core dump on yum before: planetlab2.cse.nd.edu
>>
>> -Zhichun
>>
>> On Mon, Jul 21, 2008 at 12:08 PM, Andy Bavier <acb at cs.princeton.edu> wrote:
>>> I believe that you can fix this specific problem by running "sudo rpm
>>> --rebuilddb" in your slice.
>>>
>>> Can you point me toward a node where yum dumps core?  I'll try to
>>> reproduce this.
>>>
>>> Cheers,
>>> Andy
>>>
>>> On Mon, Jul 21, 2008 at 2:26 PM, Hecker W <heckerme at gmail.com> wrote:
>>>> Some planetlab nodes have problems to run yum either core dump or have
>>>> the following error.
>>>>
>>>> For example for planetlab-1.cs.princeton.edu.
>>>>
>>>> [northwestern_list1 at planetlab-1 ~]$ cat /etc/yum.conf
>>>> [main]
>>>> cachedir=/var/cache/yum
>>>> keepcache=0
>>>> debuglevel=2
>>>> logfile=/var/log/yum.log
>>>> exactarch=1
>>>> obsoletes=1
>>>> gpgcheck=1
>>>> plugins=1
>>>> metadata_expire=1800
>>>> installonly_limit=2
>>>>
>>>> # PUT YOUR REPOS HERE OR IN separate files named file.repo
>>>> # in /etc/yum.repos.d
>>>>
>>>> [northwestern_list1 at planetlab-1 ~]$ which nc
>>>> /usr/bin/which: no nc in
>>>> (/usr/local/bin:/bin:/usr/bin:/home/northwestern_list1/bin)
>>>> [northwestern_list1 at planetlab-1 ~]$ sudo yum -yt install nc
>>>> fedora                    100% |=========================| 2.1 kB    00:00
>>>> updates                   100% |=========================| 2.3 kB    00:00
>>>> Setting up Install Process
>>>> Parsing package install arguments
>>>> Resolving Dependencies
>>>> --> Running transaction check
>>>> ---> Package nc.i386 0:1.84-13.fc8 set to be updated
>>>> --> Finished Dependency Resolution
>>>>
>>>> Dependencies Resolved
>>>>
>>>> =============================================================================
>>>>  Package                 Arch       Version          Repository        Size
>>>> =============================================================================
>>>> Installing:
>>>>  nc                      i386       1.84-13.fc8      fedora             57 k
>>>>
>>>> Transaction Summary
>>>> =============================================================================
>>>> Install      1 Package(s)
>>>> Update       0 Package(s)
>>>> Remove       0 Package(s)
>>>>
>>>> Total download size: 57 k
>>>> Downloading Packages:
>>>> Running rpm_check_debug
>>>> rpmdb: Lock table is out of available locker entries
>>>> rpmdb: Unknown locker ID: 9fb
>>>> error: db4 error(22) from dbenv->close: Invalid argument
>>>> error: cannot open Packages index using db3 - Cannot allocate memory (12)
>>>> error: cannot open Packages database in /var/lib/rpm
>>>> Traceback (most recent call last):
>>>>  File "/usr/bin/yum", line 29, in <module>
>>>>    yummain.main(sys.argv[1:])
>>>>  File "/usr/share/yum-cli/yummain.py", line 183, in main
>>>>    base.doTransaction()
>>>>  File "/usr/share/yum-cli/cli.py", line 338, in doTransaction
>>>>    msgs = self._run_rpm_check_debug()
>>>>  File "/usr/share/yum-cli/cli.py", line 1108, in _run_rpm_check_debug
>>>>    self.populateTs(test=1)
>>>>  File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/site-packages/yum/depsolve.py",
>>>> line 222, in populateTs
>>>> _rpm.error: adding package to transaction failed
>>>>
>>>> _______________________________________________
>>>> Users mailing list: Users at lists.planet-lab.org
>>>> https://lists.planet-lab.org/mailman/listinfo/users
>>>>
>>>
>>> _______________________________________________
>>> Users mailing list: Users at lists.planet-lab.org
>>> https://lists.planet-lab.org/mailman/listinfo/users
>>>
>>
>
> _______________________________________________
> Users mailing list: Users at lists.planet-lab.org
> https://lists.planet-lab.org/mailman/listinfo/users
>



More information about the Users mailing list