Join the community today
Become a Member

Varnish repo failed

Discussion in 'System Administration' started by Sunka, Sep 5, 2017.

  1. Sunka

    Sunka Active Member

    923
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    8:34 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    Code (Text):
    [root@upcloud ~]# yum clean all
    Loaded plugins: fastestmirror, priorities, versionlock
    Cleaning repos: base centos-sclo-rh centos-sclo-sclo elasticsearch-5.x epel extras mariadb updates varnish-4.1
    Cleaning up everything
    [root@upcloud ~]# yum update
    Loaded plugins: fastestmirror, priorities, versionlock
    base                                                                                    | 3.6 kB  00:00:00     
    centos-sclo-rh                                                                          | 2.9 kB  00:00:00     
    centos-sclo-sclo                                                                        | 2.9 kB  00:00:00     
    elasticsearch-5.x                                                                       | 1.3 kB  00:00:00     
    epel/x86_64/metalink                                                                    |  22 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     
    updates                                                                                 | 3.4 kB  00:00:00     
    https://repo.varnish-cache.org/redhat/varnish-4.1/el7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 410 - Gone
    Trying other mirror.
    
    
     One of the configured repositories failed (Varnish Cache 4.1 for Enterprise Linux),
     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. Run the command with the repository temporarily disabled
                yum --disablerepo=varnish-4.1 ...
    
         4. Disable the repository permanently, 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 varnish-4.1
            or
                subscription-manager repos --disable=varnish-4.1
    
         5. 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=varnish-4.1.skip_if_unavailable=true
    
    failure: repodata/repomd.xml from varnish-4.1: [Errno 256] No more mirrors to try.
    https://repo.varnish-cache.org/redhat/varnish-4.1/el7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 410 - Gone

     
  2. Sunka

    Sunka Active Member

    923
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    8:34 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    Best option to do?
    Btw, I do not use varnish at all.
    I use redis
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    you can disable the repo permanently as directed in output
    Code (Text):
    yum-config-manager --disable varnish-4.1
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    from Releases & Downloads — Varnish HTTP Cachethey moved the packages !
    so for centos 7, changing yum repo file from /etc/yum.repos.d/varnish-4.1.repo with contents
    Code (Text):
    [varnish-4.1]
    name=Varnish Cache 4.1 for Enterprise Linux
    baseurl=https://repo.varnish-cache.org/redhat/varnish-4.1/el7/$basearch
    enabled=0
    gpgcheck=1
    priority=2
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH
    

    to varnishcache/varnish41 - Installation | packagecloud file named /etc/yum.repos.d/varnishcache_varnish41.repo with contents
    Code (Text):
    [varnishcache_varnish41]
    name=varnishcache_varnish41
    baseurl=https://packagecloud.io/varnishcache/varnish41/el/7/$basearch
    repo_gpgcheck=1
    gpgcheck=0
    enabled=1
    gpgkey=https://packagecloud.io/varnishcache/varnish41/gpgkey
    sslverify=1
    sslcacert=/etc/pki/tls/certs/ca-bundle.crt
    metadata_expire=300
    priority=2
    
    [varnishcache_varnish41-source]
    name=varnishcache_varnish41-source
    baseurl=https://packagecloud.io/varnishcache/varnish41/el/7/SRPMS
    repo_gpgcheck=1
    gpgcheck=0
    enabled=1
    gpgkey=https://packagecloud.io/varnishcache/varnish41/gpgkey
    sslverify=1
    sslcacert=/etc/pki/tls/certs/ca-bundle.crt
    metadata_expire=300
    

    then run
    Code (Text):
    yum makecache -y --disablerepo='*' --enablerepo='varnishcache_varnish41'
    yum -y update varnish-release
    

    check via yum list
    Code (Text):
    yum list varnish | tr -s ' ' 
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
     * base: mirror.wdc1.us.leaseweb.net
     * epel: mirror.us.leaseweb.net
     * extras: mirror.wdc1.us.leaseweb.net
     * rpmforge: repoforge.mirror.constant.com
     * updates: mirror.wdc1.us.leaseweb.net
    199 packages excluded due to repository priority protections
    Available Packages
    varnish.x86_64 4.1.8-1.el7 varnishcache_varnish41
    
     
    Last edited: Sep 5, 2017
  5. pamamolf

    pamamolf Well-Known Member

    2,767
    245
    63
    May 31, 2014
    Ratings:
    +436
    Local Time:
    9:34 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Is that Centminmod relay on or maybe needed soon so it will be better to do the edit than disabling the repo?
     
    • Like Like x 1
  6. Sunka

    Sunka Active Member

    923
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    8:34 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    Same question
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    In next few hours, will be updating 123.09beta01 to remove old /etc/yum.repos.d/varnish-4.1.repo yum repo file replacing with updated and enabled yum repo file /etc/yum.repos.d/varnishcache_varnish41.repo so folks can install varnish 4.1 if they want.
     
    • Winner Winner x 2
  8. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
  9. Sunka

    Sunka Active Member

    923
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    8:34 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    Nice, but...

    Code (Text):
    [root@upcloud ~]# yum list updates --disableplugin=priorities --enablerepo=remi
    Loaded plugins: fastestmirror, versionlock
    Repository varnishcache_varnish41 is listed more than once in the configuration
    Repository varnishcache_varnish41-source is listed more than once in the configuration
    remi                                                                                    | 2.9 kB  00:00:00     
    remi/primary_db                                                                         | 1.9 MB  00:00:00     
    Loading mirror speeds from cached hostfile
     * base: ftp.hosteurope.de
     * epel: mirror.imt-systems.com
     * extras: ftp.hosteurope.de
     * remi: mirror.23media.de
     * updates: ftp.hosteurope.de
    [root@upcloud ~]# yum list updates --enablerepo=city-fan.org --disableplugin=priorities
    Loaded plugins: fastestmirror, versionlock
    Repository varnishcache_varnish41 is listed more than once in the configuration
    Repository varnishcache_varnish41-source is listed more than once in the configuration
    city-fan.org                                                                            | 2.9 kB  00:00:00     
    Loading mirror speeds from cached hostfile
     * base: ftp.hosteurope.de
     * city-fan.org: nervion.us.es
     * epel: mirror.imt-systems.com
     * extras: ftp.hosteurope.de
     * updates: ftp.hosteurope.de
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah just re-run centmin.sh one more time seems to fix duplicate listings
     
    • Winner Winner x 1
  11. Sunka

    Sunka Active Member

    923
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    8:34 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    Same result

    Code (Text):
    [root@upcloud ~]# centmin
    /usr/local/src/centminmod ~
    
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com     
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu             
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Exit
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
    
     Centmin Mod local code up to date at /usr/local/src/centminmod
     no available updates at this time...
    
    [root@upcloud ~]# yum clean all
    Loaded plugins: fastestmirror, priorities, versionlock
    Repository varnishcache_varnish41 is listed more than once in the configuration
    Repository varnishcache_varnish41-source is listed more than once in the configuration
    Cleaning repos: base centos-sclo-rh centos-sclo-sclo elasticsearch-5.x epel extras mariadb updates
                  : varnishcache_varnish41 varnishcache_varnish41-source
    Cleaning up everything
    Cleaning up list of fastest mirrors
    [root@upcloud ~]# yum update
    Loaded plugins: fastestmirror, priorities, versionlock
    Repository varnishcache_varnish41 is listed more than once in the configuration
    Repository varnishcache_varnish41-source is listed more than once in the configuration
    base                                                                                    | 3.6 kB  00:00:00     
    centos-sclo-rh                                                                          | 2.9 kB  00:00:00     
    centos-sclo-sclo                                                                        | 2.9 kB  00:00:00     
    elasticsearch-5.x                                                                       | 1.3 kB  00:00:00     
    epel/x86_64/metalink                                                                    |  24 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     
    updates                                                                                 | 3.4 kB  00:00:00     
    varnishcache_varnish41/x86_64/signature                                                 |  836 B  00:00:00     
    varnishcache_varnish41/x86_64/signature                                                 | 1.0 kB  00:00:00 !!!
    varnishcache_varnish41-source/signature                                                 |  836 B  00:00:00     
    varnishcache_varnish41-source/signature                                                 | 1.0 kB  00:00:00 !!!
    (1/11): base/7/x86_64/group_gz                                                          | 155 kB  00:00:00     
    (2/11): epel/x86_64/group_gz                                                            | 170 kB  00:00:00     
    (3/11): epel/x86_64/updateinfo                                                          | 817 kB  00:00:00     
    (4/11): base/7/x86_64/primary_db                                                        | 5.6 MB  00:00:00     
    (5/11): centos-sclo-rh/x86_64/primary_db                                                | 2.8 MB  00:00:00     
    (6/11): extras/7/x86_64/primary_db                                                      | 191 kB  00:00:00     
    (7/11): epel/x86_64/primary_db                                                          | 4.8 MB  00:00:00     
    (8/11): updates/7/x86_64/primary_db                                                     | 7.8 MB  00:00:00     
    (9/11): mariadb/primary_db                                                              |  19 kB  00:00:00     
    (10/11): elasticsearch-5.x/primary                                                      |  86 kB  00:00:00     
    (11/11): centos-sclo-sclo/x86_64/primary_db                                             | 179 kB  00:00:11     
    (1/2): varnishcache_varnish41-source/primary                                            | 2.2 kB  00:00:01     
    (2/2): varnishcache_varnish41/x86_64/primary                                            | 9.8 kB  00:00:01     
    Determining fastest mirrors
     * base: ftp.hosteurope.de
     * epel: mirror.23media.de
     * extras: ftp.hosteurope.de
     * updates: ftp.hosteurope.de
    elasticsearch-5.x                                                                                      218/218
    varnishcache_varnish41                                                                                   43/43
    varnishcache_varnish41-source                                                                            13/13
    129 packages excluded due to repository priority protections
    No packages marked for update
    [root@upcloud ~]# yum list updates --disableplugin=priorities --enablerepo=remi
    Loaded plugins: fastestmirror, versionlock
    Repository varnishcache_varnish41 is listed more than once in the configuration
    Repository varnishcache_varnish41-source is listed more than once in the configuration
    Loading mirror speeds from cached hostfile
     * base: ftp.hosteurope.de
     * epel: mirror.23media.de
     * extras: ftp.hosteurope.de
     * remi: mirror.23media.de
     * updates: ftp.hosteurope.de
    [root@upcloud ~]# centmin
    /usr/local/src/centminmod ~
    
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com     
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu             
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Exit
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
    
     Centmin Mod local code up to date at /usr/local/src/centminmod
     no available updates at this time...
    
    You have new mail in /var/spool/mail/root
    [root@upcloud ~]# centmin
    /usr/local/src/centminmod ~
    
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com     
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 24
    --------------------------------------------------------
    
    --------------------------------------------------------
    Please bookmark:
    --------------------------------------------------------
    ###############################################################
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Find the latest Centmin Mod version - http://centminmod.com
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Google+ Page latest news http://centminmod.com/gpage
    * Community Forums https://community.centminmod.com (signup)
    ###############################################################
    # Cheap VPS Hosting at Digitalocean
    # https://www.digitalocean.com/?refcode=c1cb367108e8
    ###############################################################
    
     checking for YUM updates... please wait...
     no YUM updates available
    -------------------------------------------------------------
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    -------------------------------------------------------------
    [root@upcloud ~]# yum update
    Loaded plugins: fastestmirror, priorities, versionlock
    Repository varnishcache_varnish41 is listed more than once in the configuration
    Repository varnishcache_varnish41-source is listed more than once in the configuration
    Loading mirror speeds from cached hostfile
     * base: ftp.hosteurope.de
     * epel: mirror.23media.de
     * extras: ftp.hosteurope.de
     * updates: ftp.hosteurope.de
    129 packages excluded due to repository priority protections
    No packages marked for update
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    strange output for
    Code (Text):
    ls -lah /etc/yum.repos.d | grep -v .OLD
    
     
  13. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    @Sunka updated 123.09beta01 with fix
     
    • Winner Winner x 1
  14. Sunka

    Sunka Active Member

    923
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    8:34 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    • Like Like x 2
  15. Sunka

    Sunka Active Member

    923
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    8:34 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    Just one more thing...

    Code (Text):
    [root@upcloud ~]# yum update
    Loaded plugins: fastestmirror, priorities, versionlock
    base                                                                                    | 3.6 kB  00:00:00     
    centos-sclo-rh                                                                          | 2.9 kB  00:00:00     
    centos-sclo-sclo                                                                        | 2.9 kB  00:00:00     
    elasticsearch-5.x                                                                       | 1.3 kB  00:00:00     
    epel/x86_64/metalink                                                                    |  24 kB  00:00:00     
    extras                                                                                  | 3.4 kB  00:00:00     
    mariadb                                                                                 | 2.9 kB  00:00:00     
    updates                                                                                 | 3.4 kB  00:00:00     
    varnishcache_varnish41/x86_64/signature                                                 |  836 B  00:00:00     
    varnishcache_varnish41/x86_64/signature                                                 | 1.0 kB  00:00:00 !!!
    varnishcache_varnish41-source/signature                                                 |  836 B  00:00:00     
    varnishcache_varnish41-source/signature                                                 | 1.0 kB  00:00:00 !!!
    Loading mirror speeds from cached hostfile
     * base: mirror.centos.org
     * epel: mirror.23media.de
     * extras: mirror.centos.org
     * updates: mirror.centos.org
    129 packages excluded due to repository priority protections
    No packages marked for update
     
  16. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    tried yum clean all ?
     
  17. pamamolf

    pamamolf Well-Known Member

    2,767
    245
    63
    May 31, 2014
    Ratings:
    +436
    Local Time:
    9:34 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    I have the same issue :(

    yum clean all didn't fix it...


    and that's after updating Centminmod using menu 23 and option 2 and then re run Centminmod again...
     
  18. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    we are talking about duplicate ?
    Code (Text):
    varnishcache_varnish41/x86_64/signature | 836 B 00:00:00 
    varnishcache_varnish41/x86_64/signature | 1.0 kB 00:00:00 !!!
    varnishcache_varnish41-source/signature | 836 B 00:00:00 
    varnishcache_varnish41-source/signature | 1.0 kB 00:00:00 !!!
    

    Code (Text):
    yum clean all
    yum repolist all
    yum update
    
     
  19. pamamolf

    pamamolf Well-Known Member

    2,767
    245
    63
    May 31, 2014
    Ratings:
    +436
    Local Time:
    9:34 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Yup duplicates....

    Is it ok now?
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    that should be fine if yum update displays like normal