Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Subversion

Posted on 2011-09-23
7
Medium Priority
?
439 Views
Last Modified: 2013-11-15
Sebversion with apache on Ubuntu is up and running and now I am trying to import file(s) from a local drive into the repository. The following error comes up:

svn: Unable to open an ra_local session to URL

The command used to import:

svn import /subversion/project/test file:///test -m "Initial Import"

It gives me the above error. Subversion is set up on Ubuntu and I am able to import it from online source for example http://google.com/subersion/someproject. The whole thing is configured and I am logged in as root.

Thanks.
0
Comment
Question by:ezdrt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 21

Expert Comment

by:Papertrip
ID: 36589901
Use the absolute path for the file you are starting the repo with

Doesn't work:
[root@broken ~]# svnadmin create /svn/testproject
[root@broken ~]# touch /svn/testproject/testfile
[root@broken ~]# svn import testproject file:///test -m "initial import"
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///test'

Open in new window

Works:
[root@broken ~]# svn import /svn/testproject file:///svn/testproject/testfile -m "initial import"
Adding         /svn/testproject/testfile
Adding         /svn/testproject/hooks
Adding         /svn/testproject/hooks/pre-revprop-change.tmpl
Adding         /svn/testproject/hooks/post-lock.tmpl
<snip>
Committed revision 1.

Open in new window

0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36589938
Woops there is a typo in my first example, didn't use complete repo path for the import test, so here is the Doesn't work way again :)

[root@broken ~]# svn import /svn/test2 file:///test -m "initial import"
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///test'

Open in new window

0
 

Author Comment

by:ezdrt
ID: 36589996
I am not sure what I am doing wrong but it still does not work ...

svn import /svn/testproject file:///svn/testproject/testfile -m "initial import"

Part that is
file:///svn/testproject/testfile
does not work.


When I replace it with the web link it is fine but when I try to use it with files that are on the hard drive it does not. My folders are like this:
[subversion] -> [project] -> [test]
I did svnadmin create /subversion/project/test it added test folder with bunch of files in it which is what it should do. Folder test did not exits before.
but when I try to run svn import it gives me that wired error. I tried full path like you have said. Still gives me the same error. Anything else I should try?
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LVL 21

Accepted Solution

by:
Papertrip earned 2000 total points
ID: 36590019
Try this:
touch /subversion/project/test/myfile
svn import /subversion/project/test file:///subversion/project/test/myfile -m "Initial Import" 

Open in new window

0
 

Author Comment

by:ezdrt
ID: 36590026
This worked perfectly ... not really sure what I did wrong.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36590032
You didn't point it to an actual file, you were just pointing to the repo directory :)  In that last example you created a new file, 'myfile', and then imported that into the repo.

Basically you were trying to import the root repo directory into the repo :p
0
 

Author Closing Comment

by:ezdrt
ID: 36590039
Very helpful! Prompt response.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question