# Local SVN & Capistrano 2.0

**URL:** <https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104750>\
**Category:** Rails\
**Created:** [May 22, 2007, 4:18am UTC](https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104750 "2007-05-22T04:18:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanstewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Post date:** [May 22, 2007, 4:18am UTC](https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104750/1 "2007-05-22T04:18:48Z")

</div>

Everything is working well in my svn repository. I am able to connect  
to my server by using “cap deploy”, but receive this error message:

\*\* [out] svn: Unable to open an ra\_local session to URL  
\*\* svn: Unable to open repository ‘file:///Users/myusername/svn/  
simpleblog2/trunk’

Any ideas how to work around this?

---

<div class="post-metadata">

**Author:** ![seanstewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Post date:** [May 22, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104750/2 "2007-05-22T14:32:59Z")

</div>

seanstewart wrote:

> Everything is working well in my svn repository. I am able to connect  
> to my server by using “cap deploy”, but receive this error message:
> 
> \*\* [out] svn: Unable to open an ra\_local session to URL  
> \*\* svn: Unable to open repository ‘file:///Users/myusername/svn/  
> simpleblog2/trunk’
> 
> Any ideas how to work around this?

You are using what looks like a local file path to specify the location  
of the SVN repository.

When Capistrano deploys to a server it then opens a connection from that  
server to the repository. Unless the repository is in a location  
accessible from that server then the connection will fail.

I ended up running svnserve and connecting via that.

---

<div class="post-metadata">

**Author:** ![seanstewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Post date:** [May 23, 2007, 2:41am UTC](https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104750/3 "2007-05-23T02:41:50Z")

</div>

On 5/22/07, RJ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> You are using what looks like a local file path to specify the location  
> of the SVN repository.
> 
> When Capistrano deploys to a server it then opens a connection from that  
> server to the repository. Unless the repository is in a location  
> accessible from that server then the connection will fail.
> 
> I ended up running svnserve and connecting via that.

Alternatively, since you are using Capistrano 2.0 you could use the  
‘copy’ deployment method. If you add

set :deploy\_via, :copy

to your deploy.rb then Capistrano will checkout the sources locally,  
tar them up and use sftp to copy them to the server.

~p

[http://fiatdev.com/](http://fiatdev.com/)
