开发者

SVN Can't connect to host

We have a SVN repository setup on a remote host server. We have a brand new Dev server which eventually I will be setting up our repository on there, but for now I am trying to export a project onto the dev server from SVN. When I try to do it, I get svn: Can't connect to host 'website.com': Connection timed out.

I can connect fine from any other server so I am assuming it must be something on the dev server, I am just not sure what setting might be blocking this. I can ping the server and that comes back with results, I thought maybe since it was a local network server, there might of been something blocking access to the external web.开发者_开发技巧

I'm just looking for a few ideas as to what it might be.


I just solve it by the commands below: when starting a svn service, add the part "--listen-host 0.0.0.0" to your command, for example:

svnserve -d --listen-port 9803 --listen-host 0.0.0.0 -r /somewhere/somewhere

This is because unless explicitly stated, svnserve will listen for IPv6 connections where the IPv6 protocol is supported, which is true of Windows Vista, 7 and Server 2008, Maybe FreeBSD too.

My server has the FreeBSD os, I met with this problem this morning and solved it just now.

you can refer to this page: further info


This may seem low level, but double check you are using the protocol to connect that the server is set up for (svn:// for svn, http:// for http, ssh+svn:// for svn over ssh) and double check your firewall settings.

SVN uses port 3690 if you are connecting using the SVN protocol (default for new setups), (obviously) port 80 for the HTTP protocol, and (again obviously) port 22 for the SSH protocol.


If can telnet the ip and port, make sure

  1. set the listen host to 0.0.0.0;
  2. use the url svn://domain:port/ to connect the server


In my case, at these days, the problem was that I was using svn 1.7.x, and this version throws this error when I try to use from command line.

I just try with svn 1.8.x and all worked fine, I can finally interact through command line without problem.

In case someone else face-off this problem, maybe this can helps.

Regards,

p.s. I am on Linux Centos 6.5.


> sudo dnf install cyrus-sasl-md5

I had the same issue. For me, I needed to install the package cyrus-sasl-md5.

Without this package, svn has no way to ask for or store passwords, so it isn't able to find the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