Warnings and errors during installation of Red Hat Enterprise Linux in /root/install.log

Solution Unverified - Updated -

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.log contains 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 md5sum of 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 255 tells that while installing the rpm package modcluster, the %post script of that rpm failed.
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 rpm package 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 scriptlet as 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 scriptlet failed.

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.