Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2011 09:56:29 -0800
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        freebsd-questions@freebsd.org
Cc:        Anton Shterenlikht <mexas@bristol.ac.uk>
Subject:   Re: setting up svn server - Connection refused
Message-ID:  <AANLkTinvMcaQ4sJUy8kjbR-CmPuQ=iH81Nv5igpB3KNi@mail.gmail.com>
In-Reply-To: <20110225092303.GA2086@mech-cluster241.men.bris.ac.uk>
References:  <20110225092303.GA2086@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 25, 2011 at 1:23 AM, Anton Shterenlikht <mexas@bristol.ac.uk> w=
rote:
> 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 =A0?? =A0Ss =A0 =A0 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=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
> =A0 =A0 =A0 =A0options=3D209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_=
HWCSUM,WOL_MAGIC>
> =A0 =A0 =A0 =A0ether 00:13:21:5b:05:1d
> =A0 =A0 =A0 =A0inet 10.10.10.14 netmask 0xffffff00 broadcast 10.10.10.255
> =A0 =A0 =A0 =A0inet6 fe80::213:21ff:fe5b:51d%em1 prefixlen 64 scopeid 0x5
> =A0 =A0 =A0 =A0nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> =A0 =A0 =A0 =A0media: Ethernet autoselect (100baseTX <full-duplex>)
> =A0 =A0 =A0 =A0status: 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?

>From the rc script (which would probably be better than starting it manuall=
y):

# Note:
# svnserve bind per default at the ipv6 address!
# If you want svnserve binding at ipv4 address, you have
# to use option 'svnserve_flags' with --listen-host parameter

Have you tried something like this in rc.conf:
svnserve_flags=3D"-d --listen-port=3D3690 --listen-host 1.2.3.4"

Also check the other variables in that file - you need to specify
where the repo is (-r), the user to run as, etc.

svn+ssh avoids all of this because there is no sever - it just
executes svn in the user's ssh session and manipulate the repo's files
directly (this allows users to accidentally or intentionally trash up
the repo, so svnserve is safer if you don't fully trust all your
committers. Plus you have to watch for permission and umask issues
with svn+ssh).

--=20
Rob Farmer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinvMcaQ4sJUy8kjbR-CmPuQ=iH81Nv5igpB3KNi>