Want to subscribe to topics you're interested in?
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. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    6:52 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    If i am not wrong the only different that server has is this:

    Don't know if that's related ....

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,315
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    2:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    it's processing the lsof command entries and judging from number of services and threads for php-fpm etc you have alot of lsof output to process so will take time i suspect
    Code (Text):
    root     21360  0.0  0.0 106160   340 ?        Ss   Oct26   0:00 /usr/sbin/sshd -D
    root     27169  0.0  0.0 146380  5696 ?        Ss   22:03   0:00  \_ sshd: root@pts/0
    root     27181  0.0  0.0 116448  3120 pts/0    Ss   22:03   0:00  |   \_ -bash
    root     32070  0.0  0.0 113132  1400 pts/0    S+   22:24   0:00  |       \_ /bin/bash /usr/bin/centmin
    root     32071  0.0  0.0 122348 11028 pts/0    S+   22:24   0:00  |           \_ bash centmin.sh
    root       353  0.0  0.0 122612 10652 pts/0    S+   22:25   0:00  |               \_ bash centmin.sh
    root       648  0.0  0.0 122612 10140 pts/0    S+   22:25   0:00  |               |   \_ bash centmin.sh
    root       649  0.1  0.1 191620 47712 pts/0    S+   22:25   0:02  |               |       \_ lsof
    root       654  0.0  0.0 116952   172 pts/0    S+   22:25   0:00  |               |       |   \_ lsof
    root       650  0.0  0.0   9100   664 pts/0    S+   22:25   0:00  |               |       \_ grep libz.so
    root       651  0.0  0.0   9100   664 pts/0    S+   22:25   0:00  |               |       \_ grep DEL.*lib
    root       652  0.0  0.0 107952   608 pts/0    S+   22:25   0:00  |               |       \_ cut -f 1 -d
    root       653  0.0  0.0 126692   920 pts/0    S+   22:25   0:00  |               |       \_ sort -u
    root       354  0.0  0.0 107904   656 pts/0    S+   22:25   0:00  |               \_ tee /root/centminlogs/centminmod_1.2.3-eva2000.09.009_171217-222432_nginx_upgrade.log
    
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    6:52 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    it goes ahead but:

    Now what should i do?
     
  4. rdan

    rdan Well-Known Member

    5,444
    1,407
    113
    May 25, 2014
    Ratings:
    +2,200
    Local Time:
    12:52 AM
    Mainline
    10.2
    Code:
    # lsof | grep libz.so
    systemd       1                root  DEL       REG                9,2              68074849 /usr/local/lib/libz.so.1.2.11
    lvmetad     574                root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    systemd-u   575                root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    polkitd     740             polkitd  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    gmain       740   764       polkitd  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    gdbus       740   765       polkitd  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    JS          740   768       polkitd  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    JS          740   769       polkitd  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    polkitd     740   773       polkitd  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    rsyslogd    745                root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    in:imjour   745   755          root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    rs:main     745   760          root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    chronyd     786              chrony  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    sshd       1051                root  DEL       REG                9,2              68121206 /usr/local/lib/libz.so.1.2.11
    tuned      1058                root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    gmain      1058  1392          root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    tuned      1058  1401          root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    tuned      1058  1403          root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    tuned      1058  1424          root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    php-fpm    1537               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    1585               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    1586               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    1598               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    master     1932                root  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    qmgr       1984             postfix  DEL       REG                9,2              67374958 /usr/local/lib/libz.so.1.2.11
    php-fpm    2230               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2241               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2241  2242         nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2241  2243         nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2319               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2320               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2323               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2376               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2377               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2377  3841         nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2377  3842         nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    2381               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    mysqld     2866               mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2867         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2868         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2869         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2870         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2871         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2872         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2873         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2874         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2875         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2876         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2877         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2878         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2879         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2880         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2881         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2882         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2883         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2884         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2885         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2886         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2887         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2890         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2891         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2892         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2893         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2894         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2895         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2896         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2897         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2898         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2899         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2900         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2901         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2902         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2903         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2904         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2907         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2908         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2910         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2911         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2912         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2913         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2914         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2915         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2916         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2917         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2918         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2919         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2920         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2921         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2922         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866  2923         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866 23715         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    mysqld     2866 27012         mysql  DEL       REG                9,2              68784519 /usr/local/lib/libz.so.1.2.11
    php-fpm    3063               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    3183               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    3445                root  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    4673               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    php-fpm    4676               nginx  DEL       REG                9,2              68067459 /usr/local/lib/libz.so.1.2.11
    sshd       4745                root  mem       REG                9,2     117560   67494322 /usr/local/lib/libz.so.1.2.11
    cleanup    4791             postfix  mem       REG                9,2     117560   67494322 /usr/local/lib/libz.so.1.2.11
    trivial-r  4792             postfix  mem       REG                9,2     117560   67494322 /usr/local/lib/libz.so.1.2.11
    smtp       4793             postfix  mem       REG                9,2     117560   67494322 /usr/local/lib/libz.so.1.2.11
    
    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 (0x00007f917e274000)
    ccache
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f5c2d0bd000)
    pcregrep
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f5519b31000)
    php
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f909953e000)
    php-cgi
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f934753e000)
    phpdbg
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f90b2322000)
    siege
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007fe5f4dcb000)
    wget
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f23f02f0000)
    
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    6:52 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Should i try to reinstall using menu 4?
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,315
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    2:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    your server's DNS resolver isn't working properly make sure DNS servers are working in /etc/resolv.conf
    won't help if you server's DNS resolver isn't working first. You have removed the old custom zlib via nginx recompile, just didn't get to restart services, so probably easier to reboot server, then run centmin.sh menu option 4 and then manually check binaries/services have switched back to system zlib library via 2 commands mentioned in this thread.
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,315
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    2:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that before recompile of nginx ? if so that looks good to proceed with nginx recompile
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    6:52 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    It looks like a temp issue with the dns.....

    Should i retry the menu 4 now?
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,315
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    2:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup
     
  10. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    6:52 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    All good now :)

    Guess what?

    When i was trying to apply the fix OVH was updating my rack Network Maintenance and disconnect for a minute my server :whistle:

    Now i restart it and recompile and i verify with the above commands and all looks good :)

    Thank you !
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,315
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    2:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what timing :) glad to hear it's all updated fine now :)
     
  12. Revenge

    Revenge Active Member

    469
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +354
    Local Time:
    4:52 PM
    1.9.x
    10.1.x
    Eva, did you made benchmarks of Zlib 1.2.11 against Cloudflare Zlib 1.2.8?
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,315
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    2:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  14. Revenge

    Revenge Active Member

    469
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +354
    Local Time:
    4:52 PM
    1.9.x
    10.1.x
  15. buik

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

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    5:52 PM
    Nope.
    Cloudflare Zlib is quite useless as replacement system wide, because it is meant for web services. Secondly if you are replacing default CentOS Zlib with Cloudlare. A lot of base CentOS apps must be rebuild. Because most apps depends on Zlib. Also critical apps for example OpenSSL.
     
  16. eva2000

    eva2000 Administrator Staff Member

    54,315
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    2:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no no just nginx is meant to use custom zlib 1.2.11 or cloudflare zlib library and this is what this thread's zlib workaround fix is for. To ensure other services use system yum provided zlib and not the custom zlib 1.2.11 or cloudflare zlib library - hence why the service restarts are needed (or ccache recompile)
     
  17. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    5:52 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Updated centmin, recompile nginx to last version, restart server...
    output is this.
    Is it OK?

    Code (Text):
    [root@upcloud ~]# 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 => /lib64/libz.so.1 (0x00007f1e10c6b000)
    ccache
            libz.so.1 => /lib64/libz.so.1 (0x00007f2ac3234000)
    megacopy
            libz.so.1 => /lib64/libz.so.1 (0x00007fa5b6666000)
    megadf
            libz.so.1 => /lib64/libz.so.1 (0x00007f6b25447000)
    megadl
            libz.so.1 => /lib64/libz.so.1 (0x00007fe22dcdc000)
    megaget
            libz.so.1 => /lib64/libz.so.1 (0x00007fe9fa462000)
    megals
            libz.so.1 => /lib64/libz.so.1 (0x00007fba67c8b000)
    megamkdir
            libz.so.1 => /lib64/libz.so.1 (0x00007f15d3786000)
    megaput
            libz.so.1 => /lib64/libz.so.1 (0x00007f1b3e0df000)
    megareg
            libz.so.1 => /lib64/libz.so.1 (0x00007f7f382df000)
    megarm
            libz.so.1 => /lib64/libz.so.1 (0x00007fec4937b000)
    pcregrep
            libz.so.1 => /lib64/libz.so.1 (0x00007f0090766000)
    php
            libz.so.1 => /lib64/libz.so.1 (0x00007f830364a000)
    php-cgi
            libz.so.1 => /lib64/libz.so.1 (0x00007fd7bdb6a000)
    phpdbg
            libz.so.1 => /lib64/libz.so.1 (0x00007f0e1a190000)
    siege
            libz.so.1 => /lib64/libz.so.1 (0x00007f6f50150000)
    wget
            libz.so.1 => /lib64/libz.so.1 (0x00007fead8ad7000)
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,315
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    2:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup ok means all binaries in /usr/local/bin directory are picking up system yum provided zlib libraries
     
  19. rdan

    rdan Well-Known Member

    5,444
    1,407
    113
    May 25, 2014
    Ratings:
    +2,200
    Local Time:
    12:52 AM
    Mainline
    10.2
    Why is it this always happen/run with Menu 4 nginx Update?
    And always stock on this code for few minutes before proceeding:
    After Nginx recompile I still got this:
     
  20. rdan

    rdan Well-Known Member

    5,444
    1,407
    113
    May 25, 2014
    Ratings:
    +2,200
    Local Time:
    12:52 AM
    Mainline
    10.2
    Do I need to server reboot?