You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by jo...@accenture.com on 2006/04/06 17:15:42 UTC

Unable to open an ra_local session to URL

Hello,

 

I have used, and installed subversion before but am having a problem
doing my initial import (which should be simple) into my repository that
I just created.  I have the following repository

 

bash-2.05# pwd

/code/sb

bash-2.05# ls -l

total 16

drwxr-xr-x   2 root     other        512 Apr  5 12:58 conf

drwxr-xr-x   2 root     other        512 Apr  5 12:58 dav

drwxr-sr-x   5 root     other        512 Apr  5 12:58 db

-r--r--r--   1 root     other          2 Apr  5 12:58 format

drwxr-xr-x   2 root     other        512 Apr  5 12:58 hooks

drwxr-xr-x   2 root     other        512 Apr  5 12:58 locks

-rw-r--r--   1 root     other        379 Apr  5 12:58 README.txt

drwxr-xr-x   6 root     other        512 Apr  5 12:59 rt

 

Which seems fine, so I try to import to it for the first time to make it
a working repository,

 

bash-2.05# svn import /code/sb file:///svn/sb/ -m "init import"

svn: Unable to open an ra_local session to URL

svn: Unable to open repository 'file:///svn/sb'

 

You can see that the directory /svn/sb is fine as well, I just created
it as the same user with some empty directories in it.

 

bash-2.05# pwd

/svn/sb

bash-2.05# ls -l

total 8

drwxr-xr-x   2 root     root         512 Apr  5 13:46 build

drwxr-xr-x   2 root     root         512 Apr  5 13:46 systemtest

 

I'm logged in as root, which is what I was logged in when I installed
subversion as well.  I have been searching everywhere for an answer to
this which seems silly, but I can't find anything.  Any help is much
appreciated,

 

- Jon

 

 



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

Re: Unable to open an ra_local session to URL

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 6, 2006, at 19:15, jonathan.f.daily wrote:

> I have used, and installed subversion before but am having a  
> problem doing my initial import (which should be simple) into my  
> repository that I just created.  I have the following repository
>
> bash-2.05# pwd
> /code/sb
> bash-2.05# ls -l
> total 16
> drwxr-xr-x   2 root     other        512 Apr  5 12:58 conf
> drwxr-xr-x   2 root     other        512 Apr  5 12:58 dav
> drwxr-sr-x   5 root     other        512 Apr  5 12:58 db
> -r--r--r--   1 root     other          2 Apr  5 12:58 format
> drwxr-xr-x   2 root     other        512 Apr  5 12:58 hooks
> drwxr-xr-x   2 root     other        512 Apr  5 12:58 locks
> -rw-r--r--   1 root     other        379 Apr  5 12:58 README.txt
> drwxr-xr-x   6 root     other        512 Apr  5 12:59 rt
>
> Which seems fine, so I try to import to it for the first time to  
> make it a working repository,
>
> bash-2.05# svn import /code/sb file:///svn/sb/ -m "init import"
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///svn/sb'
>
> You can see that the directory /svn/sb is fine as well, I just  
> created it as the same user with some empty directories in it.
>
> bash-2.05# pwd
> /svn/sb
> bash-2.05# ls -l
> total 8
> drwxr-xr-x   2 root     root         512 Apr  5 13:46 build
> drwxr-xr-x   2 root     root         512 Apr  5 13:46 systemtest
>
> I’m logged in as root, which is what I was logged in when I  
> installed subversion as well.  I have been searching everywhere for  
> an answer to this which seems silly, but I can’t find anything.   
> Any help is much appreciated,

Other way around! :-)

$ svn help import | head -n 4
import: Commit an unversioned file or tree into the repository.
usage: import [PATH] URL

   Recursively commit a copy of PATH to URL.

PATH is the path of the directory you want to import. URL is the URL  
of your repository. So you need:

$ svn import /svn/sb file:///code/sb -m "Initial import"



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org