Discover Centmin Mod today
Register Now

Sysadmin yum update borks on glibc i686 dependency

Discussion in 'System Administration' started by Nik, Nov 13, 2020.

  1. Nik

    Nik Member

    93
    6
    8
    Dec 7, 2015
    Ratings:
    +16
    Local Time:
    8:29 PM
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.19.4
    • PHP Version Installed: 7.4.12
    • MariaDB MySQL Version Installed: 10.3.26
    • When was last time updated Centmin Mod code base ? : today

    • Persistent Config:
      Code (Text):
      ALERTEMAIL='xx@gmail.com'
      MM_LICENSE_KEY='xx'
      #WPPLUGINS_ALL='n'
      VHOSTCTRL_CLOUDFLAREINC='y'
      ENABLEMOTD_CSFMSG='n' # motd banner csf message alert disaply
      ENABLEMOTD_LINKSMSG='n' # motd centminmod.com links bookmark alert display
      DISABLE_IPVSIX='y'
      AUTOTUNE_CLIENTMAXBODY='y'
      ## FOR PHP 7.4+
      FPM_WAKEUP_PATCH='y'
      AUTODETECPHP_OVERRIDE='y'
      ##For Linux Kernel > 5.1.x
      NGINX_IOURING_PATCH_BETA='y'
      ##Upgrading NGINX. Disable, if custom configs
      NGINX_ALLOWOVERRIDE='y'
      #NGINX_FATLTO_OBJECTS='n' # enable -ffat-lto-objects flag for nginx builds - much slower compile times
      #NGINX_NOFATLTO_OBJECTS='n' # enable -fno-fat-lto-objects flag for nginx builds - much slower compile times
      NGINX_DYNAMICTLS='y'
      NGINX_SSLCACHE_ALLOWOVERRIDE='y'
      NGXDYNAMIC_BROTLI='y'
      NGINX_LIBBROTLI='y'
      AUTOHARDTUNE_NGINXBACKLOG='y'
      #MARIADB_INSTALLTENFOUR='y'
      SET_DEFAULT_MYSQLCHARSET='utf8mb4'
      DUALCERTS='y'
      NGINX_HPACK='y'
      GCC_FALIGN_FUNCTION='y'
      LIBRESSL_SWITCH='n'
      CLANG='n'
      DEVTOOLSETSIX='n'
      DEVTOOLSETSEVEN='n'
      DEVTOOLSETEIGHT='n'
      DEVTOOLSETNINE='y'
      NGINX_DEVTOOLSETGCC='y'
      GENERAL_DEVTOOLSETGCC='y'
      CRYPTO_DEVTOOLSETGCC='y'
      PHP_PGO='y'
      PHP_PGO_ALWAYS='y'
      #PHPPGO_INDEXPATH='/home/nginx/domains/XX/public/index.php'
      #PHPPGO_INDEXPATH_TWO='/home/nginx/domains/XX/public/index.php'
      PHP_TUNING='y'
      PHP_BROTLI='y'
      PHP_LZFOUR='y'
      PHP_LZF='y'
      PHP_ZSTD='y'
      ZSTD_LOGROTATE_NGINX='y'
      ZSTD_LOGROTATE_PHPFPM='y'
      MARCH_TARGETNATIVE_ALWAYS='y'
      PHPFINFO='y'
      #WP_FASTCGI_CACHE='y'
      LETSENCRYPT_DETECT='y'
      #NGINX_ZERODT='y'
      PHP_UPDATEMAINTENANCE='y'
      MARIADB_UPDATEMAINTENANCE='y'
      SSL_PROTOCOL_MODERN='y'
      NGINX_MODSECURITY_MAXMIND='y'
      NGINX_MODSECURITY='y'
      WPCLI_CE_QUERYSTRING_INCLUDED='y'
      NGINX_STAPLE_CACHE_OVERRIDE='y'
      NGINX_STAPLE_CACHE_TTL='86400'
      CLOUDFLARE_ZLIB='y'
      PHPIONCUBE='y'
      PHP_LIBZIP='y'
      PHP_ARGON='y'
      

    I have a clean centminmod install, I've merely been updating nginx, php to 7.4.12 recently as well as pip 2 days ago and ffmpeg. Was about to migrate my XF site and upon doing a recommended yum update I get the below:

    Code:
    yum update --disableplugin=priorities --setopt=deltarpm=0 --enablerepo=remi
    ....
    .....
    ....
    Error: Package: glibc-2.17-307.el7.1.i686 (@base)
               Requires: glibc-common = 2.17-307.el7.1
               Removing: glibc-common-2.17-307.el7.1.x86_64 (@anaconda)
                   glibc-common = 2.17-307.el7.1
               Updated By: glibc-common-2.17-317.el7.x86_64 (base)
                   glibc-common = 2.17-317.el7
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    I've tried
    yum reinstall glibc-2.17-307.el7.1.x86_64 glibc-common-2.17-307.el7.1.x86_64
    yum update

    as well as yum clean all and update to no avail.


    Not sure what has a dependency on the i686 binary
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,394
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Who is your web host and what plan are you on? This comes down to the initial CentOS OS image configured/provided by your web host provider.

    You can use below yum history command to check when the yum package was updated/installed etc
    Code (Text):
    yum --setopt=history_list_view=cmds history list glibc
    

    or more specifically
    Code (Text):
    yum --setopt=history_list_view=cmds history list glibc-2.17-307.el7.1.i686
    

    then you can use the output's transaction IDs to inspect each yum transaction where XX is transaction ID
    Code (Text):
    yum history info XX
    


    The CentOS OS has mixed i686 and x86_64 packages installed which you need to remove the i686 ones via command
    Code (Text):
    yum remove \*.i686
     
    Last edited: Nov 13, 2020
  3. Nik

    Nik Member

    93
    6
    8
    Dec 7, 2015
    Ratings:
    +16
    Local Time:
    8:29 PM
    This is my own server running proxmox. I think I used cent 7 iso a month ago to install it then kernel update and next I installed centminmod 129 right after. Nothing else is on this VM.

    Been working ok until today's update.


    Code:
    yum --setopt=history_list_view=cmds history list glibc
    
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
        63 | -y -q install --disablee | 2020-11-10 03:26 | Install        |    2
         1 |                          | 2020-10-02 02:04 | Install        |  300
    history list
    

    Code (Text):
    yum history list info 63
        63 | root <root>              | 2020-11-10 03:26 | Install        |    2
         1 | System <unset>           | 2020-10-02 02:04 | Install        |  300
    


    Looks like the pip/python update I did (as per recommendation from centmin) may have had something to do with this checking on the dates.
     
    Last edited: Nov 13, 2020
  4. Nik

    Nik Member

    93
    6
    8
    Dec 7, 2015
    Ratings:
    +16
    Local Time:
    8:29 PM
    OK removed offending glibc 686 package and all is well again. Thought you should know in case someone else comes with this issue.

    Thank you for the swift reply @eva2000
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,394
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah the command should be
    Code (Text):
    yum history info 63
    
     
  6. Nik

    Nik Member

    93
    6
    8
    Dec 7, 2015
    Ratings:
    +16
    Local Time:
    8:29 PM
    Code (Text):
    Loaded plugins: fastestmirror, priorities, versionlock
    Transaction ID : 63
    Begin time     : Tue Nov 10 03:26:19 2020
    Begin rpmdb    : 850:acd3c8cfe552737f5339e602551c06055135685b
    End time       :                           (0 seconds)
    End rpmdb      : 852:8f53ef4869189bb1fd130b2ff60d1752dd172353
    User           : root <root>
    Return-Code    : Success
    Command Line   : -y -q install --disableexcludes=main glibc.i686
    Transaction performed with:
        Updated       rpm-4.11.3-43.el7.x86_64                        @anaconda
        Updated       yum-3.4.3-167.el7.centos.noarch                 @anaconda
        Installed     yum-metadata-parser-1.1.4-10.el7.x86_64         @anaconda
        Installed     yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch @updates
        Installed     yum-plugin-versionlock-1.1.31-54.el7_8.noarch   @updates
    Packages Altered:
        Install     glibc-2.17-307.el7.1.i686              @base
        Dep-Install nss-softokn-freebl-3.44.0-8.el7_7.i686 @base
    history info
    
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,394
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yum command for that specific command only exists in addons/avginstall.sh which is quite old and hasn't been updated in ages according to sourcegraph search of 123.09beta01 branch (github.com can only search master branch so while sourcegraph allows 123.09beta01 search) according to sourcegraph link here.

    upload_2020-11-14_2-7-52.png

    IIRC addons/avginstall.sh was only 32bit supported so needed glibc 32bit

    pretty sure AVG would fail to install as download page no longer lists the actual download URL and needs registration at AVG Free Antivirus Download | Virus Protection Software and Linux version isn't available anymore.

    So probably need to remove addons/avginstall.sh

    edit: I just updated addons/avginstall.sh to remove it's routines and just leave a message for users that it is no longer supported.
     
    Last edited: Nov 14, 2020
  8. Nik

    Nik Member

    93
    6
    8
    Dec 7, 2015
    Ratings:
    +16
    Local Time:
    8:29 PM
    You are correct I did attempt to install it and failed. Glad you got it sorted out. What's the approved antivirus solution for centmin? Clamav?
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,394
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+