FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 09-16-2010, 05:32 AM
"Vijay N. Majagaonkar"
 
Default cannot open Providename index using db3 - Invalid argument (22)

Hi,

I am running out of strange problem at the time of creating ISO, ISO created successfully but it failed at the time of OS installation and this what i found in root.log file



I am not able to under stand the what is the problem "cannot open Providename index using db3 - Invalid argument (22)"


can someone please give me some point or direction to fix this,


[Log]




DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: Building isolinux directory
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: mkdosfs 2.11 (12 Mar 2005)
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: rpmdb: /var/lib/rpm/Providename: unsupported hash version: 9


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: error: cannot open Providename index using db3 - Invalid argument (22)
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: rpmdb: /var/lib/rpm/Providename: unsupported hash version: 9


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: error: cannot open Providename index using db3 - Invalid argument (22)
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall:*http://koji.fedora.com/packages/kernel/2.6.18/164.el5/x86_64/kernel-xen-2.6.18-164.el5.x86_64.rpm: [Errno 12] Timeout: <urlopen error timed out>


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: Trying other mirror.
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: Traceback (most recent call last):
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * File "/usr/bin/yumdownloader", line 293, in ?


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * * util = YumDownloader()
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * File "/usr/bin/yumdownloader", line 42, in __init__
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * * self.main()


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * File "/usr/bin/yumdownloader", line 80, in main
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * * self.downloadPackages(opts)
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * File "/usr/bin/yumdownloader", line 214, in downloadPackages


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * * path = repo.getPackage(download)
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 849, in getPackage


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * * cache=cache
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 811, in _getFile


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: * * raise Errors.RepoError, errstr
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: yum.Errors.RepoError: failed to retrieve kernel/2.6.18/164.el5/x86_64/kernel-xen-2.6.18-164.el5.x86_64.rpm from anaconda-extrarepo-1


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: error was [Errno 12] Timeout: <urlopen error timed out>
DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: kernel (kernel-xen) doesn't exist for x86_64. *skipping


DEBUG util.py:256: */usr/lib/anaconda-runtime/buildinstall: Building minstg.img


[/Log]



Thanks for the help
V!jay

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 09-28-2010, 06:52 PM
Panu Matilainen
 
Default cannot open Providename index using db3 - Invalid argument (22)

On Thu, 16 Sep 2010, Vijay N. Majagaonkar wrote:

> Hi,
>
> I am running out of strange problem at the time of creating ISO, ISO created
> successfully but it failed at the time of OS installation and this what i
> found in root.log file
>
> I am not able to under stand the what is the problem "cannot open
> Providename index using db3 - Invalid argument (22)"
>
>
> can someone please give me some point or direction to fix this,

This is the all-important clue:

rpmdb: /var/lib/rpm/Providename: unsupported hash version: 9

You're apparently creating an image for an older distro on a newer one,
and the older RPM / Berkeley DB combo on the installed image doesn't
support the hash format of the newer BDB from the newer distro (on which
you created the image).

There's no general "easy" solution for it I'm afraid. If possible, use an
older distro (of the same era as the one you're creating the image for) to
create the image. Another possibility might be downgrading the rpmdb
format with db_dump and db_load from suitably versioned db4-utils, but
that gets a bit tricky.

- Panu -
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 09-29-2010, 07:05 AM
"Vijay N. Majagaonkar"
 
Default cannot open Providename index using db3 - Invalid argument (22)

Hi*Panu,
Thanks for the reply, I will try your options thanks again, If it*successes than i will post back here.*

~thanks
V!jay.


On Wed, Sep 29, 2010 at 12:22 AM, Panu Matilainen*<pmatilai@laiskiainen.org>*wrote:




On Thu, 16 Sep 2010, Vijay N. Majagaonkar wrote:

rpmdb: /var/lib/rpm/Providename: unsupported hash version: 9

You're apparently creating an image for an older distro on a newer one,


and the older RPM / Berkeley DB combo on the installed image doesn't
support the hash format of the newer BDB from the newer distro (on which
you created the image).

There's no general "easy" solution for it I'm afraid. If possible, use an


older distro (of the same era as the one you're creating the image for) to
create the image. Another possibility might be downgrading the rpmdb
format with db_dump and db_load from suitably versioned db4-utils, but


that gets a bit tricky.

* * * *- Panu -
--
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-18-2010, 09:16 AM
"Vijay N. Majagaonkar"
 
Default cannot open Providename index using db3 - Invalid argument (22)

I am installing latest version provided by centos updates. i am using rpm-build 4.4.2.3-20.el5_5.1 and db4 4.3.29-10.el5_5.2*well these are two packages from centos update tree, but still issue exists.


now i am not able to build package in case of any rpm query in build script.
[sh]kerneldir=/lib/modules/`rpm -q kernel | sed '$!d' | sed 's/kernel-//g'`/build


[/sh]above is shell script to find out installed kernel version in chroot, where it throw following error[error]
error: cannot open Packages index using db3 - Invalid argument (22)

error: cannot open Packages database in /var/lib/rpm
[/error]

is there any way to solve this issue or how to find installed kernel version in chroot ?




~thanks
Vijay.



On Wed, Sep 29, 2010 at 12:22 AM, Panu Matilainen <pmatilai@laiskiainen.org> wrote:


On Thu, 16 Sep 2010, Vijay N. Majagaonkar wrote:



> Hi,

>

> I am running out of strange problem at the time of creating ISO, ISO created

> successfully but it failed at the time of OS installation and this what i

> found in root.log file

>

> I am not able to under stand the what is the problem "cannot open

> Providename index using db3 - Invalid argument (22)"

>

>

> can someone please give me some point or direction to fix this,



This is the all-important clue:



rpmdb: /var/lib/rpm/Providename: unsupported hash version: 9



You're apparently creating an image for an older distro on a newer one,

and the older RPM / Berkeley DB combo on the installed image doesn't

support the hash format of the newer BDB from the newer distro (on which

you created the image).



There's no general "easy" solution for it I'm afraid. If possible, use an

older distro (of the same era as the one you're creating the image for) to

create the image. Another possibility might be downgrading the rpmdb

format with db_dump and db_load from suitably versioned db4-utils, but

that gets a bit tricky.



* * * *- Panu -

--

buildsys mailing list

buildsys@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/buildsys



--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 08:02 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org