Learn about Centmin Mod LEMP Stack today
Register Now

Yum Upgrade Doesn't work

Discussion in 'System Administration' started by negative, Apr 13, 2016.

Tags:
  1. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    1:36 AM
    1.9.10
    10.1.11
    Hello

    I'm checking the yum updates sometimes on my 3 server but today, i'm getting same error all of my servers which running centmin

    Code (Text):
    [root@web ~]# yum clean all
    
    Yüklü eklentiler: dellsysid, fastestmirror, priorities
    
    Depolar temizleniyor: base elasticsearch-2.x epel extras mariadb pgdg95 remi-safe rpmforge updates
    
    Cleaning up everything
    
    Cleaning up list of fastest mirrors
    
    [root@web ~]# yum upgrade
    
    Yüklü eklentiler: dellsysid, fastestmirror, priorities
    
    base                                                                                                                                 | 3.6 kB  00:00:00     
    
    elasticsearch-2.x                                                                                                                    | 2.9 kB  00:00:00     
    
    epel/x86_64/metalink                                                                                                                 |  29 kB  00:00:00     
    
    epel                                                                                                                                 | 4.3 kB  00:00:00     
    
    extras                                                                                                                               | 3.4 kB  00:00:00     
    
    mariadb                                                                                                                              | 2.9 kB  00:00:00     
    
    pgdg95                                                                                                                               | 3.6 kB  00:00:00     
    
    remi-safe                                                                                                                            | 2.9 kB  00:00:00     
    
    rpmforge                                                                                                                             | 1.9 kB  00:00:00     
    
    Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock error was
    
    12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
    
    
    
     One of the configured repositories failed (Bilinmiyor),
    
     and yum doesn't have enough cached data to continue. At this point the only
    
     safe thing yum can do is fail. There are a few ways to work "fix" this:
    
    
        1. Contact the upstream for the repository and get them to fix the problem.
    
    
        2. Reconfigure the baseurl/etc. for the repository, to point to a working
    
            upstream. This is most often useful if you are using a newer
    
            distribution release than is supported by the repository (and the
    
            packages for the previous distribution release still work).
    
    
        3. Disable the repository, so yum won't use it by default. Yum will then
    
            just ignore the repository until you permanently enable it again or use
    
            --enablerepo for temporary usage:
    
    
                yum-config-manager --disable <repoid>
    
    
        4. Configure the failing repository to be skipped, if it is unavailable.
    
            Note that yum will try to contact the repo. when it runs most commands,
    
            so will have to try and fail each time (and thus. yum will be be much
    
            slower). If it is a very temporary problem though, this is often a nice
    
            compromise:
    
    
                yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
    
    
    Cannot find a valid baseurl for repo: updates/7/x86_64
    


    I think some repo's need to be updated but i don't use a global repo except centmin mod defaults.
    How can i fix this ?
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,035
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    8:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    Problem is right in above text, the network connectivity between your VPS and centos mirrorlist url is too slow
    what does pinging the url give you from within your problematic VPS ?
    Code (Text):
    ping -c4 mirrorlist.centos.org

    example
    Code (Text):
     ping -c4 mirrorlist.centos.org
    PING mirrorlist.centos.org (84.22.180.89) 56(84) bytes of data.
    64 bytes from no-ptr.as20860.net (84.22.180.89): icmp_seq=1 ttl=55 time=1.80 ms
    64 bytes from no-ptr.as20860.net (84.22.180.89): icmp_seq=2 ttl=55 time=1.70 ms
    64 bytes from no-ptr.as20860.net (84.22.180.89): icmp_seq=3 ttl=55 time=1.66 ms
    64 bytes from no-ptr.as20860.net (84.22.180.89): icmp_seq=4 ttl=55 time=1.66 ms
    
    --- mirrorlist.centos.org ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3006ms
    rtt min/avg/max/mdev = 1.667/1.711/1.809/0.071 ms
     
  3. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    1:36 AM
    1.9.10
    10.1.11
    For now, different error that 500 Internet Server Error on yum repo

    Code (Text):
    [root@server cache]# yum clean all
    Yüklü eklentiler: dellsysid, fastestmirror, priorities
    Depolar temizleniyor: base dell-omsa-indep dell-omsa-specific elasticsearch-2.x epel extras mariadb pgdg95 remi-safe rpmforge
                        : updates
    Cleaning up everything
    Cleaning up list of fastest mirrors
    [root@server cache]# yum upgrade
    Yüklü eklentiler: dellsysid, fastestmirror, priorities
    Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os error was
    14: HTTP Error 500 - Internal Server Error
    
    
    One of the configured repositories failed (Bilinmiyor),
    and yum doesn't have enough cached data to continue. At this point the only
    safe thing yum can do is fail. There are a few ways to work "fix" this:
    
         1. Contact the upstream for the repository and get them to fix the problem.
    
         2. Reconfigure the baseurl/etc. for the repository, to point to a working
            upstream. This is most often useful if you are using a newer
            distribution release than is supported by the repository (and the
            packages for the previous distribution release still work).
    
         3. Disable the repository, so yum won't use it by default. Yum will then
            just ignore the repository until you permanently enable it again or use
            --enablerepo for temporary usage:
    
                yum-config-manager --disable <repoid>
    
         4. Configure the failing repository to be skipped, if it is unavailable.
            Note that yum will try to contact the repo. when it runs most commands,
            so will have to try and fail each time (and thus. yum will be be much
            slower). If it is a very temporary problem though, this is often a nice
            compromise:
    
                yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true



    And output of "ping -c4 mirrorlist.centos.org"
    Code (Text):
    [root@server cache]# ping -c4 mirrorlist.centos.org
    PING mirrorlist.centos.org (88.150.173.218) 56(84) bytes of data.
    64 bytes from h88-150-173-218.host.redstation.co.uk (88.150.173.218): icmp_seq=1 ttl=47 time=84.4 ms
    64 bytes from h88-150-173-218.host.redstation.co.uk (88.150.173.218): icmp_seq=2 ttl=47 time=84.3 ms
    64 bytes from h88-150-173-218.host.redstation.co.uk (88.150.173.218): icmp_seq=3 ttl=47 time=84.5 ms
    64 bytes from h88-150-173-218.host.redstation.co.uk (88.150.173.218): icmp_seq=4 ttl=47 time=84.4 ms
    
    --- mirrorlist.centos.org ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 84.395/84.457/84.525/0.048 ms
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,035
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    8:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    problem seems to be on their end on the mirrorlist.centos.org server ?
     
  5. eva2000

    eva2000 Administrator Staff Member

    29,035
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    8:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    also try removing /var/cache/yum/x86_64/7/timedhosts.txt manually and doing
    Code (Text):
    yum clean all

    then post contents of /var/cache/yum/x86_64/7/timedhosts.txt in CODE tags and try
     
  6. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    1:36 AM
    1.9.10
    10.1.11
    For now, same command (yum upgrade) passed without any problem. I think i have bad luck nowadays :)

    And Thank you for your help (as everytime) :)
     
  7. eva2000

    eva2000 Administrator Staff Member

    29,035
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    8:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    Probably temp issue with the mirror server