Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

General support questions
grish
Posts: 6
Joined: 2013/05/27 05:03:34

Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by grish » 2013/05/27 05:11:22

Hi,

I just installed CentOS server and I've been trying to run yum for updates and to install mysql, but I am unable to progress because I get the following error:

[root@localhost ~]# yum -y update
Loaded plugins: fastestmirror
Determining fastest mirrors
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"
Error: Cannot find a valid baseurl for repo: base


I found this thread:
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=39203

And I tried disabling the firewall using the following command:

service iptables stop

The firewall has been disabled but I still get the same error.
Not so sure how to troubleshoot this problem because I'm a new Linux user.

I have verified that I can ping mirrorlist.centos.org and other sites like www.google.com

Been stuck on this for days trying to find something on the net to get me started installing the applications I need but no luck.
Hope someone can help me out.

Thanks!

User avatar
avij
Retired Moderator
Posts: 3039
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by avij » 2013/05/27 06:55:14

Your server is trying to reach the mirrorlist server over IPv6. The 'service iptables stop' only affects IPv4, the respective command for IPv6 would be 'service ip6tables stop'. However, I don't think this is a firewall problem, so there shouldn't be a need to disable your firewall.

Likewise, if you 'ping mirrorlist.centos.org', it'll do so over IPv4. A proper test would be to 'ping6 mirrorlist.centos.org'. You could also 'ping6 miuku.net' to see if the problem is only with the mirrorlist.centos.org server's routing, or if the routing problem affects both servers. In case you can't reach either of those, the routing problem is likely at your end. If it's at your end, there are two ways to move forward: either you fix the IPv6 routing (if you do have IPv6 connectivity), or you [url=http://wiki.centos.org/FAQ/CentOS6#head-d47139912868bcb9d754441ecb6a8a10d41781df]disable IPv6[/url].

grish
Posts: 6
Joined: 2013/05/27 05:03:34

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by grish » 2013/05/27 07:28:36

Hi avij,

Thanks for the reply! I was not intending to use IPv6, so I've decided to try to disable it. I checked your list and tried using:

sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1

to disable IPv6. I entered the commands and tried running:

yum -y update

Not so sure if I'm doing this right. But is there a way to check if IPv6 is still enabled?

grish
Posts: 6
Joined: 2013/05/27 05:03:34

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by grish » 2013/05/27 07:40:32

I tried rebooting the server and I noticed I don't see anymore a IPv6 address when I use ifconfig, although I still am getting an error when I try to use yum.

[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:C9:F6:3F
inet addr:192.168.10.238 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3949 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:333527 (325.7 KiB) TX bytes:10864 (10.6 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


Is there anything else I should be checking?

User avatar
avij
Retired Moderator
Posts: 3039
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by avij » 2013/05/27 08:24:47

Please have a look at /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0. If you see anything IPv6-related in there, turn those off (or "no"). Do a 'service network restart' after changes.

grish
Posts: 6
Joined: 2013/05/27 05:03:34

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by grish » 2013/05/27 08:39:42

I did add the following lines to
/etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0:

IPV6INIT=no
IPV6_AUTOCONF=no

did a reboot but still no go. Same error. I thought it was disabled already since I didn't see the IPv6 address in ifconfig.

grish
Posts: 6
Joined: 2013/05/27 05:03:34

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by grish » 2013/05/28 02:50:08

Is there a way to check why yum fails, or a way to trace what's happening during the process. Still stuck unable to use yum because of the error. I tried searching and done all these different methods of disabling IPv6 and rebooting but I still get the same error. I check the router and it seems to be fine since the other machines are all working fine.

any other suggestions on what I could do?

User avatar
toracat
Forum Moderator
Posts: 7386
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by toracat » 2013/05/28 07:44:42

Try running yum in a more verbose mode. For example, yum -d6 .

grish
Posts: 6
Joined: 2013/05/27 05:03:34

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by grish » 2013/05/28 07:58:21

Thanks for the reply! Well I tried it and I still got the same result:

[root@localhost ~]# yum -d6 update
Loading "fastestmirror" plugin
Config time: 0.023
Yum Version: 3.2.29
Setting up Package Sacks
Loading mirror speeds from cached hostfile
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"
Error: Cannot find a valid baseurl for repo: base

imageek72
Posts: 2
Joined: 2013/05/31 19:02:58

Re: Unable to use yum getting: 14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e9

Post by imageek72 » 2013/05/31 19:12:08

I am in the same boat. New install of 6.4 and it is like it wants to only talk on ipv6 for yum. I can ping my gateway, resolv interenet addresses, etc with ipv4, but it is like yum wont use ipv4 at all.

Post Reply

Return to “CentOS 6 - General Support”