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:
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.
Yup, upgrade to rpm-4.2-1 packages from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.2.x