Bug 99274

Summary: rpm as root fails with kernel 2.6.0-0.test1.1.25 running
Product: [Retired] Red Hat Raw Hide Reporter: Matt Domsch <matt_domsch>
Component: db4Assignee: Jeff Johnson <jbj>
Status: CLOSED CURRENTRELEASE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-17 23:26:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matt Domsch 2003-07-16 20:47:59 UTC
Description of problem:
Running rpm commands as root fails, running as a normal user succeeds as best it
can for that user.  Running with kernel 2.6.0-0.test1.25 and rpm-4.2-0.69.

# rpm -q initscripts
(18 seconds elapse)
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

As a normal user:

[mdomsch@D5JPLF11]$ time rpm -q initscripts
initscripts-7.28-1
 
real    0m0.366s
user    0m0.032s
sys     0m0.014s


Version-Release number of selected component (if applicable):
rpm-4.2-0.69
kernel-2.6.0-0.test1.1.25

How reproducible:
always

Steps to Reproduce:
1. install above packages on up2date RHL9 system
2. run rpm commands as root
3.
    
Actual results:
commands fail as above

Expected results:
commands work

Additional info:

Comment 1 Matt Domsch 2003-07-17 03:40:34 UTC
I see now on linux-kernel that this is well understood to be a db4 and O_DIRECT
problem, not specifically an RPM problem.  Changing to db4.  I didn't see a
duplicate, but if so, please mark this as such and close.

Comment 2 Jeff Johnson 2003-07-17 23:26:39 UTC
Yup, upgrade to rpm-4.2-1 packages from
    ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.2.x