From owner-freebsd-questions@FreeBSD.ORG Fri Feb 25 14:36:39 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84AAA1065679 for ; Fri, 25 Feb 2011 14:36:39 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from asmtp4.iomartmail.com (asmtp4.iomartmail.com [62.128.201.175]) by mx1.freebsd.org (Postfix) with ESMTP id 0E6618FC1A for ; Fri, 25 Feb 2011 14:36:38 +0000 (UTC) Received: from asmtp4.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id p1PEaZ38012898 for ; Fri, 25 Feb 2011 14:36:35 GMT Received: from orange.esperance-linux.co.uk (80-45-152-196.static.dsl.as9105.com [80.45.152.196]) (authenticated bits=0) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id p1PEaV83012879 for ; Fri, 25 Feb 2011 14:36:31 GMT Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 6092833C3D; Fri, 25 Feb 2011 14:36:31 +0000 (GMT) Date: Fri, 25 Feb 2011 14:36:31 +0000 From: Frank Shute To: freebsd-questions@freebsd.org Message-ID: <20110225143631.GA16253@orange.esperance-linux.co.uk> References: <20110225092303.GA2086@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <20110225092303.GA2086@mech-cluster241.men.bris.ac.uk> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.2-RC2 amd64 X-Organisation: 'shute.org.uk' Subject: Re: setting up svn server - Connection refused X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 14:36:39 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 25, 2011 at 09:23:03AM +0000, 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/ >=20 > Here's what I do: >=20 > ZEEV> svnadmin create /home/mexas/zzz > ZEEV> svnlook info zzz >=20 > 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/ >=20 > When I try to connect to the svn server, I get this: >=20 >=20 > ZEEV> svn co svn://localhost/home/mexas/zzz . > svn: Can't connect to host 'localhost': Network is unreachable This sounds like it's a problem with your routing table. Does: $ netstat -r show a destination of localhost? $ ping localhost is useful. > ZEEV> svn co svn://10.10.10.14/home/mexas/zzz . > svn: Can't connect to host '10.10.10.14': Connection refused That's more hopeful. Don't know what's wrong though! >=20 > ZEEV> ifconfig em1 > em1: flags=3D8843 metric 0 mtu 15= 00 > options=3D209b > 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=20 > nd6 options=3D29 > media: Ethernet autoselect (100baseTX ) > status: active > ZEEV>=20 >=20 > I get exactly the same "Connection refused" if I > connect from another host. >=20 > I turned the firewall off completely. >=20 > What could be the problems? >=20 It was a few years ago that I setup my svn repository and I referenced the book you're using too.=20 I launch it out of inetd.conf. I've got the line: svn stream tcp nowait frank /usr/local/bin/svnserve svnserve -i in there. Fixed hosts.allow to only allow machines on the lan to connect and it works well. Sorry I can't be more helpful but a different approach to running a daemon permanently is probably a good idea. Regards, --=20 Frank Contact info: http://www.shute.org.uk/misc/contact.html --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk1nvm4ACgkQHduKvUAgeK5ZeQCgj/Hj9GAZBM7GUcASse0kuiVT nJAAmgLmGFRuAGgrCfdmnNjHZ4Pcn8pH =2EaC -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--