From owner-freebsd-questions@FreeBSD.ORG Fri Feb 25 14:33:01 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 E2C8F106566B for ; Fri, 25 Feb 2011 14:33:01 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 556C58FC08 for ; Fri, 25 Feb 2011 14:33:01 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1Psyj5-0006EH-Sd; Fri, 25 Feb 2011 14:33:00 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Psyj5-0000Ry-Nh; Fri, 25 Feb 2011 14:32:59 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id p1PEWxeT072017; Fri, 25 Feb 2011 14:32:59 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id p1PEWxGQ072016; Fri, 25 Feb 2011 14:32:59 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 25 Feb 2011 14:32:59 +0000 From: Anton Shterenlikht To: Greg Larkin Message-ID: <20110225143259.GA71981@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: Greg Larkin , freebsd-questions@FreeBSD.org, mexas@bristol.ac.uk References: <20110225092303.GA2086@mech-cluster241.men.bris.ac.uk> <4D67B982.6030601@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D67B982.6030601@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: mexas@bristol.ac.uk, freebsd-questions@FreeBSD.org Subject: Re: setting up svn server - Connection refused X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 14:33:02 -0000 On Fri, Feb 25, 2011 at 09:15:30AM -0500, Greg Larkin wrote: > -----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 metric 0 mtu 1500 > > options=209b > > 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 > > media: Ethernet autoselect (100baseTX ) > > 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 # svnserve -d # netstat -an | grep 3690 tcp6 0 0 *.3690 *.* LISTEN # > 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"? # /sbin/ifconfig -a em0: flags=8843 metric 0 mtu 1500 options=209b ether 00:13:21:5b:05:1c inet 137.222.187.28 netmask 0xffffff00 broadcast 137.222.187.255 inet6 fe80::213:21ff:fe5b:51c%em0 prefixlen 64 scopeid 0x4 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active em1: flags=8843 metric 0 mtu 1500 options=209b 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 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 options=3 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 nd6 options=21 # # netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 137.222.187.250 UGS 0 697 em0 10.10.10.0/24 link#5 U 0 0 em1 10.10.10.14 link#5 UHS 0 0 lo0 127.0.0.1 link#6 UH 0 44 lo0 137.222.187.0/24 link#4 U 1 338 em0 137.222.187.28 link#4 UHS 0 0 lo0 Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRS lo0 ::1 ::1 UH lo0 ::ffff:0.0.0.0/96 ::1 UGRS lo0 fe80::/10 ::1 UGRS lo0 fe80::%em0/64 link#4 U em0 fe80::213:21ff:fe5b:51c%em0 link#4 UHS lo0 fe80::%em1/64 link#5 U em1 fe80::213:21ff:fe5b:51d%em1 link#5 UHS lo0 fe80::%lo0/64 link#6 U lo0 fe80::1%lo0 link#6 UHS lo0 ff01:4::/32 fe80::213:21ff:fe5b:51c%em0 U em0 ff01:5::/32 fe80::213:21ff:fe5b:51d%em1 U em1 ff01:6::/32 ::1 U lo0 ff02::/16 ::1 UGRS lo0 ff02::%em0/32 fe80::213:21ff:fe5b:51c%em0 U em0 ff02::%em1/32 fe80::213:21ff:fe5b:51d%em1 U em1 ff02::%lo0/32 ::1 U lo0 # Many thanks for your help, Greg. However, following David Kelly's advice, I switched to svn+ssh, and that seems to work fine. Nevertheless, I'm curious to find out why svnserve is not working as expected. Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423