Yum Timeout … (CentOS 6.8)

Home » CentOS » Yum Timeout … (CentOS 6.8)
CentOS 12 Comments

Hello,

the last times, when I tried to update,

it get time outs; even when ‘yum list’

[root@host ~]# yum list Loaded plugins: fastestmirror, security Determining fastest mirrors epel/metalink | 13 kB 00:00
* base: CentOS.den.host-engine.com
* epel: mirror.steadfast.net
* extras: CentOS.den.host-engine.com
* updates: CentOS.den.host-engine.com http://CentOS.den.host-engine.com/6/os/x86_64/repodata/repomd.xml: [Errno
12] Timeout on http://CentOS.den.host-engine.com/6
/os/x86_64/repodata/repomd.xml: (28, ‘Operation too slow. Less than 1
bytes/sec transfered the last 30 seconds’)
Trying other mirror. base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:03
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:04
http://CentOS.den.host-engine.com/6/extras/x86_64/repodata/repomd.xml:
[Errno 12] Timeout on http://CentOS.den.host-engine.c om/6/extras/x86_64/repodata/repomd.xml: (28, ‘Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds’)
Trying other mirror. extras

how or where can I reset this behavour, to have the really fastest mirros used?

Thanks in advance, Walter

12 thoughts on - Yum Timeout … (CentOS 6.8)

  • Yes, but doesn’t help … the same before …

    by the way, I can’t image that there is no mirror in Europa, and that the “timeout”-mirrors from US are the fastest;

    I’m from Europe / Austria;

    Walter

  • not really

    [root@host /]# yum remove yum-fastestmirror Loaded plugins: fastestmirror, security Setting up Remove Process Resolving Dependencies
    –> Running transaction check
    —> Package yum-plugin-fastestmirror.noarch 0:1.1.30-37.el6 will be erased
    –> Processing Dependency: yum-plugin-fastestmirror for package:
    yum-3.2.29-73.el6.CentOS.noarch
    –> Running transaction check
    —> Package yum.noarch 0:3.2.29-73.el6.CentOS will be erased
    –> Processing Dependency: yum >= 3.2.18 for package:
    yum-plugin-security-1.1.30-37.el6.noarch
    –> Processing Dependency: yum >= 3.2.29-56 for package:
    yum-utils-1.1.30-37.el6.noarch
    –> Running transaction check
    —> Package yum-plugin-security.noarch 0:1.1.30-37.el6 will be erased
    —> Package yum-utils.noarch 0:1.1.30-37.el6 will be erased
    –> Finished Dependency Resolution Error: Trying to remove “yum”, which is protected

    Walter

  • The correct way to disable a yum plugin is to set enabled to zero in the plugin config file:

    /etc/yum/pluginconf.d/fastestmirror.conf

  • ok I did this, and then did some yum install – works without timeout where could I tell yum to use existing mirrors in my near instead of one on the other side of the world?

    in this config I saw remarked the following:

    #include_only=.nl,.de,.uk,.ie

    when I set enabled=1 and removed the #-comment on this line
    ‘yum list kernel’
    shows this:

    Loaded plugins: fastestmirror, security Determining fastest mirrors epel/metalink
    | 8.6 kB 00:00
    * base: http://ftp.usf.edu Including mirror: archive.linux.duke.edu Including mirror: mirror.unl.edu
    * epel: archive.linux.duke.edu
    * extras: http://ftp.usf.edu
    * updates: http://ftp.usf.edu

    I’m from Europe(!)

    Thanks, Walter

  • I note that duke.edu matches uk, and unl.edu matches nl.

    Maybe they are regular expressions, i just tried with

    #include_ony=\.nl,\.de

    and got less surprising results

  • I tried this:

    include_only=\.at,\.ch,\.de,\.nl,\.uk

    and got this:

    Determining fastest mirrors
    * base: mirrors.usinternet.com Including mirror: mirror.chpc.utah.edu
    * epel: mirror.chpc.utah.edu
    * extras: mirrors.usinternet.com
    * updates: mirrors.usinternet.com

    when using this:

    include_only=\.at$,\.ch$,\.de$,\.nl$,\.uk$

    I got this:

    Determining fastest mirrors
    * base: mirrors.usinternet.com
    * epel: mirror.math.princeton.edu
    * extras: mirrors.usinternet.com
    * updates: mirrors.usinternet.com

    when using these two lines

    exclude=.edu,.com include_only=\.at$,\.ch$,\.de$,\.nl$,\.uk$

    I got this:

    Determining fastest mirrors
    * base: mirrors.liquidweb.com
    * epel: linux.mirrors.es.net
    * extras: mirrors.liquidweb.com
    * updates: mirrors.liquidweb.com

    quite strange …

    Thanks, Walter

  • I found out some crazy things

    my setup is private IPv4 behind a NAT-Router (192.168.1.0/24)
    and as my ISP is still IPv4only I have a IPv6 tunnel (Hurricane Electric)
    the other end of the tunnel is not in US, it is in Germany(!)

    any access with port 80 or 443 is blocked except from proxy;
    and I did the following on squid:

    tcp_outgoing_address 192.168.1.10 linux-hosts

    and now

    after ‘yum clean all’, I get this when ‘yum list kernel’

    [root@host /]# yum list kernel Loaded plugins: fastestmirror Determining fastest mirrors
    * base: mirror.inode.at
    * extras: mirror.inode.at
    * updates: mirror.inode.at
    … and this is what I except …

    and the following settings in /etc/yum/pluginconf.d/fastestmirror.conf

    exclude=.edu,.com,.org include_only=\.at$,\.ch$,\.de$,\.nl$,\.uk$

    are placebo, they don’t work; because without the “hack setting” in squid, which in fact disables IPv6 for the linux-hosts(!)
    these two settings result in

    Determining fastest mirrors
    * base: mirror.keystealth.org
    * epel: mirror.math.princeton.edu
    * extras: mirror.keystealth.org
    * updates: mirror.keystealth.org

    Greetings, Walter