rpm fubar'd after rpm -e failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Problems, problems...this is upgraded RH8, seemingly running like a
top. Until I go to remove a package that was installed during the
install. The rpm -evv hung at:

warning: /etc/logrotate.d/privoxy saved as
/etc/logrotate.d/privoxy.rpmsave
D:     erase: %postun(privoxy-3.0.0-2) asynchronous scriptlet start
D:     erase: %postun(privoxy-3.0.0-2)  execv(/bin/sh) pid 23986
+ '[' 0 = 0 ']'
+ id privoxy
+ /usr/sbin/userdel privoxy
+ /bin/grep -E '^privoxy:' /etc/group
+ /bin/true
D:     erase: waitpid(23986) rc 23986 status 0
D:   --- h#    2271 privoxy-3.0.0-2

I waited about 30 minutes. No go. No cpu being used at all, just
sitting there. kill -KILL was the only way to get the prompt back. 
Now, any and all rpm commands hang. Including 'rpm --rebuilddb'. No cpu, no
sign of disk activity, nothing. If this was waiting for PID 23986 to
exit, there was no such PID when I checked.


# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.24146
D: creating directory /var/lib/rpmrebuilddb.24146
D: opening old database with dbapi 3
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0

Hangs at that point. There is nothing in the tmp dir:


# ll /var/lib/rpmrebuilddb.24146  
total 8
drwxr-xr-x    2 root     root         4096 Oct 10 21:22 ./
drwxr-xr-x   24 root     root         4096 Oct 10 21:22 ../

# ll /var/lib/rpmrebuilddb.24146/*
ls: /var/lib/rpmrebuilddb.24146/*: No such file or directory


With strace:


[...]
open("/var/lib/rpm/__db.002", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
mmap2(NULL, 1310720, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x4045d000
close(3)                                = 0
open("/var/lib/rpm/__db.003", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
mmap2(NULL, 360448, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x4059d000
close(3)                                = 0
open("/var/lib/rpm/Packages", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=27267072, ...}) = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\7\0\0\0\0\20\0\0\0\10"...,256) = 256
close(3)                                = 0
open("/var/lib/rpm/Packages", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=27267072, ...}) = 0
brk(0x805c000)                          = 0x805c000
brk(0x805d000)                          = 0x805d000
select(0, NULL, NULL, NULL, {0, 1000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 2000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 4000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 8000})  = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 16000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 32000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 64000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 128000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 256000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 512000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)

[...]

Repeats seemingly infinitely. /var/lib/rpm *looks* fine:

drwxr-xr-x    2 rpm      rpm          4096 Oct  6 16:08 ./
drwxr-xr-x   25 root     root         4096 Oct 10 21:27 ../
-rw-r--r--    1 rpm      rpm       5386240 Oct 10 20:52 Basenames
-rw-r--r--    1 rpm      rpm         12288 Oct  7 08:01 Conflictname
-rw-r--r--    1 rpm      rpm        974848 Oct 10 11:55 Dirnames
-rw-r--r--    1 rpm      rpm      10465280 Oct 10 11:55 Filemd5s
-rw-r--r--    1 rpm      rpm         24576 Oct 10 11:55 Group
-rw-r--r--    1 rpm      rpm         20480 Oct 10 11:55 Installtid
-rw-r--r--    1 rpm      rpm         49152 Oct 10 11:55 Name
-rw-r--r--    1 rpm      rpm      27267072 Oct 10 20:52 Packages
-rw-r--r--    1 rpm      rpm        339968 Oct 10 11:55 Providename
-rw-r--r--    1 rpm      rpm         77824 Oct 10 11:55 Provideversion
-rw-r--r--    1 root     root        12288 Oct 10 00:26 Pubkeys
-rw-r--r--    1 rpm      rpm        221184 Oct 10 11:55 Requirename
-rw-r--r--    1 rpm      rpm        139264 Oct 10 11:55 Requireversion
-rw-r--r--    1 rpm      rpm         90112 Oct 10 00:26 Sha1header
-rw-r--r--    1 rpm      rpm         45056 Oct 10 11:55 Sigmd5
-rw-r--r--    1 rpm      rpm         12288 Oct 10 11:55 Triggername
-rw-r--r--    1 root     root         8192 Oct  6 16:08 __db.001
-rw-r--r--    1 root     root      1310720 Oct  6 16:08 __db.002
-rw-r--r--    1 root     root       360448 Oct  6 16:08 __db.003

AFAICT.

As I say, the system otherwise seems fine. I did the fetchmail update
last night, which was the last time I rpm'd anything (IIRC). Help!

-- 
Hal Burgiss
 





[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux