Discover Centmin Mod today
Register Now

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

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:00 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok so updating Centminmod and use menu 4 to recompile Nginx should do all the job?
     
  3. Jimmy

    Jimmy Well-Known Member

    1,787
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +989
    Local Time:
    1:00 PM
    Is this stuff just for Cloudflare? I don't use Cloudflare.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    YUP
    both normal existing nginx zlib and cloudflare zlib need this update fix
     
  5. Jimmy

    Jimmy Well-Known Member

    1,787
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +989
    Local Time:
    1:00 PM
    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

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
    
     
  7. Jimmy

    Jimmy Well-Known Member

    1,787
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +989
    Local Time:
    1:00 PM
    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

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you should be good to proceed with nginx recompile
     
  9. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:00 PM
    Nginx-1.25.x
    MariaDB 10.3.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. buik

    buik “The best traveler is one without a camera.”

    2,008
    521
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,658
    Local Time:
    6:00 PM
    Good to see that Cloudflare Zlib is picked up and used :happy:
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:00 PM
    Nginx-1.25.x
    MariaDB 10.3.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

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  14. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:00 PM
    Nginx-1.25.x
    MariaDB 10.3.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

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  16. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    1:00 AM
    Mainline
    10.2
    No need to restart the whole server?
     
  17. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:00 PM
    Nginx-1.25.x
    MariaDB 10.3.x
  19. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    3:00 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  20. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:00 PM
    Nginx-1.25.x
    MariaDB 10.3.x