You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rémi Denis-Courmont <rd...@simphalempin.com> on 2005/07/16 11:19:25 UTC

[BUG] svn 1.2.x cannot reach dual-stack svnserve with IPv4

	Hello,

As of version 1.2.0, the svn client tries to connect to svnserve over 
IPv6 if it is advertised in the DNS. However, the client fails to 
fallback properly to IPv4 when IPv6 is not available.

I'm using these :
Subversion 1.2.0
APR 2.0.54
Neon 0.24.7

Admittedly not the most recent versions, but there's no mention ipv6 in 
the ChangeLog for 1.2.1.

The problem can easily be reproduced as follow :

basile.via.ecp.fr is a dual-stack server running svnserve :
basile.via.ecp.fr has IPv6 address 2002:8ac3:802d:1242:250:4ff:fe4c:ae54
basile.via.ecp.fr has address 138.195.157.222

On an IPv6-only host or dual-stack host, everything works fine :

% svn ls svn://basile.via.ecp.fr/miredo
branches/
tags/
trunk/

However, on an dual-stack host with *no* IPv6 connectivity, it fails :

% svn ls svn://basile.via.ecp.fr/miredo
svn: Can't connect to host 'basile.via.ecp.fr': Network is unreachable

It works fine with subversion 1.0.x. Correct semantic for dual-stack 
client programs trying to contact dual-stack servers consists of trying 
to use IPv6 and then IPv4 if IPv6 fails. svn doesn't try IPv4.

As a consequence, it is not possible to use svn 1.2.x from IPv4-only 
hosts to reach dual-stack servers.

-- 
Rémi Denis-Courmont
http://www.simphalempin.com/home/

Re: [PATCH] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by Michael W Thelen <mi...@pietdepsi.com>.
kfogel@collab.net wrote:
> Daniel Berlin <db...@dberlin.org> writes:
> 
>>>I'd love to, but it would be pointless since I can't test it...
>>>
>>>-- Brane
>>
>>It looks right to me, but again, i can't test it either.
> 
> If the current state of things is broken, then maybe we should put
> this code in and see what happens in the wild?  Ideally we'd be able
> to test it ourselves, but when that's not possible, a strategy of
> testing-via-distribution is acceptable IMHO...

So it's not forgotten, I've filed the patch as issue #2382:
http://subversion.tigris.org/issues/show_bug.cgi?id=2382

-- 
Michael W Thelen
It is a mistake to think you can solve any major problems just with
potatoes.       -- Douglas Adams

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by Erik Huelsmann <eh...@gmail.com>.
On 27 Jul 2005 10:33:39 -0500, kfogel@collab.net <kf...@collab.net> wrote:
> Daniel Berlin <db...@dberlin.org> writes:
> > > I'd love to, but it would be pointless since I can't test it...
> > >
> > > -- Brane
> >
> > It looks right to me, but again, i can't test it either.
> 
> If the current state of things is broken, then maybe we should put
> this code in and see what happens in the wild?  Ideally we'd be able
> to test it ourselves, but when that's not possible, a strategy of
> testing-via-distribution is acceptable IMHO...

If we don't have the means to test it, then I'd agree, but maybe we
can appeal to users@ first, asking for test-results from those who do
have these systems available?

If that doesn't work: +1

bye,


Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by kf...@collab.net.
Daniel Berlin <db...@dberlin.org> writes:
> > I'd love to, but it would be pointless since I can't test it...
> > 
> > -- Brane
> 
> It looks right to me, but again, i can't test it either.

If the current state of things is broken, then maybe we should put
this code in and see what happens in the wild?  Ideally we'd be able
to test it ourselves, but when that's not possible, a strategy of
testing-via-distribution is acceptable IMHO...



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by Daniel Berlin <db...@dberlin.org>.
On Wed, 2005-07-27 at 09:04 +0200, Branko Čibej wrote:
> Michael W Thelen wrote:
> 
> > Rémi Denis-Courmont wrote:
> >
> >>> I'm tempted to just give up any pretense of ipv6 support and remove
> >>> the existing code that deals with it in svnserve.
> >>> It seems it's been a lot more trouble than it's worth, because things
> >>> like to tell us about ipv6 addresses, etc, when the actual machine
> >>> can't support it.
> >>>
> >>> Maybe in 5 or 6 years when someone gets this right we should
> >>> reimplement.
> >>
> >>
> >> The attached patch seems to solve the problem. Can reach dual-stack 
> >> servers from dual-stack and IPv4-only hosts; can IPv4-only servers 
> >> from dual-stack and IPv4-only hosts.
> >
> >
> > Is any developer able to review this patch?  If not, I'll file a patch 
> > issue for it in the next day or two.
> 
> I'd love to, but it would be pointless since I can't test it...
> 
> -- Brane

It looks right to me, but again, i can't test it either.




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by Branko Čibej <br...@xbc.nu>.
Michael W Thelen wrote:

> Rémi Denis-Courmont wrote:
>
>>> I'm tempted to just give up any pretense of ipv6 support and remove
>>> the existing code that deals with it in svnserve.
>>> It seems it's been a lot more trouble than it's worth, because things
>>> like to tell us about ipv6 addresses, etc, when the actual machine
>>> can't support it.
>>>
>>> Maybe in 5 or 6 years when someone gets this right we should
>>> reimplement.
>>
>>
>> The attached patch seems to solve the problem. Can reach dual-stack 
>> servers from dual-stack and IPv4-only hosts; can IPv4-only servers 
>> from dual-stack and IPv4-only hosts.
>
>
> Is any developer able to review this patch?  If not, I'll file a patch 
> issue for it in the next day or two.

