Warnings and errors during installation of Red Hat Enterprise Linux in /root/install.log
Environment
- Red Hat Enterprise Linux 5.8
Issue
- Installing Red Hat Enterprise Linux 5 with DVD iso and kickstart file.
- After installing it, the file
/root/install.logcontains some warnings and errors as follows.
Installing modcluster-0.12.1-2.el5.x86_64
warning: modcluster-0.12.1-2.el5: Header V3 DSA signature: NOKEY, key ID 37017186
error: %post(modcluster-0.12.1-2.el5.x86_64) scriptlet failed, exit status 255
Installing system-config-cluster-1.0.57-9.noarch
Installing ipvsadm-1.24-13.el5.x86_64
error: %post(ipvsadm-1.24-13.el5.x86_64) scriptlet failed, exit status 255
Installing cluster-snmp-0.12.1-2.el5.x86_64
error: %post(cluster-snmp-0.12.1-2.el5.x86_64) scriptlet failed, exit status 255
Installing rgmanager-2.0.52-21.el5.x86_64
error: %post(rgmanager-2.0.52-21.el5.x86_64) scriptlet failed, exit status 255
Installing Cluster_Administration-en-US-5.2-1.noarch
Installing lvm2-cluster-2.02.84-6.el5.x86_64
error: %post(lvm2-cluster-2.02.84-6.el5.x86_64) scriptlet failed, exit status 255
Installing gfs-utils-0.1.20-10.el5.x86_64
error: %post(gfs-utils-0.1.20-10.el5.x86_64) scriptlet failed, exit status 255
Installing kmod-gfs-0.1.34-15.el5.x86_64
error: %post(kmod-gfs-0.1.34-15.el5.x86_64) scriptlet failed, exit status 255
Installing gnbd-1.1.7-1.el5.x86_64
Installing Global_File_System-en-US-5.2-1.noarch
Installing Cluster_Administration-en-US-5.2-1.noarch
error: %posttrans(Cluster_Administration-en-US-5.2-1.noarch) scriptlet failed, exit status 255
Installing Global_File_System-en-US-5.2-1.noarch
error: %posttrans(Global_File_System-en-US-5.2-1.noarch) scriptlet failed, exit status 255
Installing libgcc-4.1.2-51.el5.x86_64
- Why these warnings and messages are appearing?
Resolution
- Check out the DVD iso and confirm the
md5sumof the same. - While modifying the iso, certain packages seem to be corrupted.
Root Cause
- The DVD iso was modified.
Diagnostic Steps
- The message
error: %post(modcluster-0.12.1-2.el5.x86_64) scriptlet failed, exit status 255tells that while installing therpmpackagemodcluster, the%postscript of thatrpmfailed.
warning: modcluster-0.12.1-2.el5: Header V3 DSA signature: NOKEY, key ID 37017186
error: %post(modcluster-0.12.1-2.el5.x86_64) scriptlet failed, exit status 255
Installing system-config-cluster-1.0.57-9.noarch
Installing ipvsadm-1.24-13.el5.x86_64
error: %post(ipvsadm-1.24-13.el5.x86_64) scriptlet failed, exit status 255
Installing cluster-snmp-0.12.1-2.el5.x86_64
- Every
rpmpackage has some scripts associated with them, if those scripts fail, certain operations which are supposed to happen don't complete. - Example
[root@example ~]# rpm -q --scripts modcluster
postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add modclusterd
DBUS_PID=`cat /var/run/messagebus.pid 2>/dev/null`
/bin/kill -s SIGHUP $DBUS_PID >&/dev/null
# It's ok if this fails (it will fail when oddjob is not running).
/sbin/service oddjobd reload >&/dev/null
exit 0
preuninstall scriptlet (using /bin/sh):
if [ "$1" == "0" ]; then
/sbin/service modclusterd stop >&/dev/null
/sbin/chkconfig --del modclusterd
fi
exit 0
postuninstall scriptlet (using /bin/sh):
if [ "$1" == "0" ]; then
DBUS_PID=`cat /var/run/messagebus.pid 2> /dev/null`
/bin/kill -s SIGHUP $DBUS_PID >&/dev/null
/sbin/service oddjobd reload >&/dev/null
fi
if [ "$1" == "1" ]; then
/sbin/service modclusterd condrestart >&/dev/null
fi
exit 0
### cluster-snmp ###
- See the script, there is a
postinstall scriptletas follows.
postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add modclusterd
DBUS_PID=`cat /var/run/messagebus.pid 2>/dev/null`
/bin/kill -s SIGHUP $DBUS_PID >&/dev/null
# It's ok if this fails (it will fail when oddjob is not running).
/sbin/service oddjobd reload >&/dev/null
exit 0
- This
scriptletfailed.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
