NetBSD Problem Report #30521

From www@netbsd.org  Tue Jun 14 08:59:08 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 05A7D63B104; Tue, 14 Jun 2005 08:59:08 +0000 (UTC)
Message-Id: <20050614085908.05A7D63B104@narn.netbsd.org>
Date: Tue, 14 Jun 2005 08:59:08 +0000 (UTC)
From: rdenis@simphalempin.com
Reply-To: rdenis@simphalempin.com
To: gnats-bugs@netbsd.org
Subject: svn connection to IPv6/IPv4 servers from IPv4-only host fails with No route to host
X-Send-Pr-Version: www-1.0

>Number:         30521
>Category:       pkg
>Synopsis:       svn connection to IPv6/IPv4 servers from IPv4-only host fails with No route to host
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 14 09:00:00 +0000 2005
>Closed-Date:    Sat Oct 08 09:49:31 +0000 2011
>Last-Modified:  Mon Jun 18 08:50:00 +0000 2018
>Originator:     Rémi Denis-Courmont
>Release:        2.0
>Organization:
>Environment:
NetBSD raymonde.via.ecp.fr 2.0 NetBSD 2.0 (GENERIC) #0; Wed Dec  1 10:58:25 UTC 2004  builds@build:/big/builds/ad/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/
builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
My system only has IPv4 connectivity (i.e. no default IPv6 route/gateway).

When I try to connect to a svnserve on a dual-stack IPv6/IPv4 server, svn fails with "No route to host". The only work-around is to specify a DNS name for the server that does only resolve to IPv4, or to put the raw server's IPv4, so that svn doesn't attempt to connect with IPv6.

svn should fallback to IPv4 when IPv6 connection fails, like normal applications do when they use getaddrinfo().
>How-To-Repeat:
- Build or install subversion-base package.
- Make sure IPv6 connectivity is *NOT* available on the host.
- Run:
  # svn ls svn://svn.simphalempin.com/miredo/trunk
  It will fail.

- If you run:
  # svn ls svn://138.195.157.222/miredo/trunk
  it will work (provided the server is not down).
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: shattered@NetBSD.org
State-Changed-When: Thu, 06 Oct 2011 18:01:57 +0000
State-Changed-Why:
svn.simphalempin.com no longer exists, is there another test case?


State-Changed-From-To: feedback->closed
State-Changed-By: shattered@NetBSD.org
State-Changed-When: Sat, 08 Oct 2011 09:49:31 +0000
State-Changed-Why:
Works now (subversion-base-1.6.17nb1).

% svn ls svn://svn.freebsd.org/base/
ROADMAP.txt
cvs2svn/
...

svn.freebsd.org has IPv6 address 2001:4f8:fff6::2c


From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/30521 (svn connection to IPv6/IPv4 servers from IPv4-only host fails with No route to host)
Date: Wed, 22 Oct 2014 01:37:30 +0400

 It seems it's still not always working properly.  This is probably an
 upstream problem.

   $ svn info svn://svn.freebsd.org/base/head
   Path: head
   ...

 But 

   $ svn info https://svn0.ru.FreeBSD.org/base/head
   svn: E000065: Unable to connect to a repository at URL 'https://svn0.ru.freebsd.org/base/head'
   svn: E000065: Error running context: No route to host

 I do see IPv4 connection attempt.  It's successful as a TCP
 connection, but fails as HTTPS because of the certificate
 (Issuer: clusteradm, FreeBSD.org, CA, US)

 And, indeed, trying svn info with explicit IPv4 address

   $ svn info https://77.88.40.110/base/head
   Error validating server certificate for 'https://77.88.40.110:443':
   ...

 -uwe

