Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch CentOS 7 workaround fix for EPEL uw-imap-devel & libc-client issues

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jul 30, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    29,042
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:08 PM
    Nginx 1.13.x
    MariaDB 5.5
  2. eva2000

    eva2000 Administrator Staff Member

    29,042
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:08 PM
    Nginx 1.13.x
    MariaDB 5.5
    Basic summary of issues outlined in CentOS 7.x - Fix for Error: Package: uw-imap-devel-2007f-4.el7.1.x86_64 (@epel)

    Issue only relates to CentOS 7 systems and EPEL yum repo usage
    1. For existing Centmin Mod installs with CentOS 7, EPEL yum repo just released a new libc-client-2007f-14 rpm package to update libc-client-2007f-4 version. But uw-imap-devel 2007f-4 package which is required for PHP-FPM imap php extension depends on libc-client-2007f-4 older version. Usually, if libc-client-2007f-14 was released, an accompanying uw-imap-devel 2007f-14 version would be updated too. But CentOS 7, EPEL 7 yum repo does not have a uw-imap-devel 2007f-14 update. So yum updates report a conflict as yum update wants to update libc-client-2007f-4 to libc-client-2007f-14 but uw-imap-devel 2007f-4 complains as it depends on older version.
    2. For fresh Centmin Mod installs with CentOS 7, initial installation will install libc-client from EPEL which is is the newer conflicting version = libc-client-2007f-14. But EPEL yum repo also removed libc-client-2007f-4 older version so you can't downgrade from libc-client-2007f-14 to libc-client-2007f-4 as libc-client-2007f-4 doesn't exist anymore. To add to the issues, EPEL yum repo for CentOS 7 is now missing the uw-imap-devel package altogether so 2007f-4 or 2007f-14 versions of the package are not available via EPEL yum repo !
    3. Update August 3, 2017: newer issue is 2007f-16 version of libc-client and uw-imap-devel were released by EPEL which is proper way to release these with matching 2007f-16 versions for dependencies. So Centmin Mod 123.08stable and 123.09beta01 have been updated to versionlock and update to 2007f-16 versions of these 2 packages.
    So this 123.09beta01 update, fixes these 2 issues by making 2007f-4 version of uw-imap-devel and libc-client EPEL 7 RPM packages available via a centminmod.com local hosted mirror which is now installed on fresh 123.09beta01 installs and using yum versionlock plugin are locked to 2007f-4 versions until we can dig deeper into sorting out EPEL 7 mess. For existing 123.09beta01 installs, if you update via centmin.sh menu option 23 submenu option 2 and exit centmin.sh and re-run centmin.sh then the same workaround fix will automatically be done in background for your system.

    Confirmed working for fresh 123.09beta01 installs checking post install check list to see if PHP-FPM was installed
    Code (Text):
    *************************************************
    * Post-Install Check List....
    *************************************************
    
    --------------------------------------------------------
    Check ccache Version:
    --------------------------------------------------------
    ccache version 3.3.4
    
    Copyright (C) 2002-2007 Andrew Tridgell
    Copyright (C) 2009-2017 Joel Rosdahl
    
    This program is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software
    Foundation; either version 3 of the License, or (at your option) any later
    version.
    
    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    nginx version: nginx/1.13.3
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.5.5
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion -Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0 --add-module=../set-misc-nginx-module-0.31 --add-module=../echo-nginx-module-0.60 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-module=../headers-more-nginx-module-0.32 --with-pcre=../pcre-8.41 --with-pcre-jit --with-zlib=../zlib-1.2.11 --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.5.5
    
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    PHP 5.6.31 (cli) (built: Jul 30 2017 02:50:42)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    
    --------------------------------------------------------
    Check MariaDB installed RPM Versions:
    --------------------------------------------------------
    MariaDB-common-10.1.25-1.el7.centos.x86_64
    MariaDB-compat-10.1.25-1.el7.centos.x86_64
    MariaDB-server-10.1.25-1.el7.centos.x86_64
    MariaDB-devel-10.1.25-1.el7.centos.x86_64
    MariaDB-client-10.1.25-1.el7.centos.x86_64
    MariaDB-shared-10.1.25-1.el7.centos.x86_64
    
    --------------------------------------------------------
    Check Memcached Server Version:
    --------------------------------------------------------
    memcached 1.5.0
    
    --------------------------------------------------------
    Check CSF Firewall Version:
    --------------------------------------------------------
    csf: v10.17 (generic)
    
    --------------------------------------------------------
    Check Siege Benchmark Version:
    --------------------------------------------------------
    SIEGE 4.0.2
    
    Copyright (C) 2016 by Jeffrey Fulmer, et al.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.
    
    
    --------------------------------------------------------
    Check mysqlreport version:
    --------------------------------------------------------
    mysqlreport v3.5-maria11 Jul 4 2013
    
    --------------------------------------------------------
    Check pure-ftpd Version:
    --------------------------------------------------------
    pure-ftpd v1.0.42
    
    --------------------------------------------------------
    Check YUM Repo List
    --------------------------------------------------------
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
     * base: mirror.nsw.coloau.com.au
     * epel: mirror.nsw.coloau.com.au
     * extras: mirror.nsw.coloau.com.au
     * rpmforge: mirror.ventraip.net.au
     * updates: mirror.nsw.coloau.com.au
    354 packages excluded due to repository priority protections
    repo id             repo name                                       status
    base/7/x86_64       CentOS-7 - Base                                  7,261+2,102
    epel/x86_64         Extra Packages for Enterprise Linux 7 - x86_64  10,884+1,048
    extras/7/x86_64     CentOS-7 - Extras                                      447+2
    mariadb             MariaDB                                                 14+2
    rpmforge            RHEL 7 - RPMforge.net - dag                          142+103
    updates/7/x86_64    CentOS-7 - Updates                                 1,769+377
    varnish-4.1/x86_64  Varnish Cache 4.1 for Enterprise Linux                    37
    repolist: 20,554
    
    --------------------------------------------------------
    mytimes check:
    /usr/bin/mytimes
    --------------------------------------------------------
    Sun Jul 30 02:56:08 UTC 2017    [UTC]
    Sun Jul 30 12:56:08 AEST 2017   [Australia/Brisbane]
    Sat Jul 29 19:56:08 PDT 2017    [America/Los_Angeles]
    Sat Jul 29 21:56:08 CDT 2017    [America/Chicago]
    Sat Jul 29 22:56:08 EDT 2017    [America/New_York]
    Sat Jul 29 22:56:08 EDT 2017    [America/Montreal]
    Sun Jul 30 03:56:08 BST 2017    [Europe/London]
    Sun Jul 30 04:56:08 CEST 2017   [Europe/Berlin]
    Sun Jul 30 09:56:08 +07 2017    [Asia/Bangkok]
    Sun Jul 30 09:56:08 +07 2017    [Asia/Ho_Chi_Minh]
    Sun Jul 30 09:56:08 WIB 2017    [Asia/Jakarta]
    Sun Jul 30 10:56:08 +08 2017    [Asia/Kuala_Lumpur]
    Sun Jul 30 10:56:08 +08 2017    [Asia/Singapore]
    --------------------------------------------------------
    


    confirm that PHP was compiled with IMAP php extension support
    Code (Text):
    php --ri imap
    
    imap
    
    IMAP c-Client Version => 2007f
    SSL Support => enabled
    Kerberos Support => enabled
    

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    ereg
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    mhash
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
    
     
    Last edited: Aug 3, 2017
    • Like Like x 1
  3. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    3:08 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    This fix didn't work for me :(

    On Centos 7 dedicated i just update my latest Centminmod 09 beta (existing install) and then exit and re run it and when i exit using 24 option i got the prompt to update using:

    Code:
    yum update --disableplugin=priorities --enablerepo=remi,city-fan.org
    So i go ahead but i go this error:

    Code:
    --> Processing Dependency: libc-client(x86-64) = 2007f-16.el7 for package: uw-imap-devel-2007f-16.el7.x86_64
    --> Finished Dependency Resolution
    Error: Package: uw-imap-devel-2007f-16.el7.x86_64 (epel)
               Requires: libc-client(x86-64) = 2007f-16.el7
               Installed: libc-client-2007f-4.el7.1.x86_64 (@epel)
                   libc-client(x86-64) = 2007f-4.el7.1
     
    Last edited: Aug 3, 2017
  4. ArisC

    ArisC Member

    36
    11
    8
    Jun 1, 2017
    Ratings:
    +15
    Local Time:
    3:08 PM
    I'm getting this too
    Code:
    No Match for argument: libc-client-2007f-14.el7.x86_64
    Package yum-plugin-versionlock-1.1.31-40.el7.noarch already installed and latest  version
    New Install
     
  5. eva2000

    eva2000 Administrator Staff Member

    29,042
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:08 PM
    Nginx 1.13.x
    MariaDB 5.5
    what do you both get when you run
    Code (Text):
    cd /usr/local/src/centminmod
    git stash
    git pull
    


    seems EPEL released a new uw-imap-devel-2007f-16 from uw-imap-devel-2007f-4 which requires even new libc-client-2007f-16 instead of 2007f-14 or 2007f-4.

    @ArisC on fresh install need install log

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
  6. eva2000

    eva2000 Administrator Staff Member

    29,042
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:08 PM
    Nginx 1.13.x
    MariaDB 5.5
    Should be fixed in latest updated 123.09beta01 as libc-client and uw-imap-devel has a newer 2007f-16 version that properly matches now so unlocking 2007f-4 to allow 2007f-16 update. But I am locking libc-client and uw-imap-devel to new 2007-f16 after update for more stability right now as who knows what EPEL folks will do regarding these packages down the road.

    Fixed CentOS 7 systems should have version locked 2007f-16 based libc-client and uw-imap-devel EPEL yum packages listed from command
    Code (Text):
    yum versionlock list
    

    Code (Text):
    yum versionlock list
    Loaded plugins: fastestmirror, priorities, versionlock
    0:libc-client-2007f-16.el7.*
    0:uw-imap-devel-2007f-16.el7.*
    versionlock list done
    


    Change log for uw-imap-devel 2007f-16 at uw-imap-2007f-16.el7.x86_64.rpm CentOS 7 Download so July 31 fix was for broken/missing uw-imap-devel package from EPEL7 YUM repo when they released libc-client 2007f-14 update without a corresponding uw-imap-devel 2007f-14 update.
     
    Last edited: Aug 3, 2017
  7. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    3:08 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Working now :)

    Hope to get this fixed in core and we do not have to lock down the version of it :)

    Thanks !
     
  8. eva2000

    eva2000 Administrator Staff Member

    29,042
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:08 PM
    Nginx 1.13.x
    MariaDB 5.5
    It probably is fixed as 2007f-16 matching versions of both uw-imap-devel and libc-client YUM packages are available in EPEL7 now. Just I chose to lock their versions for stability right now. Don't need for a repeat of this bug when they release future versions with missing dependencies.

    In future if you want to check if there's matching updates you can do yum update with --disableplugin=versionlock flag

    List updates
    Code (Text):
    yum list updates libc-client uw-imap-devel --disableplugin=versionlock
    

    Check updates
    Code (Text):
    yum update libc-client uw-imap-devel --disableplugin=versionlock
    

    If there are updates, can re-engage an updated version lock
    Code (Text):
    yum versionlock delete libc-client uw-imap-devel
    yum versionlock libc-client uw-imap-devel
    

    Show installed versions
    Code (Text):
    yum list installed libc-client uw-imap-devel
    
     
    Last edited: Aug 3, 2017
    • Informative Informative x 1
  9. ArisC

    ArisC Member

    36
    11
    8
    Jun 1, 2017
    Ratings:
    +15
    Local Time:
    3:08 PM
    Fresh Install
    Vultr $5 Plan
    Clean Install .09 beta01
    Fixed with the last update today..
    Thank's :)
     
    • Like Like x 2