2003-09-25 13:26:33

by Bradley Chapman

[permalink] [raw]
Subject: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

I've just discovered a very strange and unusual problem with rpm on my Red Hat 9
laptop running 2.6.0-test. Under 2.4.22-ac2 rpm runs perfectly fine, but when I
run it under 2.6.0-test, it outputs the following errors:

sudo rpm -Uvh alsa-driver-0.9.6-1.fr.i386.rpm
Password:
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
warning: alsa-driver-0.9.6-1.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm

I have never seen rpm do this before, and it only occurs under 2.6.0-test. It
happens under these specific kernels:

2.6.0-test5-bk10
2.6.0-test5-bk11
2.6.0-test5-mm4

I have not tried -test5-bk12 yet, but I have a feeling that I will get the same
errors. I have checked syslog and dmesg and there are no errors from the kernel;
under 2.4.22-ac2 rpm works perfectly fine, so I don't believe it's file corruption
or filesystem breakage.

Does anyone have any ideas that I can try?

Thanks!

Brad



=====
Brad Chapman

Permanent e-mail: [email protected]

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


2003-09-25 15:21:01

by Samuel Flory

[permalink] [raw]
Subject: Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

Bradley Chapman wrote:
> I've just discovered a very strange and unusual problem with rpm on my Red Hat 9
> laptop running 2.6.0-test. Under 2.4.22-ac2 rpm runs perfectly fine, but when I
> run it under 2.6.0-test, it outputs the following errors:
>
> sudo rpm -Uvh alsa-driver-0.9.6-1.fr.i386.rpm
> Password:
> rpmdb: unable to join the environment
> error: db4 error(11) from dbenv->open: Resource temporarily unavailable
> error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
> error: cannot open Packages database in /var/lib/rpm
> warning: alsa-driver-0.9.6-1.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
> rpmdb: unable to join the environment
> error: db4 error(11) from dbenv->open: Resource temporarily unavailable
> error: cannot open Packages database in /var/lib/rpm
> rpmdb: unable to join the environment
> error: db4 error(11) from dbenv->open: Resource temporarily unavailable
> error: cannot open Packages database in /var/lib/rpm
>
> I have never seen rpm do this before, and it only occurs under 2.6.0-test. It
> happens under these specific kernels:
>
> 2.6.0-test5-bk10
> 2.6.0-test5-bk11
> 2.6.0-test5-mm4
>
> I have not tried -test5-bk12 yet, but I have a feeling that I will get the same
> errors. I have checked syslog and dmesg and there are no errors from the kernel;
> under 2.4.22-ac2 rpm works perfectly fine, so I don't believe it's file corruption
> or filesystem breakage.
>
> Does anyone have any ideas that I can try?
>

Sound like NPTL issues "LD_ASSUME_KERNEL=2.4.1 <rpm command>".
Check the archives for details.


--
Once you have their hardware. Never give it back.
(The First Rule of Hardware Acquisition)
Sam Flory <[email protected]>

2003-09-25 15:24:16

by Paolo Dovera

[permalink] [raw]
Subject: Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

Hi, try this:

export LD_ASSUME_KERNEL=2.4.1

before run rpm command, this works fine on my RH9

Paolo

Bradley Chapman wrote:

>I've just discovered a very strange and unusual problem with rpm on my Red Hat 9
>laptop running 2.6.0-test. Under 2.4.22-ac2 rpm runs perfectly fine, but when I
>run it under 2.6.0-test, it outputs the following errors:
>
>sudo rpm -Uvh alsa-driver-0.9.6-1.fr.i386.rpm
>Password:
>rpmdb: unable to join the environment
>error: db4 error(11) from dbenv->open: Resource temporarily unavailable
>error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
>error: cannot open Packages database in /var/lib/rpm
>warning: alsa-driver-0.9.6-1.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
>rpmdb: unable to join the environment
>error: db4 error(11) from dbenv->open: Resource temporarily unavailable
>error: cannot open Packages database in /var/lib/rpm
>rpmdb: unable to join the environment
>error: db4 error(11) from dbenv->open: Resource temporarily unavailable
>error: cannot open Packages database in /var/lib/rpm
>
>I have never seen rpm do this before, and it only occurs under 2.6.0-test. It
>happens under these specific kernels:
>
>2.6.0-test5-bk10
>2.6.0-test5-bk11
>2.6.0-test5-mm4
>
>I have not tried -test5-bk12 yet, but I have a feeling that I will get the same
>errors. I have checked syslog and dmesg and there are no errors from the kernel;
>under 2.4.22-ac2 rpm works perfectly fine, so I don't believe it's file corruption
>or filesystem breakage.
>
>Does anyone have any ideas that I can try?
>
>Thanks!
>
>Brad
>
>
>
>=====
>Brad Chapman
>
>Permanent e-mail: [email protected]
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search
>http://shopping.yahoo.com
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>

2003-09-25 16:36:56

by Bradley Chapman

[permalink] [raw]
Subject: Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

Mr. Dovera,

--- Paolo Dovera <[email protected]> wrote:
> Hi, try this:
>
> export LD_ASSUME_KERNEL=2.4.1
>
> before run rpm command, this works fine on my RH9