I'd love to, but it would be pointless since I can't test it...

-- Brane


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by Michael W Thelen <mi...@pietdepsi.com>.
Rémi Denis-Courmont wrote:
>>I'm tempted to just give up any pretense of ipv6 support and remove
>>the existing code that deals with it in svnserve.
>>It seems it's been a lot more trouble than it's worth, because things
>>like to tell us about ipv6 addresses, etc, when the actual machine
>>can't support it.
>>
>>Maybe in 5 or 6 years when someone gets this right we should
>>reimplement.
> 
> The attached patch seems to solve the problem. Can reach dual-stack 
> servers from dual-stack and IPv4-only hosts; can IPv4-only servers from 
> dual-stack and IPv4-only hosts.

Is any developer able to review this patch?  If not, I'll file a patch 
issue for it in the next day or two.

-- 
Michael W Thelen
It is a mistake to think you can solve any major problems just with
potatoes.       -- Douglas Adams

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

[PATCH] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by Rémi Denis-Courmont <rd...@simphalempin.com>.
	Hello,

Le Dimanche 17 Juillet 2005 01:56, vous avez écrit :
> I'm tempted to just give up any pretense of ipv6 support and remove
> the existing code that deals with it in svnserve.
> It seems it's been a lot more trouble than it's worth, because things
> like to tell us about ipv6 addresses, etc, when the actual machine
> can't support it.
>
> Maybe in 5 or 6 years when someone gets this right we should
> reimplement.

The attached patch seems to solve the problem. Can reach dual-stack 
servers from dual-stack and IPv4-only hosts; can IPv4-only servers from 
dual-stack and IPv4-only hosts.

Sincerely,

-- 
Rémi Denis-Courmont
http://www.simphalempin.com/home/

Re: [BUG] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by Daniel Berlin <db...@dberlin.org>.
On Sat, 2005-07-16 at 14:19 +0300, Rémi Denis-Courmont wrote:
> 	Hello,
> 
> As of version 1.2.0, the svn client tries to connect to svnserve over 
> IPv6 if it is advertised in the DNS. However, the client fails to 
> fallback properly to IPv4 when IPv6 is not available.
> 
> I'm using these :
> Subversion 1.2.0
> APR 2.0.54
> Neon 0.24.7
> 
> Admittedly not the most recent versions, but there's no mention ipv6 in 
> the ChangeLog for 1.2.1.
> 
> The problem can easily be reproduced as follow :
> 
> basile.via.ecp.fr is a dual-stack server running svnserve :
> basile.via.ecp.fr has IPv6 address 2002:8ac3:802d:1242:250:4ff:fe4c:ae54
> basile.via.ecp.fr has address 138.195.157.222
> 
> On an IPv6-only host or dual-stack host, everything works fine :
> 
> % svn ls svn://basile.via.ecp.fr/miredo
> branches/
> tags/
> trunk/
> 
> However, on an dual-stack host with *no* IPv6 connectivity, it fails :
> 
> % svn ls svn://basile.via.ecp.fr/miredo
> svn: Can't connect to host 'basile.via.ecp.fr': Network is unreachable
> 
> It works fine with subversion 1.0.x. Correct semantic for dual-stack 
> client programs trying to contact dual-stack servers consists of trying 
> to use IPv6 and then IPv4 if IPv6 fails. svn doesn't try IPv4.
> 
> As a consequence, it is not possible to use svn 1.2.x from IPv4-only 
> hosts to reach dual-stack servers.
> 

I'm tempted to just give up any pretense of ipv6 support and remove the
existing code that deals with it in svnserve.
It seems it's been a lot more trouble than it's worth, because things
like to tell us about ipv6 addresses, etc, when the actual machine can't
support it.

Maybe in 5 or 6 years when someone gets this right we should
reimplement.
--Dan




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


RE: [BUG] svn 1.2.x cannot reach dual-stack svnserve with IPv4

Posted by po...@tigris.org.
Hi,

I am just upgrading to Vista 64, downloadet the latest subversion and immediately ran into this issue. This seems to affect all installations on Vista, doesn't it? Hopefully there is soon a fix available. It took me two evenings to figure out what's wrong as the symptoms are really weird. 

What i do not understand... I would have no issue if the client could understand IPv6 as well. But it seems that the server binds only to IPv6 and the client can only connect using IPv4. Is this another restriction?

My symptoms on Vista are:
netstat -a on server only shows a binding of the subversion (port 3690)to an IPV6 address.
svn client can't connect (the remote machine actively refuses connection)
telnet on svn:<machine> 3690 works fine
Typing http://<machine>:3690 works fine
(Because telnet and Firefox can talk IPv6)

Workaround (Thank You for publishing this information) start server with command line option --listen-port <numeric IP> for example
svnserve.exe -d -r c:\mysvn --listen-port 192.168.178.26 Check then that netstat -a shows a binding of the port to the IPv4 issue. Clients should work then again.

So hopefully there is a soon a fix availaible. This is a severe issue.

Jens

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1044772

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].