linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RPM issue on 2.6.5
@ 2004-04-27  9:13 Calin Cosma
  2004-04-27 10:59 ` Thomas Steudten
  0 siblings, 1 reply; 4+ messages in thread
From: Calin Cosma @ 2004-04-27  9:13 UTC (permalink / raw)
  To: linux-admin

[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]

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/

[-- Attachment #2: config-2.6.5.bz2 --]
[-- Type: application/x-bzip, Size: 10381 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RPM issue on 2.6.5
  2004-04-27  9:13 RPM issue on 2.6.5 Calin Cosma
@ 2004-04-27 10:59 ` Thomas Steudten
  2004-04-27 12:31   ` Calin Cosma
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Steudten @ 2004-04-27 10:59 UTC (permalink / raw)
  To: Calin Cosma; +Cc: linux-admin

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

Calin Cosma wrote:

> 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/

-- 
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?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RPM issue on 2.6.5
  2004-04-27 10:59 ` Thomas Steudten
@ 2004-04-27 12:31   ` Calin Cosma
  2004-04-27 12:36     ` Thomas Steudten
  0 siblings, 1 reply; 4+ messages in thread
From: Calin Cosma @ 2004-04-27 12:31 UTC (permalink / raw)
  To: Thomas Steudten; +Cc: linux-admin


On Tue, 2004-04-27 at 13:59, Thomas Steudten wrote:
> 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/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RPM issue on 2.6.5
  2004-04-27 12:31   ` Calin Cosma
@ 2004-04-27 12:36     ` Thomas Steudten
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Steudten @ 2004-04-27 12:36 UTC (permalink / raw)
  To: Calin Cosma; +Cc: linux-admin

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.

Calin Cosma wrote:

> On Tue, 2004-04-27 at 13:59, Thomas Steudten wrote:
> 
>>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?

-- 
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?



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-27 12:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-27  9:13 RPM issue on 2.6.5 Calin Cosma
2004-04-27 10:59 ` Thomas Steudten
2004-04-27 12:31   ` Calin Cosma
2004-04-27 12:36     ` Thomas Steudten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).