Hmmm. What version of glibc do you have? I have glibc 2.3.2 installed and
I get the same error with LD_ASSUME_KERNEL=2.4.1

I tried LD_ASSUME_KERNEL=2.4.22, since everything is good under 2.4, but that
didn't help either. Another guy said to check the archives, which I did, but
I don't know what to search for.

>
> Paolo

Brad

=====
Brad Chapman

Permanent e-mail: [email protected]

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

2003-09-25 16:56:17

by Samuel Flory

[permalink] [raw]
Subject: Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

Bradley Chapman wrote:
> Mr. Dovera,
>
> --- Paolo Dovera <[email protected]> wrote:
>
>>Hi, try this:
>>
>>export LD_ASSUME_KERNEL=2.4.1
>>
>>before run rpm command, this works fine on my RH9
>
>
> Hmmm. What version of glibc do you have? I have glibc 2.3.2 installed and
> I get the same error with LD_ASSUME_KERNEL=2.4.1
>
> I tried LD_ASSUME_KERNEL=2.4.22, since everything is good under 2.4, but that
> didn't help either. Another guy said to check the archives, which I did, but
> I don't know what to search for.


Are you doing LD_ASSUME_KERNEL=2.4.1 on the same line as the rpm command?

This should work:
LD_ASSUME_KERNEL=2.4.1 rpm -qa

This shouldn't:
LD_ASSUME_KERNEL=2.4.1
rpm -qa

--
Once you have their hardware. Never give it back.
(The First Rule of Hardware Acquisition)
Sam Flory <[email protected]>

2003-09-25 17:10:33

by Bradley Chapman

[permalink] [raw]
Subject: Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

Mr. Flory,

--- Samuel Flory <[email protected]> wrote:
> Bradley Chapman wrote:
> > Mr. Dovera,
> >
> > --- Paolo Dovera <[email protected]> wrote:
> >
> >>Hi, try this:
> >>
> >>export LD_ASSUME_KERNEL=2.4.1
> >>
> >>before run rpm command, this works fine on my RH9
> >
> >
> > Hmmm. What version of glibc do you have? I have glibc 2.3.2 installed and
> > I get the same error with LD_ASSUME_KERNEL=2.4.1
> >
> > I tried LD_ASSUME_KERNEL=2.4.22, since everything is good under 2.4, but that
> > didn't help either. Another guy said to check the archives, which I did, but
> > I don't know what to search for.
>
>
> Are you doing LD_ASSUME_KERNEL=2.4.1 on the same line as the rpm command?
>
> This should work:
> LD_ASSUME_KERNEL=2.4.1 rpm -qa
>
> This shouldn't:
> LD_ASSUME_KERNEL=2.4.1
> rpm -qa

I tried it the first way and I got the same error. I've already upgraded my glibc;
do I need to reboot to 2.4.22-ac2 and upgrade some other system component, like
ld.so?

Brad


=====
Brad Chapman

Permanent e-mail: [email protected]

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

2003-09-25 19:05:07

by Bryan O'Sullivan

[permalink] [raw]
Subject: Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

On Thu, 2003-09-25 at 10:10, Bradley Chapman wrote:

> I tried it the first way and I got the same error. I've already upgraded my glibc;
> do I need to reboot to 2.4.22-ac2 and upgrade some other system component, like
> ld.so?

You need to install the latest version of RPM. You can get it from
rpm.org.

<b

2003-09-25 19:51:55

by David Hollis

[permalink] [raw]
Subject: Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

Bradley Chapman wrote:

>
>I tried it the first way and I got the same error. I've already upgraded my glibc;
>do I need to reboot to 2.4.22-ac2 and upgrade some other system component, like
>ld.so?
>
>Brad
>
>
>=====
>Brad Chapman
>
>
>
>
A few ways to solve this:
What I did before upgrading RPM was:
export LD_ASSUME_KERNEL=2.2.5
rpm -Uvh blah.rpm

If you upgrade to rpm that is in RedHat Rawhide (current 4.2.1-0.30),
this problem goes away. You may need to upgrade your glibc as well, I'm
currently at 2.3.2-91 from Rawhide.

2003-09-25 20:18:17

by Bradley Chapman

[permalink] [raw]
Subject: Re: 2.6.0-test broke RPM 4.2 on Red Hat 9 in a VERY weird way

Mr. Hollis,

--- David T Hollis <[email protected]> wrote:
> Bradley Chapman wrote:
>
> >
> >I tried it the first way and I got the same error. I've already upgraded my
> glibc;
> >do I need to reboot to 2.4.22-ac2 and upgrade some other system component, like
> >ld.so?
> >
> >Brad
> >
> >
> >=====
> >Brad Chapman
> >
> >
> >
> >
> A few ways to solve this:
> What I did before upgrading RPM was:
> export LD_ASSUME_KERNEL=2.2.5
> rpm -Uvh blah.rpm
>
> If you upgrade to rpm that is in RedHat Rawhide (current 4.2.1-0.30),
> this problem goes away. You may need to upgrade your glibc as well, I'm
> currently at 2.3.2-91 from Rawhide.
>

Thanks! Using 2.2.5 works!

Thanks to everyone who helped out. Perhaps this needs to go into an FAQ somewhere?

Brad

=====
Brad Chapman

Permanent e-mail: [email protected]

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com