Reputation: 59
I have a RedHat 6 enterprise server that I have installed SVN 1.6 on. This machine is not on a network and has never been on a network. Eventually, it will be added to a network but not right now.
I am running svnserve to provide access to the repository.
svnserve is started as,
svnserve -d
When I run the command, svn co svn://localhost/<project name>
I get the error message, "svn: E000111" Can't connect to host 'localhost': connection refused.
netstat confirms that svn is listening on 0.0.0.0:3690.
I have read it pays to be more explicit with svnserve so I started it as follows,
svnserve -d --listen-port 3690 --listen-host 0.0.0.0 (also tried 127.0.0.1)
I get the same connection refused error message when trying to checkout.
Next I tried checking out directly with the ip address rather than a hostname,
svn co svn://127.0.0.1/<project>
The error message I get back is nonsensical, "svn: E670009: unknown hostname '127.0.0.1'".
At this point I am stumped. I can't seem to perform a checkout using the "svn://" protocol. I have already disabled the ipv4 and ipv6 firewalls.
Any thoughts?
Upvotes: 1
Views: 6559
Reputation: 107080
When you have a network error, you can use the telnet
command to see if you can connect to that port. You should see a response like this:
$ pint localhost # Does this give you anything?
$ telnet localhost 3690
Connected to localhost.
Escape character is '^]'.
( success ( 2 2 ( ) ( edit-pipeline svndiff1 absent-entries commit-revprops...
It could be that your network was setup to block port 3690. Check your software firewall and how SEL is setup.
Upvotes: 1
Reputation: 258
Not quite an answer, but you could try checking out over ssh (assuming the server is running an appropriate server).
This would be something like:
svn co svn+ssh://127.0.0.1/<project>
Upvotes: 0
Reputation: 1293
svn co svn://localhost:3690/project name
you should add port number in the svn path.Try commands above.
Upvotes: 0