Bug 634

Summary: rpm 2.5.7 breaks database
Product: [Retired] Red Hat Raw Hide Reporter: sds
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1998-12-30 02:39:17 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 sds 1998-12-28 16:10:39 UTC
after upgrading to rpm-2.5.7-1,
# rpm -q rpm
cannot open file //var/lib/rpm/nameindex.rpm:
rpmQuery: rpmdbOpen() failed
# ls -l /var/lib/rpm
total 13490
-rw-r--r--   1 root     root        16384 Dec 28 10:43
conflictsindex.rpm
-rw-r--r--   1 root     root      5259264 Dec 28 10:43
fileindex.rpm
-rw-r--r--   1 root     root        16384 Dec 28 10:43
groupindex.rpm
-rw-r--r--   1 root     root        28672 Dec 28 10:43
nameindex.rpm
-rw-r--r--   1 root     root      9449608 Dec 28 10:43
packages.rpm
-rw-r--r--   1 root     root        24576 Dec 28 10:43
providesindex.rpm
drwxr-xr-x   2 root     root         1024 Dec 28 10:46
rebuilddb.20258
drwxr-xr-x   2 root     root         1024 Dec 28 10:46
rebuilddb.20259
drwxr-xr-x   2 root     root         1024 Nov 30 15:12
rebuilddb.8
-rw-r--r--   1 root     root        53248 Dec 28 10:43
requiredby.rpm
-rw-r--r--   1 root     root        16384 Dec 28 10:43
triggerindex.rpm
# rpm --rebuilddb
cannot open file //var/lib/rpm/nameindex.rpm:
#

Comment 1 Jeff Johnson 1998-12-28 16:33:59 UTC
Try
	rpm --rebuilddb
and reopen this bug if there is still a problem.

Comment 2 sds 1998-12-28 17:25:59 UTC
# rpm --rebuilddb
cannot open file //var/lib/rpm/nameindex.rpm:
# ls -l /var/lib/rpm/
total 13538
   1 drwxr-xr-x   3 root     root         1024 Dec 28 16:13 ./
   1 drwxr-xr-x   7 root     root         1024 Aug  2 10:30 ../
  14 -rw-r--r--   1 root     root        16384 Dec 28 14:57
conflictsindex.rpm
4084 -rw-r--r--   1 root     root      5259264 Dec 28 14:57
fileindex.rpm
  14 -rw-r--r--   1 root     root        16384 Dec 28 14:57
groupindex.rpm
  22 -rw-r--r--   1 root     root        28672 Dec 28 14:57
nameindex.rpm
9315 -rw-r--r--   1 root     root      9499208 Dec 28 14:57
packages.rpm
  22 -rw-r--r--   1 root     root        24576 Dec 28 14:57
providesindex.rpm
   1 drwxr-xr-x   2 root     root         1024 Dec 28 16:13
rebuilddb.23848/
  50 -rw-r--r--   1 root     root        53248 Dec 28 14:57
requiredby.rpm
  14 -rw-r--r--   1 root     root        16384 Dec 28 14:57
triggerindex.rpm

Comment 3 Jeff Johnson 1998-12-30 02:39:59 UTC
rpm-2.5.7 now looks for (and uses) the "original db-1.85" rather
than attemptimg to use the (apparently broken) db_185.h retrofit.

Fixed in rpm-2.5.7-2.