From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/30521 (svn connection to IPv6/IPv4 servers from IPv4-only host fails with No route to host)
Date: Wed, 22 Oct 2014 01:52:56 +0400

 Forgot to add:

 $ svn --version
 svn, version 1.8.10 (r1615264)
    compiled Oct 21 2014, 01:45:37 on powerpc--netbsd

 Copyright (C) 2014 The Apache Software Foundation.
 This software consists of contributions made by many people;
 see the NOTICE file for more information.
 Subversion is open source software, see http://subversion.apache.org/

 The following repository access (RA) modules are available:

 * ra_svn : Module for accessing a repository using the svn network protocol.
   - handles 'svn' scheme
 * ra_local : Module for accessing a repository on local disk.
   - handles 'file' scheme
 * ra_serf : Module for accessing a repository via WebDAV protocol using serf.
   - using serf 1.3.7
   - handles 'http' scheme
   - handles 'https' scheme

 -uwe

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org, "Valeriy E. Ushakov" <uwe@netbsd.org>
Cc: 
Subject: Re: pkg/30521 (svn connection to IPv6/IPv4 servers from IPv4-only
 host fails with No route to host)
Date: Wed, 22 Oct 2014 05:58:06 +0000

 On Tue, Oct 21, 2014 at 09:45:01PM +0000, Valery Ushakov wrote:
  > From: Valery Ushakov <uwe@stderr.spb.ru>
  > To: gnats-bugs@NetBSD.org
  > Cc: 
  > Subject: Re: pkg/30521 (svn connection to IPv6/IPv4 servers from IPv4-only host fails with No route to host)
  > Date: Wed, 22 Oct 2014 01:37:30 +0400
  > 
  >  It seems it's still not always working properly.  This is probably an
  >  upstream problem.
  >  
  >    $ svn info svn://svn.freebsd.org/base/head
  >    Path: head
  >    ...
  >  
  >  But 
  >  
  >    $ svn info https://svn0.ru.FreeBSD.org/base/head
  >    svn: E000065: Unable to connect to a repository at URL 'https://svn0.ru.freebsd.org/base/head'
  >    svn: E000065: Error running context: No route to host
  >  
  >  I do see IPv4 connection attempt.  It's successful as a TCP
  >  connection, but fails as HTTPS because of the certificate
  >  (Issuer: clusteradm, FreeBSD.org, CA, US)
  >  
  >  And, indeed, trying svn info with explicit IPv4 address
  >  
  >    $ svn info https://77.88.40.110/base/head
  >    Error validating server certificate for 'https://77.88.40.110:443':
  >    ...

 This seems like a different problem - can you open a new PR?

 -- 
 David A. Holland
 dholland@netbsd.org

From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/30521 (svn connection to IPv6/IPv4 servers from IPv4-only host fails with No route to host)
Date: Thu, 23 Oct 2014 00:49:11 +0400

 Resubmitted as pkg/49306

 -uwe

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/30521 (svn connection to IPv6/IPv4 servers from IPv4-only
 host fails with No route to host)
Date: Sat, 25 Oct 2014 05:22:15 +0000

 On Wed, Oct 22, 2014 at 08:50:01PM +0000, Valery Ushakov wrote:
  > From: Valery Ushakov <uwe@stderr.spb.ru>
  > To: gnats-bugs@NetBSD.org
  > Cc: 
  > Subject: Re: pkg/30521 (svn connection to IPv6/IPv4 servers from IPv4-only host fails with No route to host)
  > Date: Thu, 23 Oct 2014 00:49:11 +0400
  > 
  >  Resubmitted as pkg/49306

 Thanks. I'll insert a crossreference just in case.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/30521 (svn connection to IPv6/IPv4 servers from IPv4-only host fails with No route to host)
Date: Mon, 18 Jun 2018 11:45:07 +0300

 I just ran into this bug:

   $ svn checkout https://svn.FreeBSD.org/base/head src
   svn: E170013: Unable to connect to a repository at URL 'https://svn.freebsd.org/base/head'
   svn: E000065: Error running context: No route to host

 This is on a host with IPv4-only Internet connectivity.  I consider
 this a reproduction of PR 30521 rather than PR 49306 because tcpdump
 does not show any outgoing IPv4 TCP connection attempt.

 $ uname -a
 NetBSD guido.araneus.fi 7.1.1 NetBSD 7.1.1 (GENERIC.201712222334Z) amd64
 $ pkg_info -a|grep subversion
 subversion-base-1.9.7nb3 Version control system, base programs and libraries
 $ pkg_info -a|grep serf
 serf-1.3.9          High-performance asynchronous HTTP client library

 This is impacting my ability to submit bug fixes upstream for NetBSD
 code derived from FreeBSD.
 -- 
 Andreas Gustafsson, gson@gson.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.