setting up svn server - Connection refused

Greg Larkin glarkin at FreeBSD.org
Fri Feb 25 14:15:42 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/25/11 4:23 AM, Anton Shterenlikht wrote:
> I'm learning how to set up svn server.
> I've read through several sections of
> http://svnbook.red-bean.com/nightly/en/
> 
> Here's what I do:
> 
> ZEEV> svnadmin create /home/mexas/zzz
> ZEEV> svnlook info zzz
> 
> 2011-02-25 09:15:28 +0000 (Fri, 25 Feb 2011)
> 0
> ZEEV> svnserve -d
> ZEEV> ps ax | grep svnserve
> 66952  ??  Ss     0:00.01 /usr/local/bin/svnserve.bin -d
> ZEEV> mkdir /home/mexas/zzz.work
> ZEEV> cd /home/mexas/zzz.work/
> 
> When I try to connect to the svn server, I get this:
> 
> 
> ZEEV> svn co svn://localhost/home/mexas/zzz .
> svn: Can't connect to host 'localhost': Network is unreachable
> ZEEV> svn co svn://10.10.10.14/home/mexas/zzz .
> svn: Can't connect to host '10.10.10.14': Connection refused
> 
> ZEEV> ifconfig em1
> em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
>         ether 00:13:21:5b:05:1d
>         inet 10.10.10.14 netmask 0xffffff00 broadcast 10.10.10.255
>         inet6 fe80::213:21ff:fe5b:51d%em1 prefixlen 64 scopeid 0x5 
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
> ZEEV> 
> 
> I get exactly the same "Connection refused" if I
> connect from another host.
> 
> I turned the firewall off completely.
> 
> What could be the problems?
> 
> Many thanks
> Anton
> 

Hi Anton,

The first place that I'd start is checking if the TCP port for svnserve
is listening for connections:

netstat -an | grep 3690

If it isn't, then something is not working correctly when svnserve
starts in daemon mode.  If it is listening, then something is still
blocking the connection from your svn client to the TCP port.

The fact that you're getting a "localhost: Network is unreachable" error
is strange.  What is the output of "/sbin/ifconfig -a" and "netstat -rn"?

Regards,
Greg
- -- 
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1nuYIACgkQ0sRouByUApAhIACeOBk9/CGcoj3rsg49P97u8ql3
LnYAoMTjq71cLafJi/NACTU4gIsB2VOE
=XTJF
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list