LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Subversion No repository found (https://www.linuxquestions.org/questions/general-10/subversion-no-repository-found-623128/)

jdwilder 02-22-2008 02:36 PM

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)

ntubski 02-22-2008 11:59 PM

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.

jdwilder 02-23-2008 08:17 AM

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.

jdwilder 02-23-2008 08:58 AM

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.


All times are GMT -5. The time now is 01:55 AM.