RHEL4.5 Cluster Suite fails to start custom script and gives out returned 1 (generic error)
Issue
Issue:
Red Hat Enterprise Linux 4.5 Cluster Suite fails to start custom script and gives out returned 1 (generic error)
Customer's Red Hat Enterprise Linux 4.5 Cluster Suite clustered service contains a floating IP address, shared filesystem and a custom user script.
The /var/log/messages shows:
Jul 14 17:23:01 mikelnap clurgmgrd[7090]: <notice> Starting stopped service service:myscript
Jul 14 17:23:02 mikelnap avahi-daemon[6229]: Registering new address record for 10.220.4.1 on bond0.
Jul 14 17:23:03 mikelnap clurgmgrd: [7090]: <notice> vgmyscript is a cluster volume. Ignoring...
Jul 14 17:23:03 mikelnap kernel: kjournald starting. Commit interval 5 seconds
Jul 14 17:23:03 mikelnap kernel: EXT3 FS on dm-10, internal journal
Jul 14 17:23:03 mikelnap kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jul 14 17:23:03 mikelnap mkded: MicroKernel is using the default setting for Home Directory.
Jul 14 17:23:03 mikelnap mkded: MKDE2110: MicroKernel is using the default setting for Home Directory.
Jul 14 17:23:03 mikelnap mkded: MicroKernel Database Engine 10.30.017.000 Copyright (C) Pervasive Software Inc. 2009 All Rights Reserved
Jul 14 17:23:03 mikelnap mkded: MKDE0029: MicroKernel Database Engine 10.30.0 17.000 Copyright (C) Pervasive Software Inc. 2009 All Rights Reserved
Jul 14 17:23:03 mikelnap mkded: /etc/samba/smb.conf was loaded successfully
Jul 14 17:23:03 mikelnap mkded: MKDE0829: /etc/samba/smb.conf was loaded successfully
Jul 14 17:23:03 mikelnap elsdid: starting the daemonizing process
Jul 14 17:23:03 mikelnap clurgmgrd: [7090]: <err> script:myscript-cluster: start of /etc/init.d/myscript-cluster failed (returned 1)
Jul 14 17:23:03 mikelnap clurgmgrd[7090]: <notice> start on script "myscript-cluster" returned 1 (generic error)
Jul 14 17:23:03 mikelnap clurgmgrd[7090]: <warning> #68: Failed to start service:myscript; return value: 1
Jul 14 17:23:04 mikelnap clurgmgrd[7090]: <notice> Stopping service service:myscript
Environment:
Red Hat Enterprise Linux 4.5 Cluster Suite
EasyPay application
Resolution:
Customer needs to consult EasyPay about the syntax error within the custom user scripts.
Root Cause:
The EasyPay custom user script has a bug as its generating a syntax error when executed alone outside Red Hat Cluster Suite.
Diagnostic Steps:
Mounted the /dev/vgmyscript/data filesystem manually. Then started the EasyPay /etc/init.d/myscript script manually. It failed with syntax error within the easypay scripts.
Syntax error on line 233 of /usr/easypay-asp/algemeen/apaches/conf/httpd.conf:
Cannot load /usr/easypay-asp/algemeen/apaches/modules/libmod_epupload.so into server: /usr/easypay-asp/algemeen/apaches/modules/libmod_epupload.so: wrong ELF class: ELFCLASS32
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.