One solution to this would be to give IPv4 higher precedence in /etc/gai.conf (assuming your distribution uses it) which will result in IPv4 addresses being returned over IPv6 addresses.
(from my default gai.conf)
# precedence <mask> <value>
# Add another rule to the RFC 3484 precedence table. See section 2.1
# and 10.3 in RFC 3484. The default is:
#
#precedence ::1/128 50
#precedence ::/0 40
#precedence 2002::/16 30
#precedence ::/96 20
#precedence ::ffff:0:0/96 10
#
# For sites which prefer IPv4 connections change the last line to
#
#precedence ::ffff:0:0/96 100
Cheers,
Andrew
--
Andrew Wiles .
Tîm Ceisiadau / Applications Team .
Systemau TGCh / ICT Systems .
Gwasanaethau Gwybodaeth / Information Services .
Adeilad Hugh Owen Building .
Prifysgol Aberystwyth University .
SY23 3DZ .
Ffôn/Tel 01970 622400 x4276 .
E-bost/Email [log in to unmask] .
Gwe/Web http://neidio.aber.ac.uk/?lv / http://jump.aber.ac.uk/?nv
> -----Original Message-----
> From: Discussion list for Shibboleth developments [mailto:JISC-
> [log in to unmask]] On Behalf Of Jon Warbrick
> Sent: 27 June 2013 13:27
> To: [log in to unmask]
> Subject: Re: Shibboleth repository not connecting
>
> On Thu, 27 Jun 2013, Mari-Cruz Garcia wrote:
>
> >
> http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_
> CentOS-6/repodata/repomd.xml:
> > [Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:67c:2178:8::13:
> > Network is unreachable"
>
> You are trying to connect over IPv6, presumably because your machine has
> IPv6 enabled and download.opensuse.org has an IPv6 address. The question
> is, does your IPv6 connectivity really work? I suspect not, and that
> that's the root of your problem. Perhaps yum, unlike many other
> programs,
> doesn't fall back to v4 if v6 fails?
>
> Jon.
>
> --
> Jon Warbrick
> Information Systems Development, Computing Service, University of
> Cambridge
|