I am new with ControlTier, but I found the installation and
configuration of the server and client straightforward and not
complicated, which just makes my frustration bigger when trying to
execute unsuccessfully the following command from the server to asses
if JBoss is down on the client machine.
ctl -v -p MyProject -t JBossServer -o myservice -c
assertServiceIsDown
SSH works with both rsa and dsa keys. CT is set-up to use dsa. I have
seen similar posts where people fixed the problem by correcting their
SSH PKI configuration. In my case nothing worked making me believe the
ctl on the server side is not using the keys of the CT dedicated
account. is it possible?
Thanks,
Dimitar
ctl -v -p MyProject -t JBossServer -o myservice -c
assertServiceIsDown
parsing buildfile /opt/software/ctier/pkgs/ctl-1.4.8/lib/ant/ctl/
nodedispatch.xml with URI = file:/opt/software/ctier/pkgs/ctl-1.4.8/
lib/ant/ctl/nodedispatch.xml
Project base dir set to: /opt/software/ctier/pkgs/ctl-1.4.8/lib/ant/
ctl
Build sequence for target(s) `execute' is [execute]
Complete build sequence is [execute, ]
execute:
Property "opts.keepgoing" has not been set
Property "opts.failed-nodes.file" has not been set
Override ignored for property "context.user"
authenticated user: ctier
creating an ObjectCommandProxyDispatcher
applying nodeset filter...
number of nodes to dispatch to: 1, (1 threads)
preparing for sequential execution...
returning RemoteCommand object for command: assertServiceIsDown
SSHExec
node1.mydomain.com -> "ctl -p MyProject -t JBossServer -o
myservice -c assertServiceIsDown"
dispatching to proxy on node:
wasintqa0506.wiley.com
Connecting to
node1.mydomain.com:22
Command failed:
/opt/software/ctier/pkgs/ctl-1.4.8/lib/ant/ctl/nodedispatch.xml:19:
com.jcraft.jsch.JSchException: Auth cancel
at
com.controltier.ctl.tasks.controller.Controller.performExecuteAction
(Controller.java:359)
at com.controltier.ctl.tasks.controller.Controller.execute
(Controller.java:311)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:
62)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1340)
at org.apache.tools.ant.Project.executeTarget(Project.java:1309)
at com.controltier.ctl.common.AntProject.execute(AntProject.java:481)
at com.controltier.ctl.cli.CtlMain$mainDispatchAction.execute
(CtlMain.java:472)
at com.controltier.ctl.cli.CtlMain$mainDispatchAction.perform
(CtlMain.java:350)
at com.controltier.ctl.cli.CtlMain.go(CtlMain.java:292)
at com.controltier.ctl.cli.AbstractCtlMain.run(AbstractCtlMain.java:
236)
at com.controltier.ctl.cli.CtlMain.main(CtlMain.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at launcher.CtlLauncher.main(CtlLauncher.java:34)
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute
(SSHExec.java:188)
at com.controltier.ctl.tasks.controller.node.SshCommand.execute
(SshCommand.java:178)
at com.controltier.ctl.cli.CtlExec.executeNodedispatch(CtlExec.java:
950)
at
com.controltier.ctl.tasks.controller.node.ActionProxyDispatcher.dispatch
(ActionProxyDispatcher.java:123)
at
com.controltier.ctl.tasks.controller.node.BaseExecutableTask.execute
(BaseExecutableTask.java:37)
at
com.controltier.ctl.tasks.controller.node.NodeDispatchAction.perform
(NodeDispatchAction.java:73)
at com.controltier.ctl.types.controller.ExecuteAction.perform
(ExecuteAction.java:136)
at
com.controltier.ctl.tasks.controller.Controller.performExecuteAction
(Controller.java:353)
... 38 more
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:453)
at com.jcraft.jsch.Session.connect(Session.java:142)
at org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession
(SSHBase.java:212)
at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute
(SSHExec.java:158)
... 45 more