Search code examples
svntortoisesvnlocalhosttrac

svn can't connect to host 'localhost'


I started two days ago to set up an SVN environment on my local machine (win).

I installed subversion + Tortoise SVN two days ago and created the first test project. Opening the link svn://localhost in my browser showed the Repository Browser with my test project having the folders tags, branches and trunk inside (which was great).

Last night I also decided to install Trac. After installing python 2.5, I've created a new environment to test it. Of course, doing it for the first time, I made some mistakes and had to redo the whole process, but I finally succeeded creating that test environment.

Well, after figuring out how I should keep the environments, I created another one and of course the svn repo for it and synchronized them. Also, accessing http://locallhost:8000/my_project_path works fine. But now, when I try to accesssvn://localhost` from the Repository Browser window, all I get is the message

Can't connect to host localhost: 
No connection could be made because the target machine actively refused it

I've tried to start the server with this command

svnserve --daemon --root "path/to/my/repo

but after executing it I don't get any response and I have to ctrl+break to be able to enter another command.

I really don't know what the problem it, this being the first time installing them and trying to make them work.

Any help would be appreciated.


Solution

  • If you start the Subversion server like this then having a blank window is normal, and the server is probably up and running. You only see something in the window if there is an error. You should then try the Tortoise Repo Browser to connect to svn://localhost/ and you should be good to go.

    You can run it like this with the server window just left open, but normally you'll install as a service if you're going to use the server a lot.