ctl: not found error

29 views
Skip to first unread message

Surendra

unread,
Apr 18, 2011, 10:47:13 AM4/18/11
to ControlTier
Hello,

I am currently trying to setup project builder module type to deploy
the set of scripts based on the defined workflow in the target client
box(windows) by referring the steps outlined in this "http://
doc36.controltier.org/wiki/Modeler_Getting_started" using controltier
v3.6 version. So, during the execution of the job i get the below
error(in verbose mode),

-----------------------------------------

NodeSet: NodeSet{includes={hostname=BDTIRI22, dominant=false, }}
Workflow: WorkflowImpl{commands=[command( type: PTAAppCtlcommand:
deployargString: -argline ${option.argline})], threadcount=1,
keepgoing=true, strategy=node-first}
data context: {job={project=demo, name=deploy, group=PTAAppCtl},
option={argline=PTA}}
0: command( type: PTAAppCtlcommand: deployargString: -argline $
{option.argline})
ExecutionItem created, executing: dcmd:
ExecutionContext{isUserContext='true', isObjectContext='false',
isCommandContext='true'}
creating an ModuleCommandProxyDispatcher
applying nodeset filter...
number of nodes to dispatch to: 1, (1 threads)
returning RemoteCommand object for command: deploy
ctl: not found
0: ExecutionItem finished, result:
BaseExecutionResult{resultObject=BaseActionResult{outputproperty=output,
errorproperty=error, resultproperty=result, returnproperty

-----------------------------------------

Based on my observation, the error seems to be occurring even before
the "deploy" operation calls. The same job runs fine in the local node
"server node" with out any issue and when i switch the client node the
above error appears.

Any clues?

Thanks,
Surendra

Moses Lei

unread,
Apr 18, 2011, 11:11:57 AM4/18/11
to contr...@googlegroups.com
This is a sign that the environment on the client node isn't set up properly... try doing: ssh user@clientnode ctl

to see if you get the same error. If you do, then investigate why-- maybe .ctierrc isn't being called from bashrc, or bashrc isn't being called for some reason.

Another test to see if the ctierrc is being sourced is: ssh user@clientnode echo \$CTL_BASE

Moses

--
Moses Lei
[ Professional Services | DTO Solutions, Inc. ]
[ mobile: 703.901.5969 | e-mail: ml...@dtosolutions.com | aim/gtalk: ml...@controltier.com | yahoo: moseslei | windows live (msn): ml...@dtosolutions.com ]




--
You received this message because you are subscribed to the Google Groups "ControlTier" group.
To post to this group, send email to contr...@googlegroups.com
To unsubscribe from this group, send email to controltier...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/controltier?hl=en
http://wiki.controltier.org

Anthony Shortland

unread,
Apr 18, 2011, 11:24:59 AM4/18/11
to contr...@googlegroups.com
Hi Surendra ... what kind of ssh setup are you using on the target Windows-based target client? Are you running a Bash shell under Cygwin ssh'ing into the box or have you setup a command shell perhaps? The environment setup is different depending on the choice you've made.

Surendra

unread,
Apr 18, 2011, 2:07:25 PM4/18/11
to ControlTier
Moses,

I tried "ssh user@clientnode ctl" it resulted with same error "ctl:
not found"
and also tried "ssh user@clientnode echo \$CTL_BASE" it shows no
result/empty

Anthony,

Am using openssh setup in windows-based target client node of version
"SSH-2.0-OpenSSH_4.3" and connecting between nodes using ssh.
cygwin is not setup on client node.

Any suggestions?

Thanks,
Surendra


On Apr 18, 8:24 pm, Anthony Shortland <anth...@controltier.com> wrote:
> Hi Surendra ... what kind of ssh setup are you using on the target Windows-based target client? Are you running a Bash shell under Cygwin ssh'ing into the box or have you setup a command shell perhaps? The environment setup is different depending on the choice you've made.
>
> On Apr 18, 2011, at 8:11 AM, Moses Lei wrote:
>
>
>
>
>
>
>
> > This is a sign that the environment on the client node isn't set up properly... try doing: ssh user@clientnode ctl
>
> > to see if you get the same error. If you do, then investigate why-- maybe .ctierrc isn't being called from bashrc, or bashrc isn't being called for some reason.
>
> > Another test to see if the ctierrc is being sourced is: ssh user@clientnode echo \$CTL_BASE
>
> > Moses
>
> > --
> > Moses Lei
> > [ Professional Services | DTO Solutions, Inc. ]
> > [ mobile: 703.901.5969 | e-mail: m...@dtosolutions.com | aim/gtalk: m...@controltier.com | yahoo: moseslei | windows live (msn): m...@dtosolutions.com ]
> > For more options, visit this group athttp://groups.google.com/group/controltier?hl=en

chengkai liang

unread,
Apr 18, 2011, 2:12:55 PM4/18/11
to contr...@googlegroups.com
That just mean you didn't setup ControlTier Client or your setup is incorrect.  You should following the wiki ZIP installer - ControlTier to install ControlTier client.

chengkai liang

The Z shell is to unix what OS X is to the rest of the computing world.

Surendra

unread,
Apr 18, 2011, 2:22:07 PM4/18/11
to ControlTier
My script driven approach worked fine on this client node and the same
scripts trying to implement from model driven approach did not work on
the same client node. i believe if the controltier client is setup
incorrect it would have thrown the same error in my first approach of
script driven, Am confused.

Thanks,
Surendra

On Apr 18, 11:12 pm, chengkai liang <ckm.li...@gmail.com> wrote:
> That just mean you didn't setup ControlTier Client or your setup is incorrect.  You should following the wiki ZIP installer - ControlTier to install ControlTier client.
>
> chengkai liang
> ckm.li...@gmail.com

chengkai liang

unread,
Apr 18, 2011, 2:27:28 PM4/18/11
to contr...@googlegroups.com

If you RDP into your windows environment, and open a command prompt, can you see those variables by using

SET CTL

If you can see those variable through RDP session, but cannot see it from SSH session, then that means
CTIER_ROOT, and CTL_* variables not not visible under your SSH session. If that's the case, then you have to create "environment" file under .ssh to set those variables.
chengkai liang
ckm....@gmail.com

The Z shell is to unix what OS X is to the rest of the computing world.

Moses Lei

unread,
Apr 18, 2011, 2:29:20 PM4/18/11
to contr...@googlegroups.com
What is the SSH daemon on the client box? Is it also OpenSSH/Cygwin, or something else?

--
Moses Lei
[ Professional Services | DTO Solutions, Inc. ]
[ mobile: 703.901.5969 | e-mail: ml...@dtosolutions.com | aim/gtalk: ml...@controltier.com | yahoo: moseslei | windows live (msn): ml...@dtosolutions.com ]



On Mon, Apr 18, 2011 at 10:57 AM, Surendra <sur...@yahoo.com> wrote:
Hello Moses,

Tried  ssh user@clientnode ctl

it resulted with same error "ctl: not found"

Also, Tried ssh user@clientnode echo \$CTL_BASE
it did not show any result

Am using openssh to connect to client node window box. Any
suggestions?

Thanks,
Surendra


On Apr 18, 8:11 pm, Moses Lei <m...@dtosolutions.com> wrote:
> This is a sign that the environment on the client node isn't set up
> properly... try doing: ssh user@clientnode ctl
>
> to see if you get the same error. If you do, then investigate why-- maybe
> .ctierrc isn't being called from bashrc, or bashrc isn't being called for
> some reason.
>
> Another test to see if the ctierrc is being sourced is: ssh
> user@clientnodeecho \$CTL_BASE

>
> Moses
>
> --
> Moses Lei
> [ Professional Services | DTO Solutions, Inc. ]
> [ mobile: 703.901.5969 | e-mail: m...@dtosolutions.com | aim/gtalk:
> m...@controltier.com | yahoo: moseslei | windows live (msn):
> m...@dtosolutions.com ]

Surendra

unread,
Apr 18, 2011, 2:49:07 PM4/18/11
to ControlTier
IT is OpenSSh

Thanks,
Surendra

On Apr 18, 11:29 pm, Moses Lei <m...@dtosolutions.com> wrote:
> What is the SSH daemon on the client box? Is it also OpenSSH/Cygwin, or
> something else?
> --
> Moses Lei
> [ Professional Services | DTO Solutions, Inc. ]

chengkai liang

unread,
Apr 18, 2011, 2:56:18 PM4/18/11
to contr...@googlegroups.com
You have to first edit the /etc/sshd_config file to set

PermitUserEnvironment yes

save the change, and restart the sshd

Then,

you have to create an environment file under controltier user directory's .ssh directory, add those ControlTier variables in that file. Also set the path point to ctl_* bat scripts.

like

PATH=/cygdrive/your_drive/controltier_path/pkgs/ctl-3.6.0/bin

environment file does not substitute/expand any variables. Once you done this, ssh into the node, and do

echo $CTL_BASE

to see if the variable present.

chengkai liang
ckm....@gmail.com

The Z shell is to unix what OS X is to the rest of the computing world.

Surendra

unread,
Apr 19, 2011, 11:05:36 AM4/19/11
to ControlTier
Have setup the environment file on the client windows node under .ssh
directory path and here is the resultant verification,

[root@scmlinux etc]# ssh skumar08@bdtiri22
Last login: Tue Apr 19 14:48:40 2011 from bdtiri22.xyz.com
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\skumar08>echo %CTL_BASE%
C:\ctier\ctl

However, am getting log4j connection failure when i run ctl from
server node with ssh to client windows node as below,

---------------------------
[root@scmlinux etc]# ssh skumar08@bdtiri22 ctl
log4j:ERROR Could not connect to remote log4j server at
[scmlinux.symphonysv.com]. We will try again later.
java.net.NoRouteToHostException: No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:
333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:209)
at
org.apache.log4j.net.SocketAppender.connect(SocketAppender.java:203)
at
org.apache.log4j.net.SocketAppender.activateOptions(SocketAppender.java:
160)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:
256)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:
132)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:
96)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:
654)
at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:
612)
at
org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:
533)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
417)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
316)
at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:
324)
at
com.controltier.ctl.cli.AbstractCtlMain.parseArgs(AbstractCtlMain.java:
156)
at
com.controltier.ctl.cli.BaseCtlMain.parseArgs(BaseCtlMain.java:124)
at com.controltier.ctl.cli.CtlMain.parseArgs(CtlMain.java:173)
at
com.controltier.ctl.cli.AbstractCtlMain.run(AbstractCtlMain.java:240)
at com.controltier.ctl.cli.CtlMain.main(CtlMain.java:106)
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:597)
at launcher.CtlLauncher.main(CtlLauncher.java:34)
textutil: various text utilities
commands: [Properties, cat, checksum, contains, head, nl, replace,
resource-install, sort, tail, uniq, wc]

