[chef] Re: Re: Re: Spaces in SVN URL for SCM Resource


Chronological Thread 
  • From: Ben Sullivan < >
  • To:
  • Subject: [chef] Re: Re: Re: Spaces in SVN URL for SCM Resource
  • Date: Thu, 6 Dec 2012 11:42:21 +1000

OK so I got them to remove the space from the URL.  Now the error is even more
cryptic:

================================================================================
Error executing action `checkout` on resource 'subversion[Checkout Liberate]'
================================================================================

Chef::Exceptions::Exec
----------------------
 returned 42, expected 0

Resource Declaration:
---------------------
# In c:/chef/cache/cookbooks/liberate/recipes/default.rb

  7: subversion 'Checkout Liberate' do
  8:   repository
'http://d3devsub01.data3.com.au:81/svn/LiberateDev/branches/Development/DevelopmentMainLine'
  9:   svn_username 'bsullivan'
 10:   svn_password 'XXXXX'
 11:   destination 'C:/temp'
 12:   action :checkout
 13: end
 14:

Compiled Resource:
------------------
# Declared in c:/chef/cache/cookbooks/liberate/recipes/default.rb:7:in `from_file'

subversion("Checkout Liberate") do
  provider Chef::Provider::Subversion
  action [:checkout]
  retries 0
  retry_delay 2
  destination "C:/temp"
  revision "HEAD"
  remote "origin"
  svn_arguments "--no-auth-cache"
  svn_info_args "--no-auth-cache"
  cookbook_name "liberate"
  recipe_name "default"
  repository
"http://d3devsub01.data3.com.au:81/svn/LiberateDev/branches/Development/DevelopmentMainLine"
  svn_username "bsullivan"
  svn_password "XXXXX"
end

[2012-12-06T11:25:30+10:00] ERROR: Running exception handlers
[2012-12-06T11:25:30+10:00] FATAL: Saving node information to
c:/chef/cache/failed-run-data.json
[2012-12-06T11:25:30+10:00] ERROR: Exception handlers complete
[2012-12-06T11:25:30+10:00] FATAL: Stacktrace dumped to
c:/chef/cache/chef-stacktrace.out
[2012-12-06T11:25:30+10:00] FATAL: Chef::Exceptions::Exec: subversion[Checkout
Liberate] (liberate::default line
/chef/cache/cookbooks/liberate/recipes/default.rb) had an error:
Chef::Exceptions::Exec:  returned 42, expected 0

C:\>

What does error 42 mean?

Thanks

Ben

On 6 December 2012 10:10, Morgan Blackthorne < " target="_blank"> > wrote:

A plus sign would likely also work.

On Dec 5, 2012 3:32 PM, "Jesse Campbell" < " target="_blank"> > wrote:
try using %20 instead of the space? %20 is just the url encoded space character

On Wed, Dec 5, 2012 at 5:48 PM,  < " target="_blank"> > wrote:
> Hi
>
> My client has a SVN repo with a space in the path.  They run Windows across the
> board.
>
> I am trying to setup some Chef infrastructure starting with a checkout:
>
> subversion 'Checkout Liberate' do
>   repository
> '"http://d3devsub01.data3.com.au:81/svn/LiberateDev/branches/Development/Development
> MainLine"'
>   svn_username 'bsullivan'
>   svn_password 'XXXXXX'
>   destination 'C:/temp'
>   action :checkout
> end
>
> I get:
>
> ================================================================================
> Error executing action `checkout` on resource 'subversion[Checkout Liberate]'
> ================================================================================
>
> Errno::ENOENT
> -------------
> No such file or directory - svn info
> "http://d3devsub01.data3.com.au:81/svn/LiberateDev/branches/Development/Development
> MainLine" --no-auth-cache --username bsullivan --password XXXXX  -rHEAD
>
> In chef-stacktrace:
>
> Generated at 2012-12-06 08:38:34 +1000
> Errno::ENOENT: subversion[Checkout Liberate] (liberate::default line
> /chef/cache/cookbooks/liberate/recipes/default.rb) had an error: Errno::ENOENT:
> No such file or directory - svn info
> "http://d3devsub01.data3.com.au:81/svn/LiberateDev/branches/Development/Development
> MainLine" --no-auth-cache --username bsullivan --password townsavy  -rHEAD
> C:/opscode/chef/embedded/lib/ruby/1.9.1/open3.rb:202:in `spawn'
> C:/opscode/chef/embedded/lib/ruby/1.9.1/open3.rb:202:in `popen_run'
> C:/opscode/chef/embedded/lib/ruby/1.9.1/open3.rb:90:in `popen3'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/mixin/command/windows.rb:38:in
> `popen4'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/mixin/command.rb:104:in
> `block in output_of_command'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/mixin/command.rb:93:in
> `chdir'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/mixin/command.rb:93:in
> `output_of_command'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/provider/subversion.rb:132:in
> `revision_int'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/provider/subversion.rb:109:in
> `checkout_command'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/provider/subversion.rb:64:in
> `block in action_checkout'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/mixin/why_run.rb:63:in
> `call'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/mixin/why_run.rb:63:in
> `block in converge!'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/mixin/why_run.rb:61:in
> `each'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/mixin/why_run.rb:61:in
> `converge!'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/provider.rb:136:in
> `converge'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/provider.rb:125:in
> `run_action'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource.rb:593:in
> `run_action'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/runner.rb:49:in
> `run_action'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/runner.rb:81:in
> `block (2 levels) in converge'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/runner.rb:81:in
> `each'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/runner.rb:81:in
> `block in converge'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource_collection.rb:94:in
> `block in execute_each_resource'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource_collection/stepable_iterator.rb:116:in
> `call'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource_collection/stepable_iterator.rb:116:in
> `call_iterator_block'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource_collection/stepable_iterator.rb:85:in
> `step'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource_collection/stepable_iterator.rb:104:in
> `iterate'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource_collection/stepable_iterator.rb:55:in
> `each_with_index'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource_collection.rb:92:in
> `execute_each_resource'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/runner.rb:80:in
> `converge'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/client.rb:378:in
> `converge'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/client.rb:420:in
> `do_run'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/client.rb:176:in
> `run'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application.rb:140:in
> `run_chef_client'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/client.rb:274:in
> `block in run_application'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/client.rb:267:in
> `loop'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/client.rb:267:in
> `run_application'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application.rb:72:in
> `run'
> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/chef-client:26:in
> `<top (required)>'
> C:/opscode/chef/bin/chef-client:19:in `load'
> C:/opscode/chef/bin/chef-client:19:in `<main>'
>
> When I run this command on a different Windows machine with svn command line
> client installed the svn info works fine (the double quotes are needed around
> the path to accomodate the space).
>
> I am running latest chef on Windows 7.
>
> Any ideas?
>
> Thanks
>
> Ben




Archive powered by MHonArc 2.6.16.

§