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
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
>Added: >>"OPTIONS=-4 -named" to /etc/sysconfig/named,restarted named.>disabled ipv6 per interface, >>Odds are you didn't actually do this, just configured them so that they >>won't pickup a GUA.U were right :D>>created /etc/modprobe.d/ipv6_disable.conf file with >>alias net-pf-10 off >>alias ipv6 off >>options ipv6 disable=1>These only take effect if you reboot or unload the modules manually.Tryning not to reboot, when unloading I get the message that the modules is in use. I think that forcing the unload is too dangerouse, read that it might resolve in kernel panic. -----Original Message----- From: Mark Milhollan [mailto:mlm at pixelgate.net] Sent: Sunday, December 28, 2014 8:17 PM To: Mateusz Guz Subject: Re: [CentOS] (py)curl error 7 On Fri, 26 Dec 2014, Mateusz Guz wrote:>Added: >"OPTIONS=-4 -named" to /etc/sysconfig/named,This only takes effect if you restart named. Keep in mind it does not stop named from returning IPv6 addresses.>disabled ipv6 per interface,Odds are you didn't actually do this, just configured them so that they won't pickup a GUA.>created /etc/modprobe.d/ipv6_disable.conf file with >alias net-pf-10 off >alias ipv6 off >options ipv6 disable=1These only take effect if you reboot or unload the modules manually.>> 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"I would expect yum to try another address, until one succeeds. Sorry, I don't know why it would not do so. /mark
Ip -6 a shows no output after "visual" inspection i don't see any ipv6 addresses assigned to my eth interfaces On Mon, 29 Dec 2014, Mateusz Guz wrote:>On Sun, 28 Dec 2014, Mark Milhollan wrote: >>On Fri, 26 Dec 2014, Mateusz Guz wrote:>>>created /etc/modprobe.d/ipv6_disable.conf file with >>>alias net-pf-10 off >>>alias ipv6 off >>>options ipv6 disable=1 >> >>These only take effect if you reboot or unload the modules manually. > >Tryning not to reboot, when unloading I get the message that the modules is in use. >I think that forcing the unload is too dangerouse, read that it might resolve in kernel panic.Forcing an unload wouldn't be wise. You must stop using the module then you can unload it. Busy usually means you have IPv6 addresses on some interfaces -- ip -6 addr flush dev ethX. /mark
Our network admin blocked ports (don't know why - i asked him 2 weeks before I started to troubleshoot the system). Everything is fine now, thanks for help. -----Original Message----- From: Mark Milhollan [mailto:mlm at pixelgate.net] Sent: Monday, December 29, 2014 9:21 PM To: Mateusz Guz Subject: RE: [CentOS] (py)curl error 7 On Mon, 29 Dec 2014, Mateusz Guz wrote:>Ip -6 a shows no output > >after "visual" inspection i don't see any ipv6 addresses assigned to my eth interfaces > >On Mon, 29 Dec 2014, Mateusz Guz wrote: >>On Sun, 28 Dec 2014, Mark Milhollan wrote: >>>On Fri, 26 Dec 2014, Mateusz Guz wrote: > >>>>created /etc/modprobe.d/ipv6_disable.conf file with >>>>alias net-pf-10 off >>>>alias ipv6 off >>>>options ipv6 disable=1 >>> >>>These only take effect if you reboot or unload the modules manually. >> >>Tryning not to reboot, when unloading I get the message that the modules is in use. >>I think that forcing the unload is too dangerouse, read that it might resolve in kernel panic. > >Forcing an unload wouldn't be wise. You must stop using the module then >you can unload it. Busy usually means you have IPv6 addresses on some >interfaces -- ip -6 addr flush dev ethX. > > >/mark >Sorry, you'll have to find where else you are using IPv6. /mark