Re: [rundeck] Using Chef knife winrm plugin with 1.5.3 gives strange errors

297 views
Skip to first unread message

Greg Schueler

unread,
Jun 5, 2013, 9:46:02 PM6/5/13
to rundeck...@googlegroups.com

Hi,


Have you tried the working dir configuration value?


http://rundeck.org/docs/manual/plugins.html#configuring-the-working-directory


--
Greg Schueler

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
SEVERE05:54:54shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
SEVERE05: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)
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:45:in `<class:CookbookDownload>'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:24:in `<class:Knife>'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:23:in `<class:Chef>'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/cookbook_download.rb:22:in `<top (required)>'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/core/subcommand_loader.rb:37:in `load'
SEVERE05:54:55from /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'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/core/subcommand_loader.rb:37:in `each'
SEVERE05:54:55from /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'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife.rb:119:in `load_commands'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife.rb:167:in `run'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/knife.rb:123:in `run'
SEVERE05:54:55from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/knife:25:in `<top (required)>'
SEVERE05:54:55from /usr/bin/knife:23:in `load'
SEVERE05:54:55from /usr/bin/knife:23:in `<main>'
SEVERE05:54:55Failed: 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}

SEVERE05:56:30shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
SEVERE05:56:30chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

05:56:32crowd Volume in drive C has no label.

05:56:32crowd Volume Serial Number is 57D0-71BD

05:56:32crowd

05:56:32crowd Directory of C:\Users\administrator.INTDERIV

05:56:32crowd

05:56:32crowd 05/01/2013 11:07 PM <DIR> .

05:56:32crowd 05/01/2013 11:07 PM <DIR> ..

05:56:32crowd 05/01/2013 03:55 PM <DIR> .aspera

05:56:32crowd 04/16/2013 04:01 PM <DIR> .swt

05:56:32crowd 03/04/2013 11:10 AM <DIR> .zenmap

05:56:32crowd 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.
 
 

grep...@gmail.com

unread,
Jun 6, 2013, 10:37:51 AM6/6/13
to rundeck...@googlegroups.com
I missed that one, works perfectly thanks!
Reply all
Reply to author
Forward
0 new messages