Skip to contentSkip to conversation

RPM issue on 2.6.5

DISCUSSION Calin Cosma 2 participants 4 messages Apr 27, 2004

lore
Share & tools
lore
#0 lore raw

Hello pepole,

I have an RH9, upgraded to 2.6.5. After I installed the new kernel, I was unable to install any rpm due to following error.

"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
no packages"

Now, I googled it about and found this:

http://www.rpm.org/hintskinks/repairdb/

After following step by step the instructions I found, there the result was the same.
The odd thing is that I receive this message even when I try rpm -qa as root. But if I try rpm -qa as average user it seems to work. Even odd is that when I'm using 2.4.20-8 kernel (the one which cames with RH9) rpm works fine. That's why I think this gotta be a kernel issue (most probably a configuration one, so I attached my 2.6.5 config file).

Could anyone help me with this?

Thank you in advance

Calin Cosma

-----------------------------------------------------------------------

Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
-- Antoine de Saint-Exupery

------------------------------------------------------------------------

---------------------------------------------------------------
Lucram pentru tine. Analizam. Cautam zilnic.
Alegem ceea ce te intereseaza. Te anuntam.
http://www.REDUCERI.ro/

#1 lore raw

Update your rpm version to RH 4.2-2, your db4 to 4.0.14-20 OR set the environment variable as a workaround to export LD_ASSUME_KERNEL=2.2.5

Quoted 47 lines · Calin Cosma

Hello pepole,

I have an RH9, upgraded to 2.6.5. After I installed the new kernel, I was unable to install any rpm due to following error.

"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
no packages"

Now, I googled it about and found this:

http://www.rpm.org/hintskinks/repairdb/

After following step by step the instructions I found, there the result was the same.
The odd thing is that I receive this message even when I try rpm -qa as root. But if I try rpm -qa as average user it seems to work. Even odd is that when I'm using 2.4.20-8 kernel (the one which cames with RH9) rpm works fine. That's why I think this gotta be a kernel issue (most probably a configuration one, so I attached my 2.6.5 config file).

Could anyone help me with this?

Thank you in advance

Calin Cosma

-----------------------------------------------------------------------

Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
-- Antoine de Saint-Exupery

------------------------------------------------------------------------

---------------------------------------------------------------
Lucram pentru tine. Analizam. Cautam zilnic.
Alegem ceea ce te intereseaza. Te anuntam.
http://www.REDUCERI.ro/

Signature · 5 lines
Tom

LINUX user since kernel 0.99.x 1994.
RPM Alpha packages at http://alpha.steudten.com/packages
Want to know what S.u.S.E 1995 cdrom-set contains?
#2 lore raw
Quoted 4 lines · Thomas Steudten

Update your rpm version to RH 4.2-2, your db4 to 4.0.14-20 OR set the environment variable as a workaround to export LD_ASSUME_KERNEL=2.2.5

It worked with the environment setting. Still I don't want to ask dumb question, but could explain me which is the reason for this?

Thank you a lot.

Calin Cosma

-----------------------------------------------------------------------

Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
-- Antoine de Saint-Exupery

------------------------------------------------------------------------

---------------------------------------------------------------
Lucram pentru tine. Analizam. Cautam zilnic.
Alegem ceea ce te intereseaza. Te anuntam.
http://www.REDUCERI.ro/

#3 lore raw

Reason?
It seems to be problem with the O_SYNC flag in the open() call from libc and of rpm and of db4, don't know exact. Google the web for more information.

O_SYNC The file is opened for synchronous I/O. Any writes on the
resulting file descriptor will block the calling process until the data has been physically written to the underlying hardware.

The LD_ASSUME_KERNEL is queried in the libc, so it should be better to set it only if you run rpm.
Version varies from 2.2.5 to 2.4.1. If you look in the glic sources, you will see more.

Quoted 9 lines · Calin Cosma
Quoted 4 lines · Thomas Steudten

Update your rpm version to RH 4.2-2, your db4 to 4.0.14-20 OR set the environment variable as a workaround to export LD_ASSUME_KERNEL=2.2.5

It worked with the environment setting. Still I don't want to ask dumb question, but could explain me which is the reason for this?

Signature · 5 lines
Tom

LINUX user since kernel 0.99.x 1994.
RPM Alpha packages at http://alpha.steudten.com/packages
Want to know what S.u.S.E 1995 cdrom-set contains?