Red Hat Bugzilla – Bug 89477
rpm throws db4 errors depending on user running it
Last modified: 2007-04-18 12:53:15 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20030131
Description of problem:
I've written mach, a chroot builder. It bootstraps the least amount of packages
necessary to get apt-get running, and then forces a consistency update.
I have observed that running rpm --root (path to chroot) -qa can give errors
when run sudo or as root, while it works fine as user. I've been able to
reproduce this on two Red Hat 9 (non-updated) machines, so it should be
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Get mach from http://thomas.apestaart.org/projects/mach/
2. Read the README and get the packages to install redhat 9
3. run "make rpm-build" in dist/redhat-9-i386
4. install libvorbis by doing
sudo /usr/sbin/chroot /usr/local/mach/root
apt-get install libvorbis
(this triggers install as well)
5. leave the chroot and run
sudo /bin/rpm --root /usr/local/mach/root -qa
Actual Results: rpm -qa throws an error, stopping at unzip
last bit of output:
error: db4 error(-30989) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page
Expected Results: when running /bin/rpm --root /usr/local/mach/root -qa, no
errors are thrown, and the whole package list is returned.
As you can see, the first package returned after unzip is the newly installed
Running rpm as root instead of sudo root also gives the same error.
Sorry to make it some effort to reproduce using mach, but I've taken some time
to get to the easiest way to reproduce this with the least amount of factors
affecting the install.
Hope this helps us both :)
Hmmm. This *might* be a dupe of bug 88720.
*** This bug has been marked as a duplicate of 88720 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.