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


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To:
  • Subject: [chef] Re: Re: Spaces in SVN URL for SCM Resource
  • Date: Wed, 5 Dec 2012 16:10:53 -0800

A plus sign would likely also work.

On Dec 5, 2012 3:32 PM, "Jesse Campbell" < "> > 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,  < "> > 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 townsavy  -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.

§