[CentOS] (py)curl error 7

Fri Dec 26 14:04:08 UTC 2014
Mateusz Guz <Mateusz.Guz at itworks.pl>

Added:
"OPTIONS=-4 -named" to /etc/sysconfig/named,
disabled ipv6 per interface,
created /etc/modprobe.d/ipv6_disable.conf file with
alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1

but still getting the same error message.
Maybe it just needs a reboot (which im trying to avoid)

-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Mateusz Guz
Sent: Thursday, December 25, 2014 3:16 PM
To: CentOS mailing list
Subject: Re: [CentOS] (py)curl error 7

Tried that :D

yum is still trying to connect via ipv6
(ip_resolve=4 in config file)

-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Alikhan Damirov
Sent: Thursday, December 25, 2014 11:59 AM
To: CentOS mailing list
Subject: Re: [CentOS] (py)curl error 7

Hi,
from man yum.conf:
              ip_resolve Determines how yum resolves host names.

              `4' or `IPv4': resolve to IPv4 addresses only.

              `6' or `IPv6': resolve to IPv6 addresses only.


On 25 December 2014 at 11:53, Mateusz Guz <Mateusz.Guz at itworks.pl> wrote:

> Hi,
>
> Disabled ipv6 (using sysctl, disabled ip6tables, no reboot, no proxy
> present) and still get the message as below.
>
> Centos 6.3 (i know its old)
> Kernel : 2.6.32-279.14.1.el6.x86_64 (I know its old)
> Standard /etc/yum.conf (no changes)
> Standard repos (centos base), enabled
>
> Cleaned cache: yum metadata (didn't work)
> Then: yum clean all (didn't work)
> Then yum makecache (didn't work)
>
> Yum repolist
> Could not retrieve mirrorlist
> http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
> 14: PYCURL ERROR 7 - "Failed to connect to
> 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
>
> Ping on mirrorlist.centos.org is OK
> Curl mirrrorlist.centos.org NOT_OK
>
> Message started to occur suddenly, I didn't even update any package.
> Any suggestions ?
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos