LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 02-22-2008, 03:36 PM   #1
jdwilder
Member
 
Registered: Jul 2003
Location: United States
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121

Rep: Reputation: 15
Subversion No repository found


This has been solved. [Feb 23, 2008, 9:59 AM EST]

Entering
Code:
svn import -m "initial commit" projectA svn+ssh://localhost/usr/local/svn/projetA
Gets me the error
Code:
svn: No repository found in 'svn+ssh://localhost/usr/local/svn/projectA'
I have searched everywhere and have not been able to find an answer that works. When I search I find many people who have the same problem, but for them the fix has been checking to make sure they are putting in the correct path. I have checked my path over and over, and this still doesn't work.

I currently have two projects in my svn repository called Matlab (located at /usr/local/svn/Matlab), and testRepo (at /usr/local/svn/testRepo). I am able to check both out, and commit to them, over https or svn+ssh.


I attempted to look at my bash history to see how I imported those projects, but that was too long ago, so it no longer appears in my history.

At first glance the error seems weird to me, of course it cannot find the repository, I have not imported it yet!


if I attempt to import over https instead of ssh I get the error
Code:
svn: PROPFIND request failed on '/svn/projectA'
svn: Could not open the requested SVN filesystem

I would prefer to use svn+ssh because if I use https I can only access the repo from my intranet, since all incoming ports except 22 are blocked from entering our network.

If I attempt to use svn+ssh and put 'jdwilder@localhost' instead of just 'localhost' I get the same results. If I use 127.0.0.1 instead I get the same results, If I use my network IP I also get the same results.

Any help would be appreciated, I have wasted a lot of time searching to get this working, and I am stuck. (if I am lucky hopefully it is a little stupid error)

Last edited by jdwilder; 02-23-2008 at 09:59 AM. Reason: Solved
 
Old 02-23-2008, 12:59 AM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,543

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Maybe you set up the svn server to serve from /usr/local/svn with the -r option:
Quote:
Originally Posted by http://svnbook.red-bean.com/nightly/en/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.invoking.daemon
Code:
$ svnserve -d -r /var/svn
Using the -r option effectively modifies the location that the program treats as the root of the remote filesystem space. Clients then use URLs that have that path portion removed from them, leaving much shorter (and much less revealing) URLs:

Code:
$ svn checkout svn://host.example.com/project1
I think running svn info in a working copy of one of your other repositories will show what URL you can use to access it.
 
Old 02-23-2008, 09:17 AM   #3
jdwilder
Member
 
Registered: Jul 2003
Location: United States
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for the ideas.

When I look at svn info for one of my working repositories I get the following:

Path: .
URL: svn+ssh://127.0.0.1/usr/local/svn/Matlab
Repository Root: svn+ssh://127.0.0.1/usr/local/svn/Matlab

So I have been looking in the right place.

Also, thank you for the link. I will look into how to configure the svn server. I did not make any configuration changes to the way the server started. I was following instructions on how to get svn to work from a Mac and they all talk about using Https, which I cannot due to the firewall, and the way the tutorial was written it seemed that as long as ssh was working there was nothing to configure to get svn+ssh working. I will look at the link and try to get this working.

Thanks.
 
Old 02-23-2008, 09:58 AM   #4
jdwilder
Member
 
Registered: Jul 2003
Location: United States
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121

Original Poster
Rep: Reputation: 15
Thumbs up

Yup it was a stupid error on my part.

I realized what I did was I had used svnadmin create /usr/local/svn/Matlab
and svnadmin create /usr/local/svn/testRepo

so the I either had to either do an svnadmin create /usr/local/svn/projectA
or recreate the entire repository at /usr/local/svn, and then import all of the projects in the correct way. I guess I didn't understand the structure of svn well enough when I first started setting this stuff up.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subversion Repository Browser ???? ajeetraina Linux - Server 0 12-20-2007 12:55 AM
Splitting an Existing Subversion Repository stevec Linux - Software 1 09-21-2007 05:30 PM
Subversion Repository Seg Fault (32 to 64 bit) dlublink Linux - Software 1 03-31-2007 04:54 PM
Setting up a subversion server/repository filburt1 Linux - Software 1 11-03-2006 01:28 AM
Subversion shared repository under both Windows and Linux? paulsiu Linux - Software 5 07-20-2006 05:25 PM


All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration