Get the most out of your Centmin Mod LEMP stack
Become a Member

Install Upgrade Nginx Discussion thread for Dec 17th Nginx zlib bug fix & update in 123.09beta01

Discussion in 'Install & Upgrades or Pre-Install Questions' started by eva2000, Dec 17, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  2. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    7:12 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok so updating Centminmod and use menu 4 to recompile Nginx should do all the job?
     
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,379
    287
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +713
    Local Time:
    12:12 PM
    1.13.x
    MariaDB 10.1.x
    Is this stuff just for Cloudflare? I don't use Cloudflare.
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    YUP
    both normal existing nginx zlib and cloudflare zlib need this update fix
     
  5. Jimmy

    Jimmy Premium Member Premium Member

    1,379
    287
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +713
    Local Time:
    12:12 PM
    1.13.x
    MariaDB 10.1.x
    Thanks. This is good to go to re-compile? I got a bunch of email about this - wanted to make sure everything was good to go before I started the re-compile.
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yup should be good to go. If you want to double check you can check which source compiled binaries use zlib libraries (libz.so) first using command so I can make sure.
    Code (Text):
    for b in $(ls  /usr/local/bin); do if [[ "$(ldd "/usr/local/bin/$b" | grep libz.so)" ]]; then echo $b; ldd "/usr/local/bin/$b" | grep libz.so; fi; done
    
     
    • Like Like x 1
  7. Jimmy

    Jimmy Premium Member Premium Member

    1,379
    287
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +713
    Local Time:
    12:12 PM
    1.13.x
    MariaDB 10.1.x
    Looks good.

    Code:
    # for b in $(ls  /usr/local/bin); do if [[ "$(ldd "/usr/local/bin/$b" | grep libz.so)" ]]; then echo $b; ldd "/usr/local/bin/$b" | grep libz.so; fi; done
    axel
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f8a76a81000)
    ccache
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f82fa39e000)
    memcached
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f7fd5c92000)
    pcregrep
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f8f55204000)
    php
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fa7daee0000)
    php-cgi
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f3e2096b000)
    phpdbg
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fe4e9823000)
    siege
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fca05e26000)
    wget
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f58d6df5000)
    
     
  8. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you should be good to proceed with nginx recompile
     
    • Like Like x 1
  9. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    7:12 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    On Centos 6 that i will try it first....:

    Code:
    ccache
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f0816d44000)
    indexer
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fa2e71e3000)
    indextool
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f7eb3ea4000)
    memcached
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f1ddb1a5000)
    pcregrep
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f3135f46000)
    php
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f1d7f32f000)
    php-cgi
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fe9067f1000)
    phpdbg
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007ff3d78a9000)
    search
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f50db8ee000)
    searchd
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f35a7e92000)
    siege
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f79919d6000)
    spelldump
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f605f5b2000)
    wget
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fb39b20b000)
    wordbreaker
       libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f2fa456d000)

    indexer <---From shpinx search 99%
    indextool <---From shpinx search 99%
    search <---From shpinx search 99%
    searchd <---From shpinx search 99%
    spelldump <---From shpinx search 99%

    Don't know if restarting Sphinx will take care al of the above .....?

    Can i re run the above command and check the output to be something else than:

    The rest of my severs have the same output as Jimmy's post above :)
     
    Last edited: Dec 18, 2017
  10. bassie

    bassie Active Member

    982
    235
    43
    Apr 29, 2016
    Ratings:
    +695
    Local Time:
    6:12 PM
    Good to see that Cloudflare Zlib is picked up and used :happy:
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    cheers mate :)

    @pamamolf if sphinxsearch was installed yum should be fine but if source compiled, then only restarting sphinxsearch service would know if it switches back to system zlib library. If it doesn't, then just recompiling sphinxsearch after nginx recompile + zlib fix, should fix it.
     
  12. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    7:12 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    What and how should i check to verify that?

    Installation done using:

    Restarting the server maybe after applying the automated fix? or should i recompile ?
     
  13. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  14. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    7:12 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Applying only the Centminmod update and automated fix from menu 4 i think all are ok..... ?

    Code:
    ccache
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    indexer
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    indextool
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    memcached
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    pcregrep
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    php
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    php-cgi
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    phpdbg
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    search
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    searchd
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    siege
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    spelldump
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    wget
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)
    wordbreaker
        libz.so.1 => /lib64/libz.so.1 (0x00000034e0e00000)

    Code:
    ldd $(which indexer)
    Before:
    Code:
    libz.so.1 => /usr/local/lib/libz.so.1
    After:
    Code:
    libz.so.1 => /lib64/libz.so.1
     
  15. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  16. rdan

    rdan Premium Member Premium Member

    4,308
    1,044
    113
    May 25, 2014
    Ratings:
    +1,504
    Local Time:
    12:12 AM
    Mainline
    10.2
    No need to restart the whole server?
     
  17. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    depends on output of these 2 commands

    lsof should list services using system provided zlib i.e. /lib64/libz.so.1 or /usr/lib64/libz.so.1.2.7 (centos 7) or /usr/lib64/libz.so.1.2.3 (centos 6). Ignore entries with DEL column
    Code (Text):
    lsof | grep libz.so
    

    ldd should list system provided zlib for source compiled binaries /lib64/libz.so.1
    Code (Text):
    for b in $(ls  /usr/local/bin); do if [[ "$(ldd "/usr/local/bin/$b" | grep libz.so)" ]]; then echo $b; ldd "/usr/local/bin/$b" | grep libz.so; fi; done
    

    if some still reporting non system zlib libraries other than /lib64/libz.so.1, then reboot of server should fix that up
     
  18. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    7:12 PM
    Nginx-1.13.x
    MariaDB 10.1.x
  19. eva2000

    eva2000 Administrator Staff Member

    36,424
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    2:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  20. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    7:12 PM
    Nginx-1.13.x
    MariaDB 10.1.x
..