Hi All,
I think my Linux (CentOS release 4.4 (Final) Kernel 2.6.19) died. A week ago I received this error:
Code:
/etc/cron.weekly/yum.cron:
rpmdb: page 8: illegal page type or format
rpmdb: PANIC: Invalid argument
error: db4 error(-30978) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery
Then, in less than two hours I received this:
Code:
/etc/cron.daily/yum.cron:
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30978)
error: cannot open Packages database in /var/lib/rpm
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 477, in doCommands
return self.updatePkgs()
File "/usr/share/yum-cli/cli.py", line 957, in updatePkgs
self.doRpmDBSetup()
File "__init__.py", line 187, in doRpmDBSetup
File "__init__.py", line 78, in addDB
TypeError: rpmdb open failed
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30978)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 80, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 170, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root)
File "__init__.py", line 82, in doConfigSetup
File "config.py", line 273, in __init__
File "config.py", line 385, in _getsysver
TypeError: rpmdb open failed
Since then I've been receiving this error so I logged in today to see what's going on. As you can suspect, I just made it worse. There were a lot of processes runnung so I figured it's time to restart. After restart my network doesn't work either. I checked the log and it appeard that all the errors start when the system enters run lvl 3:
Code:
Jan 28 14:13:25 localhost init: Entering runlevel: 3
Jan 28 14:13:26 localhost iptables: /etc/rc3.d/S08iptables: line 29: 1604 Done(1) lsmod 2>/dev/null
Jan 28 14:13:32 localhost named[1823]: zone lecws.com/IN: sending notifies (serial 2006122801)
Jan 28 14:13:26 localhost iptables: Flushing firewall rules:
Jan 28 14:13:26 localhost iptables: 1605 Segmentation fault | grep -q ipchains
Jan 28 14:13:26 localhost iptables: /etc/rc3.d/S08iptables: line 34: 1606 Done /sbin/modprobe --version 2>&1
Jan 28 14:13:26 localhost iptables: 1607 Segmentation fault | grep -q module-init-tools
Jan 28 14:13:26 localhost iptables: succeeded
Jan 28 14:13:26 localhost iptables: [
Jan 28 14:13:26 localhost iptables:
Jan 28 14:13:27 localhost iptables: Setting chains to policy ACCEPT: raw nat mangle filter
Jan 28 14:13:27 localhost iptables: failed
Jan 28 14:13:27 localhost iptables:
Jan 28 14:13:27 localhost iptables: Unloading iptables modules:
Jan 28 14:13:27 localhost iptables: Opening /proc/modules: No such file or directory
Jan 28 14:13:27 localhost iptables: /etc/rc3.d/S08iptables: line 47: 1646 Segmentation fault grep -q "^${mod}" /proc/modules
Jan 28 14:13:27 localhost iptables: Opening /proc/modules: No such file or directory
Jan 28 14:13:27 localhost iptables: /etc/rc3.d/S08iptables: line 47: 1652 Segmentation fault grep -q "^${mod}" /proc/modules
Jan 28 14:13:27 localhost iptables: succeeded
Jan 28 14:13:27 localhost iptables:
Jan 28 14:13:27 localhost iptables: Applying iptables firewall rules:
Jan 28 14:13:27 localhost iptables: succeeded
Jan 28 14:13:27 localhost iptables: [
Jan 28 14:13:27 localhost iptables:
Jan 28 14:13:27 localhost rc: Starting iptables: succeeded
Jan 28 14:13:27 localhost network: Setting network parameters:
Jan 28 14:13:28 localhost sysctl: net.ipv4.ip_forward = 0
Jan 28 14:13:28 localhost sysctl: net.ipv4.conf.default.rp_filter = 1
Jan 28 14:13:32 localhost named: named startup succeeded
Jan 28 14:13:28 localhost sysctl: net.ipv4.conf.default.accept_source_route = 0
Jan 28 14:13:28 localhost sysctl: kernel.sysrq = 0
Jan 28 14:13:28 localhost sysctl: kernel.core_uses_pid = 1
Jan 28 14:13:28 localhost network: Setting network parameters: succeeded
Jan 28 14:13:28 localhost network: [
Jan 28 14:13:28 localhost network:
Jan 28 14:13:32 localhost named: [
Jan 28 14:13:28 localhost network: Bringing up loopback interface:
Jan 28 14:13:28 localhost ifup: network-functions: line 39: 1686 Done basename $CONFIG
Jan 28 14:13:28 localhost ifup: 1688 Segmentation fault | grep -q '[^g]-'
Jan 28 14:13:28 localhost ifup: network-functions: line 179: 1693 Done LC_ALL= LANG= ip -o link
Jan 28 14:13:28 localhost ifup: 1694 Segmentation fault | grep -q $1
Jan 28 14:13:29 localhost ifup: network-functions: line 179: 1695 Done LC_ALL= LANG= ip -o link
Jan 28 14:13:29 localhost ifup: 1696 Segmentation fault | grep -q $1
Jan 28 14:13:29 localhost ifup: ./ifup: line 240: 1697 Exit 71 ethtool -i $DEVICE 2>/dev/null
Jan 28 14:13:29 localhost ifup: 1698 Segmentation fault | grep -q "driver: bonding"
Jan 28 14:13:29 localhost ifup: ./ifup: line 258: 1699 Done iptables -L -n 2>/dev/null
Jan 28 14:13:29 localhost ifup: 1700 Segmentation fault | LC_ALL=C grep -q RH-Lokkit-0-50-INPUT
Jan 28 14:13:29 localhost ifup: ./ifup: line 429: 1705 Broken pipe LC_ALL=C ip addr ls ${REALDEVICE}
Jan 28 14:13:29 localhost ifup: Error adding address 127.0.0.1 for lo.
Jan 28 14:13:29 localhost ifup: 1706 Segmentation fault | LC_ALL=C grep -q "${IPADDR}/${PREFIX}"
Jan 28 14:13:29 localhost ifup: RTNETLINK answers: File exists
Jan 28 14:13:29 localhost ifup: ./ifup: line 443: 1713 Exit 71 ethtool -i $DEVICE 2>/dev/null
Jan 28 14:13:29 localhost ifup: 1714 Segmentation fault | grep -q "driver: bonding"
Jan 28 14:13:29 localhost ifup: network-functions: line 39: 1721 Done basename $CONFIG
Jan 28 14:13:29 localhost ifup: 1724 Segmentation fault | grep -q '[^g]-'
Jan 28 14:13:29 localhost ifup: /etc/sysconfig/network-scripts/ifup-post: line 85: 1737 Done iptables -L -n 2>/dev/null
Jan 28 14:13:29 localhost ifup: 1738 Segmentation fault | grep -q RH-Lokkit-0-50-INPUT
Jan 28 14:13:29 localhost network: Bringing up loopback interface: succeeded
Jan 28 14:13:29 localhost network: [
Jan 28 14:13:30 localhost network:
Jan 28 14:13:30 localhost rc: Starting network: succeeded
...
Anybody has any ideas what could be the problem? Any help is appreciated.
Thanks,
LEC