Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2011 14:32:59 +0000
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        Greg Larkin <glarkin@FreeBSD.org>
Cc:        mexas@bristol.ac.uk, freebsd-questions@FreeBSD.org
Subject:   Re: setting up svn server - Connection refused
Message-ID:  <20110225143259.GA71981@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <4D67B982.6030601@FreeBSD.org>
References:  <20110225092303.GA2086@mech-cluster241.men.bris.ac.uk> <4D67B982.6030601@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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<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

# 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<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: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<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
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
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet 127.0.0.1 netmask 0xff000000 
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
# 



# 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110225143259.GA71981>