Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Nginx upgrade problem

Discussion in 'Install & Upgrades or Pre-Install Questions' started by dce, Jun 9, 2020.

  1. dce

    dce New Member

    24
    6
    3
    Feb 21, 2018
    Ratings:
    +6
    Local Time:
    6:22 AM
    CentOS 7 64bit
    Nginx Version 1.17.9
    PHP Version Installed: 5.6.37
    centmin is on the latest update.

    Hello
    I am attempting to upgrade Nginx Version 1.17.9 to the latest version 1.19.0 using option 4 in centmin.

    The compile seems to complete successfully but on exit centmin still shows version 1.17.9 with version 1.19.0 available for upgrade. If I run Nginx -v, it shows Nginx is still version 1.17.9. I have done the compile twice, but I am still stuck on Version 1.17.9.

    What could be the problem?

    Thanks.
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,468
    10,319
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,005
    Local Time:
    8:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  3. dce

    dce New Member

    24
    6
    3
    Feb 21, 2018
    Ratings:
    +6
    Local Time:
    6:22 AM
    Hello,

    I looked into it further following your advice.

    Centmin is up to date. The log shows make is failing. below are some of the errors the log file shows. What could be causing the error? Thanks in advance.


    checking for require defined symbols (--require-defined) ... not found
    checking for require defined symbols fallback (--undefined) ... found
    + ngx_http_lua_module was configured
    adding module in ../headers-more-nginx-module-0.33
    + ngx_http_headers_more_filter_module was configured
    checking for PCRE library ... found
    checking for PCRE JIT support ... found
    checking for GD library ... found
    checking for GD WebP support ... not found
    checking for GeoIP library ... found
    checking for GeoIP IPv6 support ... found
    checking for atomic_ops library ... not found

    ./configure: error: libatomic_ops library was not found.


    make: *** No rule to make target `build', needed by `default'. Stop.

    real 0m0.003s
    user 0m0.002s
    sys 0m0.000s

    Tue Jun 9 23:36:25 EDT 2020
    Error: 2, Nginx make failed
     
  4. brijendrasial

    brijendrasial Active Member

    126
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    3:52 PM
    1.13.9
    10.0.22-MariaDB
    what is output of

    Code:
    yum list installed | grep libatomic_ops-devel
    if nothing is found try to install

    Code:
    yum install libatomic_ops-devel -y
    Now try to compile nginx again.
     
  5. eva2000

    eva2000 Administrator Staff Member

    45,468
    10,319
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,005
    Local Time:
    8:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    full nginx log would be useful for context

    and info from Install - Nginx - How to troubleshoot Nginx installs/upgrades ?

    Please provide any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 32bit or 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.08stable or 123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • PHP Version Installed: i.e. 5.6.37, 7.0.31, 7.1.21, 7.2.9
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.
     
  6. dce

    dce New Member

    24
    6
    3
    Feb 21, 2018
    Ratings:
    +6
    Local Time:
    6:22 AM
    Thanks Eva2000 and brijendrasial

    Ran: yum list installed | grep libatomic_ops-devel
    Result: libatomic_ops-devel.x86_64 7.2d-7.el7 @base

    So it looks like the library is installed.

    Here are the other details requested.
    OS version: CentOS 7 64bit

    Centmin version: 123.09beta01 (always updated as soon as I see an update)

    Nginx Version Installed: 1.17.9 (tried going directly to 1.19.0. When that did not work, I tried updating to the next direct update 1.17.10. Still the upgrade failed.

    PHP Version Installed: 5.6.40

    MariaDB Version: 10.1.45-MariaDB MariaDB Server

    Last time updated Centmin Mod code base: ran cmupdate 10 June, 2am EST. Result shows "Already up-to-date".

    Persistent Config Entries:

    Code (Text):
    CLANG='n'
    DEVTOOLSETSIX='y'
    NGINX_DEVTOOLSETGCC='y'
    ORESTY_LUANGINX='y'
    NGXDYNAMIC_LUA='y'
    NGXDYNAMIC_DEVELKIT='y'
    NGINX_HPACK='y'
    CLOUDFLARE_ZLIB='y'
    LIBRESSL_SWITCH='n'
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED='y'
    MARCH_TARGETNATIVE='n'
    LETSENCRYPT_DETECT='y'
    AUDITD_ENABLE='y'
    PUREFTPD_DISABLED=y
    


    This server has run very reliably for over 2 years. It hosts a bunch of legacy Drupal 7 websites.

    Thanks for the help.
     
    Last edited: Jun 11, 2020
  7. eva2000

    eva2000 Administrator Staff Member

    45,468
    10,319
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,005
    Local Time:
    8:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    try removing these 2 from persistent config file
    Code (Text):
    CLANG='n'
    DEVTOOLSETSIX='y'
    
     
  8. dce

    dce New Member

    24
    6
    3
    Feb 21, 2018
    Ratings:
    +6
    Local Time:
    6:22 AM
    Thanks Eva2000. Quick question. I have to recompile PHP for some backported security fixes. If I have to do both a ngnix upgrade and a php recompile, as a rule of thumb, which job should be executed first (also given my present situation)?
     
  9. dce

    dce New Member

    24
    6
    3
    Feb 21, 2018
    Ratings:
    +6
    Local Time:
    6:22 AM
    Hello Eva2000, I tried your suggestion and the upgrade fails with the same error. Nginx make failed.


    Wed Jun 10 22:22:14 EDT 2020
    Success: Nginx configure ok

    make: *** No rule to make target `build', needed by `default'. Stop.

    real 0m0.003s
    user 0m0.002s
    sys 0m0.000s

    Wed Jun 10 22:22:14 EDT 2020
    Error: 2, Nginx make failed
     
  10. eva2000

    eva2000 Administrator Staff Member

    45,468
    10,319
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,005
    Local Time:
    8:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  11. dce

    dce New Member

    24
    6
    3
    Feb 21, 2018
    Ratings:
    +6
    Local Time:
    6:22 AM
  12. dce

    dce New Member

    24
    6
    3
    Feb 21, 2018
    Ratings:
    +6
    Local Time:
    6:22 AM
    Hello eva2000, did you get a chance to check the nginx upgrade log to see what could be the problem with the upgrade?

    I see there is another nginx upgrade problem thread that opened just recently. I have the same config error in my log.

    ./configure: error: libatomic_ops library was not found.

    here is the output for: yum history list libatomic_ops-devel

    Code:
    yum history list libatomic_ops-devel
    Loaded plugins: fastestmirror, priorities, versionlock
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
         9 | -y install virt-what pyt | 2018-02-13 01:25 | Install        |  280 
    I uploaded my log to gist.github.com

    centmin nginx compile problem due to make failure

    If you need me to do anything on my end to aid troubleshooting, just let me know.

    Regards,
     
    Last edited: Jun 13, 2020
  13. eva2000

    eva2000 Administrator Staff Member

    45,468
    10,319
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,005
    Local Time:
    8:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    log not revealing much, try changing persistent config file

    from
    Code (Text):
    CLANG='n'
    DEVTOOLSETSIX='y'
    NGINX_DEVTOOLSETGCC='y'
    ORESTY_LUANGINX='y'
    NGXDYNAMIC_LUA='y'
    NGXDYNAMIC_DEVELKIT='y'
    NGINX_HPACK='y'
    CLOUDFLARE_ZLIB='y'
    LIBRESSL_SWITCH='n'
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED='y'
    MARCH_TARGETNATIVE='n'
    LETSENCRYPT_DETECT='y'
    AUDITD_ENABLE='y'
    PUREFTPD_DISABLED=y
    

    to
    Code (Text):
    #ORESTY_LUANGINX='y'
    #NGXDYNAMIC_LUA='y'
    #NGINX_HPACK='y'
    #NGXDYNAMIC_NGXPAGESPEED='y'
    #NGINX_PAGESPEED='y'
    MARCH_TARGETNATIVE='n'
    LETSENCRYPT_DETECT='y'
    AUDITD_ENABLE='y'
    PUREFTPD_DISABLED=y
    

    and then run centmin.sh menu option 4
     
  14. brijendrasial

    brijendrasial Active Member

    126
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    3:52 PM
    1.13.9
    10.0.22-MariaDB
    I tried adding the path in inc/nginx_configure.inc

    Code:
    LIBATOMICOPT=" --with-libatomic"
    to

    Code:
    LIBATOMICOPT=" --with-libatomic=/usr/lib64"
    and installation went ahead. Its not taking the path
     
  15. eva2000

    eva2000 Administrator Staff Member

    45,468
    10,319
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,005
    Local Time:
    8:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    strange it shouldn't need defining the path as it hasn't needed to in years
     
  16. eva2000

    eva2000 Administrator Staff Member

    45,468
    10,319
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,005
    Local Time:
    8:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    no idea why all my servers don't need the path defined but while i am at it, decided to build a newer libatomic_ops custom RPM = 7.6.10 instead of CentOS 7 default 7.2d which is 6+ yrs older that you can try

    install it
    Code (Text):
    wget -4 https://centminmod.com/centminmodparts/libatomic_ops/centmin-libatomic_ops-7.6.10-1.el7.x86_64.rpm -O /svr-setup/centmin-libatomic_ops-7.6.10-1.el7.x86_64.rpm
    yum -y localinstall /svr-setup/centmin-libatomic_ops-7.6.10-1.el7.x86_64.rpm
    

    then try centmin.sh menu option 4
     
  17. brijendrasial

    brijendrasial Active Member

    126
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    3:52 PM
    1.13.9
    10.0.22-MariaDB
    I think we should wait for op to test it and confirm.
     
  18. brijendrasial

    brijendrasial Active Member

    126
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    3:52 PM
    1.13.9
    10.0.22-MariaDB
  19. brijendrasial

    brijendrasial Active Member

    126
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    3:52 PM
    1.13.9
    10.0.22-MariaDB
    here I see error

     
  20. dce

    dce New Member

    24
    6
    3
    Feb 21, 2018
    Ratings:
    +6
    Local Time:
    6:22 AM
    I will test late tonight (EST) when the server is not busy.... will take a disk snapshot and test. Thanks for your input.