---------------------------

I have verified the jetty status is OK on the server. Tried even
restarting. No luck.

Thanks,
Surendra

On Apr 18, 11:56 pm, chengkai liang <ckm.li...@gmail.com> wrote:
> You have to first edit the /etc/sshd_config file to see
>    PermitUserEnvironment yes
>
> save the change, and restart the sshd
>
> Then,
>
> you have to create an environment file under controltier user directory's .ssh directory, add those ControlTier variables in that file.  Also set the path point to ctl_* bat scripts.
>
> like
>
> PATH=/cygdrive/your_drive/controltier_path/pkgs/ctl-3.6.0/bin
>
> environment file does not substitute/expand any variables.  Once you done this, ssh into the node, and do
>
> echo $CTL_BASE
>
> to see if the variable present.
>
> chengkai liang
> ckm.li...@gmail.com

Moses Lei

unread,
Apr 19, 2011, 12:18:35 PM4/19/11
to contr...@googlegroups.com
Any chance that port 1055 is being blocked by a firewall on either side?

Moses

--
Moses Lei
[ Professional Services | DTO Solutions, Inc. ]
[ mobile: 703.901.5969 | e-mail: ml...@dtosolutions.com | aim/gtalk: ml...@controltier.com | yahoo: moseslei | windows live (msn): ml...@dtosolutions.com ]

Anthony Shortland

unread,
Apr 19, 2011, 3:17:10 PM4/19/11
to ControlTier Accounting
That project and its antecedent seem to be defunct (not updated since 2006) ... you may be interested in http://www.itefix.no/i2/copssh ... its a good clean Windows packaging of OpenSSH that is a currently active Sourceforge project (http://sourceforge.net/projects/sereds/files/Copssh/4.1.0/).

Anthony.

On Apr 19, 2011, at 7:55 AM, surendra kumar wrote:

Anthony,
 
Am unable to trace the website that i downloaded the ssh executable, but i find something similar available @http://sshwindows.webheat.co.uk/#downloads
 
I could able to make some progress based on "chengkai liang " suggestion to create a environment file under users .ssh directory path. However, i see the job execution is having problems as below with log4j connect to server.  
 

---------------------------

 03:18:44 NodeSet: NodeSet{includes={hostname=BDTIRI22, dominant=false, }}
 03:18:44 Workflow: WorkflowImpl{commands=[command( type: PTAAppCtlcommand: deployargString: -argline ${option.argline})], threadcount=1, keepgoing=true, strategy=node-first}
 03:18:44 data context: {job={project=demo, name=deploy, group=PTAAppCtl}, option={argline=PTA}}
 03:18:44 0: command( type: PTAAppCtlcommand: deployargString: -argline ${option.argline})
 03:18:44 ExecutionItem created, executing: dcmd: ExecutionContext{isUserContext='true', isObjectContext='false', isCommandContext='true'}
 03:18:44 creating an ModuleCommandProxyDispatcher
 03:18:44 applying nodeset filter...
 03:18:44 number of nodes to dispatch to: 1, (1 threads)
 03:18:44 executeNodeDispatch: number of nodes to dispatch to: 1, (threadcount=1)
 03:18:44 preparing for sequential execution...
 03:18:44 Executing command on node: BDTIRI22, NodeEntryImpl{nodename=BDTIRI22,hostname=BDTIRI22,type=Node,osName=Windows 2003,osArch=i386,osFamily=windows,osVersion=2003,ctlBase=C:\ctier\ctl,ctlHome=C:\ctier\pkgs\ctl-3.6.0,ctlPasswordSet=false,ctlUsername=skumar08,tags=[],attributes=null}
 03:18:44 returning RemoteCommand object for command: deploy
 03:18:44 dispatching to proxy on node: BDTIRI22
 03:18:44 Adding reference: ant.LocalProperties
 03:19:06 log4j:ERROR Could not connect to remote log4j server at [scmlinux.xyz.com]. We will try again later.
 03:19:06 java.net.NoRouteToHostException: No route to host: connect
 03:19:06 at java.net.PlainSocketImpl.socketConnect(Native Method)
 03:19:06 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 03:19:06 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 03:19:06 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 03:19:06 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 03:19:06 at java.net.Socket.connect(Socket.java:519)
 03:19:06 at java.net.Socket.connect(Socket.java:469)
 03:19:06 at java.net.Socket.<init>(Socket.java:366)
 03:19:06 at java.net.Socket.<init>(Socket.java:209)
 03:19:06 at org.apache.log4j.net.SocketAppender.connect(SocketAppender.java:203)
 03:19:06 at org.apache.log4j.net.SocketAppender.activateOptions(SocketAppender.java:160)
 03:19:06 at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
 03:19:06 at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
 03:19:06 at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
 03:19:06 at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
 03:19:06 at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
 03:19:06 at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:533)
 03:19:06 at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:417)
 03:19:06 at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316)
 03:19:06 at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:324)
 03:19:06 at com.controltier.ctl.cli.AbstractCtlMain.parseArgs(AbstractCtlMain.java:156)
 03:19:06 at com.controltier.ctl.cli.BaseCtlMain.parseArgs(BaseCtlMain.java:124)
 03:19:06 at com.controltier.ctl.cli.CtlMain.parseArgs(CtlMain.java:173)
 03:19:06 at com.controltier.ctl.cli.AbstractCtlMain.run(AbstractCtlMain.java:240)
 03:19:06 at com.controltier.ctl.cli.CtlMain.main(CtlMain.java:106)
 03:19:06 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 03:19:06 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 03:19:06 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 03:19:06 at java.lang.reflect.Method.invoke(Method.java:597)
 03:19:06 at launcher.CtlLauncher.main(CtlLauncher.java:34)
 03:19:07 Error updating resources.properties: couldn't update C:\ctier\ctl\projects\demo\etc\resources.xml
 03:19:08 Error updating nodes.properties: couldn't update: C:\ctier\ctl\projects\demo\etc\resources.xml: Get task failed retrieving file from server
 03:19:08 No matched nodes: NodeSet{}
 03:19:08 Setting project property: sshexec.output -> log4j:ERROR Could not connect to remote log4j server at [scmlinux.xyz.com]. We will try again later. java.net.NoRouteToHostException: No route to host: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at java.net.Socket.<init>(Socket.java:366) at java.net.Socket.<init>(Socket.java:209) at org.apache.log4j.net.SocketAppender.connect(SocketAppender.java:203) at org.apache.log4j.net.SocketAppender.activateOptions(SocketAppender.java:160) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612) at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:533) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:417) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:324) at com.controltier.ctl.cli.AbstractCtlMain.parseArgs(AbstractCtlMain.java:156) at com.controltier.ctl.cli.BaseCtlMain.parseArgs(BaseCtlMain.java:124) at com.controltier.ctl.cli.CtlMain.parseArgs(CtlMain.java:173) at com.controltier.ctl.cli.AbstractCtlMain.run(AbstractCtlMain.java:240) at com.controltier.ctl.cli.CtlMain.main(CtlMain.java:106) 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:597) at launcher.CtlLauncher.main(CtlLauncher.java:34) Error updating resources.properties: couldn't update C:\ctier\ctl\projects\demo\etc\resources.xml Error updating nodes.properties: couldn't update: C:\ctier\ctl\projects\demo\etc\resources.xml: Get task failed retrieving file from server No matched nodes: NodeSet{}
 03:19:08 0: ExecutionItem finished, result: BaseExecutionResult{resultObject=BaseActionResult{outputproperty=output, errorproperty=error, resultproperty=result, returnproperty

------------------------------------------------------
 
I have gone through the error pertaining through this in my search i could not trace the problem. all my services are running file. infact i restarted the jetty server on the server node.
 
Any help is much appreciated.
 
Thanks,
Surendra

From: Anthony Shortland <ant...@controltier.com>
To: surendra kumar <sur...@yahoo.com>
Sent: Tue, April 19, 2011 1:38:11 AM
Subject: Re: ctl: not found error

Would you mind clarifying "standalone OpenSSH got from WIKI"? Is this an installation you got from the Internet somewhere? Could you post the link?

I'm always looking for new ways to install OpenSSH on Windows since none that I know of are very convenient!

Thanks,

Anthony.

On Apr 18, 2011, at 11:56 AM, surendra kumar wrote:


 No, am using standalone OpenSSH got from WIKI..ssh -ver in client node displays below version info,

OpenSSH_4.3p2, OpenSSL 0.9.8 05 Jul 2005



From: Anthony Shortland <ant...@controltier.com>
To: surendra kumar <sur...@yahoo.com>
Sent: Tue, April 19, 2011 12:08:56 AM
Subject: Re: ctl: not found error

Ah! Did you use an OpenSSH installer like CopSSH (http://www.itefix.no/i2/copssh) then?

On Apr 18, 2011, at 11:32 AM, surendra kumar wrote:

Anthony,

yes you are right i use cmd.exe

Am trying to add CTIER env variables to system environment on my target windows node now and check.

Thanks,
Surendra



From: Anthony Shortland <ant...@controltier.com>
To: Surendra <sur...@yahoo.com>
Sent: Mon, April 18, 2011 11:38:43 PM
Subject: Re: ctl: not found error

That's interesting, Surendra. How was OpenSSH installed on Windows, then? And what shell do you have when you ssh into the system? cmd.exe? Something else?

In general, I've taken to adding CTIER_HOME, CTL_BASE, CTL_HOME to the Windows system environment along with JAVA_HOME and adding %CTL_HOME%\bin and %JAVA_HOME%\bin to the system-ide Path environment variable ... this makes sure that the ControlTier client programs (e.g. "ctl.bat") are available from any command shell ... note that you may need to restart the ssd service (or even reboot the system!) to get the variables to be available over an ssh session.

Anthony.

On Apr 18, 2011, at 11:01 AM, Surendra wrote:

> Hello Anthony,
> 
> In target windows-based client node am using openssh version "SSH-2.0-
> OpenSSH_4.3 " and is setup ssh to connect between nodes.
> Cygwin is not being setup on this server. Do i require to do any extra
> steps in order to get the scripts working?
> 
> Thanks,
> Surendra
> 
> 

> On Apr 18, 8:24 pm, Anthony Shortland <anth...@controltier.com> wrote:
>> Hi Surendra ... what kind of ssh setup are you using on the target Windows-based target client? Are you running a Bash shell under Cygwin ssh'ing into the box or have you setup a command shell perhaps? The environment setup is different depending on the choice you've made.
>> 
>> On Apr 18, 2011, at 8:11 AM, Moses Lei wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> This is a sign that the environment on the client node isn't set up properly... try doing: ssh user@clientnode ctl
>> 
>>> to see if you get the same error. If you do, then investigate why-- maybe .ctierrc isn't being called from bashrc, or bashrc isn't being called for some reason.
>> 
>>> Another test to see if the ctierrc is being sourced is: ssh user@clientnode echo \$CTL_BASE
>> 
>>> Moses
>> 
>>> --
>>> Moses Lei
>>> [ Professional Services | DTO Solutions, Inc. ]
>>> [ mobile: 703.901.5969 | e-mail: m...@dtosolutions.com | aim/gtalk: m...@controltier.com | yahoo: moseslei | windows live (msn): m...@dtosolutions.com ]
>>> For more options, visit this group athttp://groups.google.com/group/controltier?hl=en

Surendra

unread,
Apr 21, 2011, 5:28:35 AM4/21/11
to ControlTier
Moses,

I have verified the both side. There is no firewall in windows
machine(client) and i see port 1055 is listen state in server as
below,

Proto Recv-Q Send-Q Local Address Foreign
Address State
tcp 0 0 :::
1055 :::* LISTEN

Thanks,
Surendra

On Apr 19, 9:18 pm, Moses Lei <m...@dtosolutions.com> wrote:
> Any chance that port 1055 is being blocked by a firewall on either side?
>
> Moses
>
> --
> Moses Lei
> [ Professional Services | DTO Solutions, Inc. ]

Anthony Shortland

unread,
Apr 21, 2011, 10:34:39 AM4/21/11
to contr...@googlegroups.com
Hi Surendra ... can you telnet to the server/port from the Windows box to prove you can get a socket connection?

You should expect to see something like:

[rundeck@rundeck etc]$ telnet rundeck 1055
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

... there is a Telnet program on Windows too.

Anthony.
Reply all
Reply to author
Forward
0 new messages