java.io.IOException: Cannot run program “killall”
Purpose – Creating profiles in WAS 8559 on CentOS 7
Pre-requisites –
OS – CentOS7
Websphere – 8.5.5.9
Resolution –
I have installed WAS 8559 NDTrail on CentOS 7 OS – core install.
[root@CentOS1 tools]# uname -a
Linux CentOS1 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@CentOS1 tools]# ./imcl listInstalledPackages
com.ibm.cic.agent_1.8.5000.20160506_1125
com.ibm.websphere.NDTRIAL.v85_8.5.5009.20160225_0435
Now i am trying to create deployment manager profile using the below
/opt/IBM/WebSphere85/bin/./manageprofiles.sh -response Dmgr01_profile.txt
File – Dmgr01_profile.txt
create
profileName=Dmgr01
profilePath=/opt/IBM/WebSphere85/profiles/Dmgr01
templatePath=/opt/IBM/WebSphere85/profileTemplates/management
serverType=DEPLOYMENT_MANAGER
nodeName=CentOS1CellManager01
cellName=CentOS1Cell01
isDefault
The profile creation was partially successful with below message
<message>Returning with return code: INSTCONFPARTIALSUCCESS</message>
Exception in the Dmgr01_create.log –
<message>/opt/IBM/WebSphere85/profileTemplates/management/actions/createProfileShortCut2StartMenuMgmt.ant:792: Execute failed: java.io.IOException: Cannot run program “killall” (in directory “/opt/IBM/WebSphere85/profileTemplates/management/actions”): java.io.IOException: error=2, No such file or directory
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:620)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at com.ibm.ws.install.configmanager.actionengine.ant.utils.InProcessAntRunner.runBuild(InProcessAntRunner.java:801)
at com.ibm.ws.install.configmanager.actionengine.ant.utils.InProcessAntRunner.start(InProcessAntRunner.java:234)
at com.ibm.ws.install.configmanager.actionengine.ANTAction.executeActionUsingAnInProcessANTCall(ANTAction.java:120)
at com.ibm.ws.install.configmanager.actionengine.ANTAction.executeAction(ANTAction.java:54)
at com.ibm.ws.install.configmanager.actionengine.ConfigAction.executeAction(ConfigAction.java:95)
at com.ibm.ws.install.configmanager.ConfigManager.executeAllActionsFound(ConfigManager.java:1125)
at com.ibm.ws.install.configmanager.ConfigManager.executeActions(ConfigManager.java:620)
at com.ibm.ws.install.configmanager.ConfigManager.launch(ConfigManager.java:380)
It seems the exception is because it is unable to find the killall command. I was missing the below package from my OS
$ rpm -qf /usr/bin/killall
psmisc-22.20-9.el7.x86_64
After installing the above package and recreating the profile i was able to create it successfully.
Hope you enjoyed reading this article. Thank you.
Leave a Reply
You must be logged in to post a comment.