--
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
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.
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 ]
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.
Anthony,Am unable to trace the website that i downloaded the ssh executable, but i find something similar available @http://sshwindows.webheat.co.uk/#downloadsI 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
>
>
>> 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
[rundeck@rundeck etc]$ telnet rundeck 1055Trying 127.0.0.1...Connected to localhost.localdomain (127.0.0.1).Escape character is '^]'.