Monday, 3 July 2017

More about the killall command, in the context of WebSphere Application Server

Whilst creating a pair of WebSphere Application Server (WAS) profiles: -

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/management -profileName Dmgr01 -profilePath /opt/ibm/WebSphereProfiles/Dmgr01 -nodeName Dmgr -isDefault -enableAdminSecurity true -adminUserName wasadmin -adminPassword passw0rd

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/managed -profileName AppSrv01 -profilePath /opt/ibm/WebSphereProfiles/AppSrv01 -nodeName Node1


I saw this: -

INSTCONFPARTIALSUCCESS: The profile now exists, but errors occurred. For more information, consult /opt/ibm/WebSphere/AppServer/logs/manageprofiles/Dmgr01_create.log.

and: -

INSTCONFPARTIALSUCCESS: The profile now exists, but errors occurred. For more information, consult /opt/ibm/WebSphere/AppServer/logs/manageprofiles/AppSrv01_create.log.

When I checked the logs: -

cat /opt/ibm/WebSphere/AppServer/logs/manageprofiles/Dmgr01_create.log |grep Exception

I saw this: -

  <method>logException</method>
  <message>Exception was thrown, type of exception is: class org.apache.tools.ant.BuildException</message>
  <method>logException</method>
  <message>The exception message is: Execute failed: java.io.IOException: Cannot run program "killall" (in directory "/opt/ibm/WebSphere/AppServer/profileTemplates/management/actions"): error=2, No such file or directory</message>
  <method>logException</method>
  <message>The translated exception message is: Execute failed: java.io.IOException: Cannot run program "killall" (in directory "/opt/ibm/WebSphere/AppServer/profileTemplates/management/actions"): error=2, No such file or directory</message>
  <method>logException</method>
  <method>logException</method>
  <message>/opt/ibm/WebSphere/AppServer/profileTemplates/management/actions/createProfileShortCut2StartMenuMgmt.ant:792: Execute failed: java.io.IOException: Cannot run program "killall" (in directory "/opt/ibm/WebSphere/AppServer/profileTemplates/management/actions"): error=2, No such file or directory
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
Caused by: java.io.IOException: Cannot run program "killall" (in directory "/opt/ibm/WebSphere/AppServer/profileTemplates/management/actions"): error=2, No such file or directory
Caused by: java.io.IOException: error=2, No such file or directory
--- Nested Exception ---
java.io.IOException: Cannot run program "killall" (in directory "/opt/ibm/WebSphere/AppServer/profileTemplates/management/actions"): error=2, No such file or directory
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
Caused by: java.io.IOException: error=2, No such file or directory


which ties up nicely with an earlier blog post : -


So it looks like RHEL 7.3 has dropped the killall command from the default installation - or, to be more accurate, my RHEL Gold Master VM doesn't have killall therein.

So I installed killall : -

yum install -y psmisc

cleaned up the old profiles: -

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -deleteAll

INSTCONFPARTIALSUCCESS: The profiles no longer exist, but errors occurred. For more information, consult /opt/ibm/WebSphere/AppServer/logs/manageprofiles/deleteAll.log.

rm -Rf /opt/ibm/WebSphereProfiles/

and then recreated the profiles: -

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/management -profileName Dmgr01 -profilePath /opt/ibm/WebSphereProfiles/Dmgr01 -nodeName Dmgr -isDefault -enableAdminSecurity true -adminUserName wasadmin -adminPassword passw0rd

INSTCONFSUCCESS: Success: Profile Dmgr01 now exists. Please consult /opt/ibm/WebSphereProfiles/Dmgr01/logs/AboutThisProfile.txt for more information about this profile.

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/managed -profileName AppSrv01 -profilePath /opt/ibm/WebSphereProfiles/AppSrv01 -nodeName Node1

INSTCONFSUCCESS: Success: Profile AppSrv01 now exists. Please consult /opt/ibm/WebSphereProfiles/AppSrv01/logs/AboutThisProfile.txt for more information about this profile.

which is nice :-)

No comments: