You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anders Sandholm <an...@student.liu.se> on 2004/10/22 21:46:04 UTC

unable to open an ra_local session

Hi

I tried to setup an subversion server but ran in to some problem, I read
the quick start and tried to run the commands there (after that I turnd
to the book, but didnt find anything)

first I created the folder where I would like to have my subversion
repos, and gave it the rights it needed.

after that I ran  
: svnadmin create /home/andsa344/repos

this when fine = no error message

after that i wanted to include the files that I wanted into the repos so
I did

svn import /repos/filterVolume
file:///home/andsa344/repos_files/filterVolume/ -m "Initial import"

where home/andsa344/repos_files/filterVolume contains the files that I
want to and in to the repos tree (under the name filterVolume) but it is
here that I ran into problems
When I run this command I get the following error message:
svn: Unable to open an ra_local session to URL
svn: Unable to open repository
'file:///home/andsa344/repos_files/filterVolume'

What am i doing wrong.

I am running subversion under debian

best regards
Anders



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

Re: unable to open an ra_local session

Posted by Anders Sandholm <an...@student.liu.se>.
Hi

I go the exact same files as you in the repos dir.

the svn --version gives the following modules
ra_dav
ra_local (handles 'file' schema)
ra_svn

the permission is the correct on, this is my research computer and I
have full access on it (root) (even tried with 777 rights on the /repos
but it didnt change anything, also on the repos_files.

I tried to find something on google, but it came up nothing..

thanks for the help

// anders


On Sat, 2004-10-23 at 02:17, Christopher Ness wrote:
> On Fri, 2004-10-22 at 20:04, Anders Sandholm wrote:
> > Hi
> > 
> > no, the directory /home/andsa344/repos_files/filterVolume exist and
> > contains the right files in the right directories (there is sub
> > directoris is that a problem?
> > 
> > and when I run the svn import ... i still get the same error
> 
> Hmm... this is my output of ls for one of my repositories.  All this
> should be created after the `svnadmin create [path_to_repo_dir]`
> command.
> 
> [nesscg@woman thesis]$ ls -la
> total 36
> drwxrwxr-x  7 nesscg nesscg 4096 Sep 14 17:01 .
> drwxrwxr-x  3 nesscg nesscg 4096 Sep 14 17:47 ..
> drwxrwxr-x  2 nesscg nesscg 4096 Sep 14 17:02 conf
> drwxrwxr-x  2 nesscg nesscg 4096 Sep 14 17:01 dav
> drwxrwxr-x  2 nesscg nesscg 4096 Oct  9 20:01 db
> -r--r--r--  1 nesscg nesscg    2 Sep 14 17:01 format
> drwxrwxr-x  2 nesscg nesscg 4096 Oct 12 10:50 hooks
> drwxrwxr-x  2 nesscg nesscg 4096 Sep 14 17:01 locks
> -rw-rw-r--  1 nesscg nesscg  376 Sep 14 17:01 README.txt
> 
> 
> You could try a `svn --version` and see if your binaries support the
> "file://" protocol.  I expect they will.  Check permissions, but it's in
> your home directory so I didn't think that would be a problem.
> 
> Other than that, I'm stumped.  What has google said about your error?
> Chris


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

Re: unable to open an ra_local session

Posted by Christopher Ness <ch...@nesser.org>.
On Fri, 2004-10-22 at 20:04, Anders Sandholm wrote:
> Hi
> 
> no, the directory /home/andsa344/repos_files/filterVolume exist and
> contains the right files in the right directories (there is sub
> directoris is that a problem?
> 
> and when I run the svn import ... i still get the same error

Hmm... this is my output of ls for one of my repositories.  All this
should be created after the `svnadmin create [path_to_repo_dir]`
command.

[nesscg@woman thesis]$ ls -la
total 36
drwxrwxr-x  7 nesscg nesscg 4096 Sep 14 17:01 .
drwxrwxr-x  3 nesscg nesscg 4096 Sep 14 17:47 ..
drwxrwxr-x  2 nesscg nesscg 4096 Sep 14 17:02 conf
drwxrwxr-x  2 nesscg nesscg 4096 Sep 14 17:01 dav
drwxrwxr-x  2 nesscg nesscg 4096 Oct  9 20:01 db
-r--r--r--  1 nesscg nesscg    2 Sep 14 17:01 format
drwxrwxr-x  2 nesscg nesscg 4096 Oct 12 10:50 hooks
drwxrwxr-x  2 nesscg nesscg 4096 Sep 14 17:01 locks
-rw-rw-r--  1 nesscg nesscg  376 Sep 14 17:01 README.txt


You could try a `svn --version` and see if your binaries support the
"file://" protocol.  I expect they will.  Check permissions, but it's in
your home directory so I didn't think that would be a problem.

Other than that, I'm stumped.  What has google said about your error?
Chris
-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
20:13:08 up 6:55, 2 users, load average: 0.07, 0.05, 0.08 
http://www.fsf.org/philosophy/no-word-attachments.html

Re: unable to open an ra_local session

Posted by Anders Sandholm <an...@student.liu.se>.
Hi

no, the directory /home/andsa344/repos_files/filterVolume exist and
contains the right files in the right directories (there is sub
directoris is that a problem?

and when I run the svn import ... i still get the same error


On Sat, 2004-10-23 at 01:23, Christopher Ness wrote:
> On Fri, 2004-10-22 at 19:13, Anders Sandholm wrote:
> > Thanks for the quick reply, 
> > I choose to go with you first sugestion, to run the import command from
> > /reps so 
> > 
> > svn import /repos/ file:///home/andsa344/repos_files/filterVolume/ -m
> > "Initial import"
> 
> Sorry I should have been more specific.
> But for fun and learning, try this command, it should fail:
> 
> cd /home/andsa344/repos_files/filterVolume/
> 
> If it doesn't then you've moved your repository on me.  ;)
> This command below should import _all_ the directories and files
> contained within /repos/
> 
> svn import /repos/ file:///home/andsa344/repos_files/ -m "Initial
> import"
> 
> I think that should do it. 
> Chris


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

Re: unable to open an ra_local session

Posted by Christopher Ness <ch...@nesser.org>.
On Fri, 2004-10-22 at 19:13, Anders Sandholm wrote:
> Thanks for the quick reply, 
> I choose to go with you first sugestion, to run the import command from
> /reps so 
> 
> svn import /repos/ file:///home/andsa344/repos_files/filterVolume/ -m
> "Initial import"

Sorry I should have been more specific.
But for fun and learning, try this command, it should fail:

cd /home/andsa344/repos_files/filterVolume/

If it doesn't then you've moved your repository on me.  ;)
This command below should import _all_ the directories and files
contained within /repos/

svn import /repos/ file:///home/andsa344/repos_files/ -m "Initial
import"

I think that should do it. 
Chris
-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
19:18:45 up 6:01, 3 users, load average: 0.14, 0.10, 0.11 
http://www.fsf.org/philosophy/no-word-attachments.html

Re: unable to open an ra_local session

Posted by J Robert Ray <jr...@imageworks.com>.
Anders Sandholm wrote:
> Hi
> 
> Thanks for the quick reply, 
> I choose to go with you first sugestion, to run the import command from
> /reps so 
> 
> svn import /repos/ file:///home/andsa344/repos_files/filterVolume/ -m
> "Initial import"
> 
> But I still get the same error

Your repository lives in /home/andsa344/repos, so all your 'svn' 
commands will be relative to that path, such as:

svn ls file:///home/andsa344/repos/foo
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(file://[path_to_repository_on_disk]/[directories_in_svn])


svn mkdir file:///home/andsa344/repos/filterVolume

svn import /home/andsa344/repos_files/filterVolume 
file:///home/andsa344/repos/filterVolume

I think what is getting confusing is you have your repo in 'repos' and 
your files to be imported in 'repos_files'.  Too many repos. ;)

- Robert

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

Re: unable to open an ra_local session

Posted by Anders Sandholm <an...@student.liu.se>.
Hi

Thanks for the quick reply, 
I choose to go with you first sugestion, to run the import command from
/reps so 

svn import /repos/ file:///home/andsa344/repos_files/filterVolume/ -m
"Initial import"

But I still get the same error

svn: Unable to open an ra_local session to URL
svn: Unable to open reoisutiry
'file:///home/andsa344/repos_files/filterVolume'

in the directory /home/andsa344/repos_files/filterVolume is the files
that I want to import to the cvs server, and the /repos dir contains
conf, dav, db .... svn-commit.tmp

// anders

On Sat, 2004-10-23 at 00:33, Christopher Ness wrote:
> On Fri, 2004-10-22 at 17:46, Anders Sandholm wrote:
> > : svnadmin create /home/andsa344/repos
> > 
> > svn import /repos/filterVolume
> > file:///home/andsa344/repos_files/filterVolume/ -m "Initial import"
> > 
> > svn: Unable to open an ra_local session to URL
> > svn: Unable to open repository
> > 'file:///home/andsa344/repos_files/filterVolume'
> > 
> > What am i doing wrong.
> 
> Anders,
> 
> You have a choice.  You can either run the `import` command from /repos/
> which will then create a subfolder to put all your filterVolume files in
> - OR -
> 
> You can delete the repository you created in the first step.
> 
> Create a directory in /home/andsa344/repos/filterVolume/
> Then create your repository in that directory.
> 
> Explanation:
> -----------
> You were trying to import data into a subversion folder that does not
> exist yet.  Feel free to look around in the current
> /home/andsa344/repos   You will see that there is no ./filterVolume
> directory even after proper importing (unlike CVS) because it is all
> stored in the database!
> 
> HTH,
> Chris


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

Re: unable to open an ra_local session

Posted by Christopher Ness <ch...@nesser.org>.
On Fri, 2004-10-22 at 17:46, Anders Sandholm wrote:
> : svnadmin create /home/andsa344/repos
> 
> svn import /repos/filterVolume
> file:///home/andsa344/repos_files/filterVolume/ -m "Initial import"
> 
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository
> 'file:///home/andsa344/repos_files/filterVolume'
> 
> What am i doing wrong.

Anders,

You have a choice.  You can either run the `import` command from /repos/
which will then create a subfolder to put all your filterVolume files in
- OR -

You can delete the repository you created in the first step.

Create a directory in /home/andsa344/repos/filterVolume/
Then create your repository in that directory.

Explanation:
-----------
You were trying to import data into a subversion folder that does not
exist yet.  Feel free to look around in the current
/home/andsa344/repos   You will see that there is no ./filterVolume
directory even after proper importing (unlike CVS) because it is all
stored in the database!

HTH,
Chris