Friday, 1 June 2012

IBM HTTP Server 7.0 and Red Hat Enterprise Linux 6.2 - not so happy campers

Following my earlier post - Adding a local Yum repository to Red Hat Enterprise Linux 6.2 - I hit another road-block on my way to a completed silent installation of IBM HTTP Server 7.0 on Red Hat Enterprise Linux 6.2.

The installation mostly completes, but I see: -

$ cat /opt/IBM/HTTPServer/logs/install/log.txt 

...
(01-Jun-2012 19:17:27), Process, com.ibm.ws.install.ni.ismp.installtoolkitbridge.ISMPInstallToolkitBridgeForNIFramework, wrn, Config action failed: SetupAdm - /opt/IBM/HTTPServer/properties/version/nif/config/install/SetupAdm.ant
...
(01-Jun-2012 19:17:28), Process, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=2
(01-Jun-2012 19:17:28), Process, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFPARTIALSUCCESS
...

When I dig further into the logs: -

gunzip installconfig.log.gz
$ cat installconfig.log | grep -i fail

...
   <message>The exception message is: Execute failed: java.io.IOException: Cannot run program "/opt/IBM/HTTPServer/bin/setupadm" (in directory "/opt/IBM/HTTPServer/bin"): java.io.IOException: error=2, No such file or directory</message>
 <message>The translated exception message is: Execute failed: java.io.IOException: Cannot run program "/opt/IBM/HTTPServer/bin/setupadm" (in directory "/opt/IBM/HTTPServer/bin"): java.io.IOException: error=2, No such file or directory</message>
    <message>/opt/IBM/HTTPServer/properties/version/nif/config/install/SetupAdm.ant:198: Execute failed: java.io.IOException: Cannot run program "/opt/IBM/HTTPServer/bin/setupadm" (in directory "/opt/IBM/HTTPServer/bin"): java.io.IOException: error=2, No such file or directory

...

Hmmmm, looks familiar. What else did I forget to install ?

So I test the failing program: -

$ /opt/IBM/HTTPServer/bin/setupadm 

-bash: /opt/IBM/HTTPServer/bin/setupadm: /bin/ksh: bad interpreter: No such file or directory


Ooops

Time for a quick YUM: -

$ yum install ksh

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ksh.x86_64 0:20100621-12.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
 Package       Arch             Version                     Repository        Size
===================================================================================
Installing:
 ksh           x86_64           20100621-12.el6             server           684 k

Transaction Summary
===================================================================================
Install       1 Package(s)

Total download size: 684 k
Installed size: 1.5 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ksh-20100621-12.el6.x86_64                                      1/1 
Installed products updated.

Installed:
  ksh.x86_64 0:20100621-12.el6                                                     

Complete!

I re-run: -

/opt/IBM/HTTPServer/bin/setupadm 

and now see: -

......
EXECUTION MODE:

        COMMAND LINE Arguments:
                Run this script with command line arguments:
                -usr <userName> -grp <groupname> -cfg <IHS web server configfileNam
e>  
                -adm <IHS admin server configfilename> -plg <plugin-cfg.xml>(option
al)
ARGUMENTS:
       -silent:
                This allows this script to run without any messsage text.  
        -create:
  This  parameter  indicates that we will attempt to create 
a User and Group. You must be running as Root
......

which is much better.

Wil re-try my IHS installation now .....

No comments:

Reminder - installing podman and skopeo on Ubuntu 22.04

This follows on from: - Lest I forget - how to install pip on Ubuntu I had reason to install podman  and skopeo  on an Ubuntu box: - lsb_rel...