Join the community today
Register Now

Nginx unable to upgrade nginx

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

  1. xenbiarritz

    xenbiarritz Member

    39
    3
    8
    May 7, 2017
    Ratings:
    +3
    Local Time:
    2:58 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed:123.09beta01
    • Nginx Version Installed: i.e. 1.17.7
    • PHP Version Installed: i.e. 7.4.7
    • When was last time updated Centmin Mod code base ? : today
    • 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):
      NGINX_PAGESPEED=n
      NGINX_ZLIBCUSTOM='y'
      ORESTY_LUANGINX=y
      NGINX_XSLT='n'
      NGINX_LIBBROTLI='y'
      NGXDYNAMIC_XSLT='n'
      NGXDYNAMIC_IMAGEFILTER='y'
      NGXDYNAMIC_GEOIP='y'
      NGXDYNAMIC_STREAM='y'
      NGXDYNAMIC_HEADERSMORE='y'
      NGXDYNAMIC_SETMISC='y'
      NGXDYNAMIC_ECHO='y'
      NGXDYNAMIC_SRCCACHE='y'
      NGXDYNAMIC_MEMC='y'
      NGXDYNAMIC_REDISTWO='y'
      NGXDYNAMIC_NGXPAGESPEED='n'
      NGXDYNAMIC_BROTLI='y'
      PHPMSSQL='y'
      PHP_PGO='y'
      PHP_PGO_CENTOSSIX='y'
      NGINX_DEVTOOLSETGCC='y'
      GENERAL_DEVTOOLSETGCC='y'
      CLANG='n'
      LIBRESSL_SWITCH='n'
      NGX_GSPLITDWARF='y'
      PHP_GSPLITDWARF='y'
      NGX_LDGOLD='y'
      ENABLE_MARIADBTENTWOUPGRADE='y'
      ENABLE_MARIADBTENTHREEUPGRADE='y'
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
      PHP_ARGON='y'
      
      
      

      Hi
    i am unable to upgrade nginx 1.17.7 to 1.19.0

    here is the log
    Code:
    ./configure --with-ld-opt="-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/lib -ljemalloc -lpcre -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib -flto=2 -fuse-ld=gold" --with-cc-opt="-I/usr/local/zlib-cf/include -I/usr/local/include -m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto=2 -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wno-cast-function-type -Wno-format-extra-args -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations" --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --build=110620-212959-centos7-kvm-6cb7a97-br-25f86f0 --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.5 --add-dynamic-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.32 --add-dynamic-module=../echo-nginx-module-0.61 --add-dynamic-module=../redis2-nginx-module-0.15 --add-module=../ngx_http_redis-0.3.7 --add-dynamic-module=../lua-nginx-module-0.10.16rc5 --add-module=../stream-lua-nginx-module-0.0.8rc3 --add-dynamic-module=../memc-nginx-module-0.18 --add-dynamic-module=../srcache-nginx-module-0.32rc1 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.1g --with-openssl-opt="enable-ec_nistp_64_gcc_128 enable-tls1_3 -fuse-ld=gold"
    checking for OS
     + Linux 3.10.0-1127.10.1.el7.x86_64 x86_64
    checking for C compiler ... found
     + using GNU C compiler
     + gcc version: 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)
    checking for gcc -pipe switch ... found
    checking for --with-ld-opt="-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/lib -ljemalloc -lpcre -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib -flto=2 -fuse-ld=gold" ... found
    checking for -Wl,-E switch ... found
    checking for gcc builtin atomic operations ... found
    checking for C99 variadic macros ... found
    checking for gcc variadic macros ... found
    checking for gcc builtin 64 bit byteswap ... found
    checking for unistd.h ... found
    checking for inttypes.h ... found
    checking for limits.h ... found
    checking for sys/filio.h ... not found
    checking for sys/param.h ... found
    checking for sys/mount.h ... found
    checking for sys/statvfs.h ... found
    checking for crypt.h ... found
    checking for Linux specific features
    checking for epoll ... found
    checking for EPOLLRDHUP ... found
    checking for EPOLLEXCLUSIVE ... not found
    checking for O_PATH ... found
    checking for sendfile() ... found
    checking for sendfile64() ... found
    checking for sys/prctl.h ... found
    checking for prctl(PR_SET_DUMPABLE) ... found
    checking for prctl(PR_SET_KEEPCAPS) ... found
    checking for capabilities ... found
    checking for crypt_r() ... found
    checking for sys/vfs.h ... found
    checking for nobody group ... found
    checking for poll() ... found
    checking for /dev/poll ... not found
    checking for kqueue ... not found
    checking for crypt() ... not found
    checking for crypt() in libcrypt ... found
    checking for F_READAHEAD ... not found
    checking for posix_fadvise() ... found
    checking for O_DIRECT ... found
    checking for F_NOCACHE ... not found
    checking for directio() ... not found
    checking for statfs() ... found
    checking for statvfs() ... found
    checking for dlopen() ... not found
    checking for dlopen() in libdl ... found
    checking for sched_yield() ... found
    checking for sched_setaffinity() ... found
    checking for SO_SETFIB ... not found
    checking for SO_REUSEPORT ... found
    checking for SO_ACCEPTFILTER ... not found
    checking for SO_BINDANY ... not found
    checking for IP_TRANSPARENT ... found
    checking for IP_BINDANY ... not found
    checking for IP_BIND_ADDRESS_NO_PORT ... found
    checking for IP_RECVDSTADDR ... not found
    checking for IP_SENDSRCADDR ... not found
    checking for IP_PKTINFO ... found
    checking for IPV6_RECVPKTINFO ... found
    checking for TCP_DEFER_ACCEPT ... found
    checking for TCP_KEEPIDLE ... found
    checking for TCP_FASTOPEN ... found
    checking for TCP_INFO ... found
    checking for accept4() ... found
    checking for eventfd() ... found
    checking for int size ... 4 bytes
    checking for long size ... 8 bytes
    checking for long long size ... 8 bytes
    checking for void * size ... 8 bytes
    checking for uint32_t ... found
    checking for uint64_t ... found
    checking for sig_atomic_t ... found
    checking for sig_atomic_t size ... 4 bytes
    checking for socklen_t ... found
    checking for in_addr_t ... found
    checking for in_port_t ... found
    checking for rlim_t ... found
    checking for uintptr_t ... uintptr_t found
    checking for system byte ordering ... little endian
    checking for size_t size ... 8 bytes
    checking for off_t size ... 8 bytes
    checking for time_t size ... 8 bytes
    checking for AF_INET6 ... found
    checking for setproctitle() ... not found
    checking for pread() ... found
    checking for pwrite() ... found
    checking for pwritev() ... found
    checking for sys_nerr ... found
    checking for localtime_r() ... found
    checking for clock_gettime(CLOCK_MONOTONIC) ... found
    checking for posix_memalign() ... found
    checking for memalign() ... found
    checking for mmap(MAP_ANON|MAP_SHARED) ... found
    checking for mmap("/dev/zero", MAP_SHARED) ... found
    checking for System V shared memory ... found
    checking for POSIX semaphores ... not found
    checking for POSIX semaphores in libpthread ... found
    checking for struct msghdr.msg_control ... found
    checking for ioctl(FIONBIO) ... found
    checking for ioctl(FIONREAD) ... found
    checking for struct tm.tm_gmtoff ... found
    checking for struct dirent.d_namlen ... not found
    checking for struct dirent.d_type ... found
    checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
    checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
    checking for openat(), fstatat() ... found
    checking for getaddrinfo() ... found
    configuring additional modules
    adding module in ../ngx_cache_purge-2.5
     + ngx_http_cache_purge_module was configured
    adding module in ../ngx_http_redis-0.3.7
     + ngx_http_redis_module was configured
    adding module in ../stream-lua-nginx-module-0.0.8rc3
    checking for LuaJIT library in /usr/local/lib and /usr/local/include/luajit-2.1 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl) ... found
    checking for LuaJIT 2.x ... found
    checking for Lua language 5.1 ... found
    checking for LuaJIT has FFI ... found
    checking for export symbols by default (-E) ... found
    checking for export symbols by default (--export-all-symbols) ... not found
    checking for SO_PASSCRED ... found
    checking for SA_RESTART ... not found
    checking for require defined symbols (--require-defined) ... not found
     + ngx_stream_lua_module was configured
    configuring additional dynamic modules
    adding module in ../ngx_brotli
     + ngx_brotli was configured
    adding module in ../ngx-fancyindex-0.4.2
     + ngx_http_fancyindex_module was configured
    adding module in ../ngx_devel_kit-0.3.0
     + ngx_devel_kit was configured
    adding module in ../set-misc-nginx-module-0.32
    found ngx_devel_kit for ngx_set_misc; looks good.
     + ngx_http_set_misc_module was configured
    adding module in ../echo-nginx-module-0.61
     + ngx_http_echo_module was configured
    adding module in ../redis2-nginx-module-0.15
     + ngx_http_redis2_module was configured
    adding module in ../lua-nginx-module-0.10.16rc5
    checking for LuaJIT library in /usr/local/lib and /usr/local/include/luajit-2.1 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl) ... found
    checking for LuaJIT 2.x ... found
    checking for Lua language 5.1 ... found
    checking for LuaJIT has FFI ... found
    checking for export symbols by default (-E) ... found
    checking for export symbols by default (--export-all-symbols) ... not found
    checking for SO_PASSCRED ... found
    checking for SA_RESTART ... not found
    checking for malloc_trim ... found
    checking for pipe2 ... not found
    checking for signalfd ... found
    checking for execvpe ... found
    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 ../memc-nginx-module-0.18
     + ngx_http_memc_module was configured
    adding module in ../srcache-nginx-module-0.32rc1
     + ngx_http_srcache_filter_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.
    Code:
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    

    Thank you for your help
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,417
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,692
    Local Time:
    10:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    need full nginx upgrade log and info at Install - Nginx - How to troubleshoot Nginx installs/upgrades

    ensure you ran cmupdate to update to latest 123.09beta01 before running centmin.sh menu option 4

    also try removing persistent config settings for
    Code (Text):
    NGXDYNAMIC_XSLT='n'
    NGXDYNAMIC_IMAGEFILTER='y'
    NGXDYNAMIC_GEOIP='y'
    NGXDYNAMIC_STREAM='y'
    NGXDYNAMIC_HEADERSMORE='y'
    NGXDYNAMIC_SETMISC='y'
    NGXDYNAMIC_ECHO='y'
    NGXDYNAMIC_SRCCACHE='y'
    NGXDYNAMIC_MEMC='y'
    NGXDYNAMIC_REDISTWO='y'
    NGXDYNAMIC_NGXPAGESPEED='n'
    
    PHP_PGO_CENTOSSIX='y'
    NGINX_DEVTOOLSETGCC='y'
    GENERAL_DEVTOOLSETGCC='y'
    CLANG='n'
    LIBRESSL_SWITCH='n'
    NGX_GSPLITDWARF='y'
    PHP_GSPLITDWARF='y'
    NGX_LDGOLD='y'
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    44,417
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,692
    Local Time:
    10:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    also what is output for
    Code (Text):
    yum history list libatomic_ops-devel
     
  4. xenbiarritz

    xenbiarritz Member

    39
    3
    8
    May 7, 2017
    Ratings:
    +3
    Local Time:
    2:58 AM
    Thank you
    Centmin Mod local code is up to date at /usr/local/src/centminmod

    yum history list libatomic_ops-devel
    Code:
    Loaded plugins: fastestmirror, priorities, versionlock
    Repository varnishcache_varnish41 is listed more than once in the configuration
    Repository varnishcache_varnish41-source is listed more than once in the configuration
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
         5 | -y install virt-what gaw | 2017-03-06 00:07 | Install        |  241
    history list
    
    i removed this from persistant config and i still can't upgrade to 1.19.0
     
  5. xenbiarritz

    xenbiarritz Member

    39
    3
    8
    May 7, 2017
    Ratings:
    +3
    Local Time:
    2:58 AM
    i try to send you the log but it's to big for Pastebin
    and Gists said "your account as been flag" directly after i publish the log!

    is there another way? can i link the log in a text file?
     
    Last edited: Jun 12, 2020
  6. eva2000

    eva2000 Administrator Staff Member

    44,417
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,692
    Local Time:
    10:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    you might have same issue as @dce Nginx upgrade problem

     
  7. xenbiarritz

    xenbiarritz Member

    39
    3
    8
    May 7, 2017
    Ratings:
    +3
    Local Time:
    2:58 AM
    i found the solution
    backup website, reinstall centos and centminmod
    freshhh
     
  8. eva2000

    eva2000 Administrator Staff Member

    44,417
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,692
    Local Time:
    10:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    well that is one way, if that worked on same server, then something might have corrupted libatomic_ops library files ? who is your web host and what VPS plan are you on ?
     
  9. eva2000

    eva2000 Administrator Staff Member

    44,417
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,692
    Local Time:
    10:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    @xenbiarritz should be fixed in latest 123.09beta01 update

     
  10. xenbiarritz

    xenbiarritz Member

    39
    3
    8
    May 7, 2017
    Ratings:
    +3
    Local Time:
    2:58 AM
    thank you so much