Hi,
Have you tried the working dir configuration value?
http://rundeck.org/docs/manual/plugins.html#configuring-the-working-directory
On June 5, 2013 at 6:29:03 PM, grep...@gmail.com (grep...@gmail.com) wrote:
Hi all,
I'm using rundeck with the Chef knife winrm command. Followed the directions in this post https://groups.google.com/forum/?fromgroups#!topic/rundeck-discuss/iMbcMeFIoOI .
So I have the following line in in project.properties:
plugin.script-exec.default.command=knife winrm -m ${node.hostname} -P '${node.password}' -p ${node.port} -x ${node.username} -- ${exec.command}
This causes errors
05:54:54 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory 05:54:55 /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:45:in `pwd': No such file or directory - getcwd (Errno::ENOENT) 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:45:in `<class:CookbookDownload>' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:24:in `<class:Knife>' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:23:in `<class:Chef>' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:22:in `<top (required)>' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/core/subcommand_loader.rb:37:in `load' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/core/subcommand_loader.rb:37:in `block in load_commands' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/core/subcommand_loader.rb:37:in `each' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/core/subcommand_loader.rb:37:in `load_commands' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife.rb:119:in `load_commands' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife.rb:167:in `run' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/knife.rb:123:in `run' 05:54:55 from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/knife:25:in `<top (required)>' 05:54:55 from /usr/bin/knife:23:in `load' 05:54:55 from /usr/bin/knife:23:in `<main>' 05:54:55 Failed: NonZeroResultCode: Result code was 1
If I put in a cd ~; it completes the job but still with errors:
plugin.script-exec.default.command=cd ~;knife winrm -m ${node.hostname} -P '${node.password}' -p ${node.port} -x ${node.username} -- ${exec.command}...
05:56:30 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory 05:56:30 chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory 05:56:32 crowd Volume in drive C has no label. 05:56:32 crowd Volume Serial Number is 57D0-71BD 05:56:32 crowd 05:56:32 crowd Directory of C:\Users\administrator.INTDERIV 05:56:32 crowd 05:56:32 crowd 05/01/2013 11:07 PM <DIR> . 05:56:32 crowd 05/01/2013 11:07 PM <DIR> .. 05:56:32 crowd 05/01/2013 03:55 PM <DIR> .aspera 05:56:32 crowd 04/16/2013 04:01 PM <DIR> .swt 05:56:32 crowd 03/04/2013 11:10 AM <DIR> .zenmap 05:56:32 crowd 10/10/2012 03:56 PM <DIR> Contacts
What directory can rundeck be changing to which then becomes unavailable?
Also a deploy with the --noqueue works perfectly, but once I take it out I see the same errors in the browser front-end.
I would like not to use that horrible hack if possible, thanks!
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.