Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 88273 - Running 'rpm --rebuild' produces db4 error
Summary: Running 'rpm --rebuild' produces db4 error
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 9
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2003-04-08 14:52 UTC by Jon Hart
Modified: 2007-04-18 16:52 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-04-17 15:22:20 UTC

Attachments (Terms of Use)
Output of 'rpm -vv --rebuilddb' (deleted)
2003-04-08 14:56 UTC, Jon Hart
no flags Details

Description Jon Hart 2003-04-08 14:52:31 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Description of problem:
Running "rpm --rebuild" generates the following message:
'error: db4 error(16) from dbenv->remove: Device or resource busy'

This bug report was generated at the request of Red Hat support engineer, Paulo
Ng. Please refer to Service Request 232865.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Log in as root
2. Run 'rpm --rebuilddb'

Actual Results:  Relevant output from 'rpm -vv --rebuilddb':
D: closed   db environment /var/lib/rpm/Packages
error: db4 error(16) from dbenv->remove: Device or resource busy
D: removed  db environment /var/lib/rpm/Packages

Expected Results:  No db4 errors

Additional info:

Please refer to Service Request 232865. Contact Red Hat support engineer, Paulo
Ng. This bug report was created per his request.

Comment 1 Jon Hart 2003-04-08 14:56:33 UTC
Created attachment 91008 [details]
Output of 'rpm -vv --rebuilddb'

Comment 2 Jon Hart 2003-04-08 15:27:00 UTC
BTW, running 'cd /var/lib/rpm && /usr/lib/rpm/rpmdb_verify Packages' produces no
errors. The Packages database (and every other db in /var/lib/rpm) appears to be

Comment 3 Michael Young 2003-04-08 22:34:51 UTC
Duplicate of bug 83281

Comment 4 Jon Hart 2003-04-09 17:51:47 UTC
Yup, 'tis the same as 83281.  Closing this ticket as duplicate.

*** This bug has been marked as a duplicate of 83281 ***

Comment 5 Jon Hart 2003-04-17 15:14:30 UTC
Jeff Johnson closed 83281 without a proper resolution -- Jeff felt too many
non-related bugs were being dupped to 83281.

This bug (88287) is clearly the same issue as 83281.  Further, rpm/db4/nptl
issues have not be corrected.  Therefore, I am reopening this bug report.

Comment 6 Jeff Johnson 2003-04-17 15:22:20 UTC
Yes, there is an error message displayed after --rebuilddb.

The message is harmless, there is no problem here.

This is a known issue and will be fixed in rpm-4.3.

Comment 7 Adam Monsen 2003-04-17 15:39:49 UTC
Jeff, even though the error message is harmless, people don't /know/ that it is

I may be the special case, but before I found bug 83281 I thought the message
declared something extremely wrong and reinstalled Redhat 9. Shouldn't there be
an open bug until the error is fixed and no longer appears?

(At the least, this info should be added to the only FAQ I could find about
safely rebuilding an RPM database, here:
I've emailed the editor of the page with the suggestion.)

Comment 8 Jeff Johnson 2003-04-17 15:44:41 UTC
I understand all that. No matter what, this error message is in
already released software, and there are going to be zillions of dupes.

All that can't be helped. If it make you happier to have a bug
for this problem, that's fine. What I can't do is service a zillion
*different* problems in a single bug pile on report, no matter what
problem I solve, some other problem will always remain.

That's the only rationale for closing the bug, to prevent a catch-all
bug pile-on. Feel free to reopen other bugs, or even this bug, and
I'll get to the problem when I get to the problem.

Comment 9 Jon Hart 2003-04-17 16:42:19 UTC
> That's the only rationale for closing the bug,
> to prevent a catch-all bug pile-on. Feel free
> to reopen other bugs, or even this bug, and
> I'll get to the problem when I get to the problem.

Understood. Personally, I prefer to keep 83281 open. 83281 already has a nice
trail... especially with the 'nosysinfo' boot option. Further, although the bug
seems to be harmless, the 'nosysinfo' connection indicates a possible
awkwardness between rpm and the new nptl implementation, two fairly important
components. Therefore, I feel this bug should be treated as a known, unresolved
-- albeit harmless -- issue.

Anyway, if 83281 is reopened, perhaps we could remove dupped bug reports which
do not have clear direct ties to the rpm/db4 issue?

Note You need to log in before you can comment on or make changes to this bug.