Learn about Centmin Mod LEMP Stack today
Register Now

Unable to upgrade Nginx from 1.15.9 to 1.17.0

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Simon Brown, Jun 25, 2019.

  1. Simon Brown

    Simon Brown Premium Member Premium Member

    60
    6
    8
    Feb 9, 2017
    Ratings:
    +18
    Local Time:
    5:17 AM
    1.11.9
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed:1.15.9
    • PHP Version Installed: 7.0.33
    • Persistent Config:
      Code (Text):
      NGXDYNAMIC_NGXPAGESPEED='n'
      NGINX_PAGESPEED='n'
      NGXDYNAMIC_BROTLI='y'
      NGINX_LIBBROTLI='y'
      LETSENCRYPT_DETECT='y'
      NGINX_VHOSTSTATS='n'
      MARCH_TARGETNATIVE='n'
      NGINX_VIDEO='y'
      PHP_PGO='y'
      ENABLEMOTD_CSFMSG='n'
      ENABLEMOTD_LINKSMSG='n'
      ENABLEMOTD='n'
      
      

    Hello, I have a dedicated server that's been running cintmin for a year or two.
    I've updated centmin to the latest version via cmupdate and also implemented all the YUM updates after exit from centmin.

    I'm seeing this output at the end of the log:
    Here's the end of the log.

    Code:
    nginx configure options (alternate ordering):
    ./configure --with-ld-opt="-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/lib -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib" --with-cc-opt="-I/usr/local/zlib-cf/include -I/usr/local/include -m64 -march=x86-64 -mavx -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mpclmul -msse4 -msse4.1 -msse4.2 -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -gsplit-dwarf" --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --build=250619-000352-centos7 --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-http_flv_module --with-http_mp4_module --add-module=../nginx-rtmp-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 --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream --with-stream_ssl_module --with-http_slice_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-module=../redis2-nginx-module-0.15 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --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.1c --with-openssl-opt="enable-ec_nistp_64_gcc_128 enable-tls1_3"
    checking for OS
     + Linux 3.10.0-862.3.2.el7.x86_64 x86_64
    checking for C compiler ... found
     + using GNU C compiler
     + gcc version: 8.2.1 20180905 (Red Hat 8.2.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 -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib" ... 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 ... not 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 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 ../nginx-rtmp-module
    ./configure: error: no ../nginx-rtmp-module/config was found
    
    Tue Jun 25 00:04:04 BST 2019
    Success: Nginx configure ok
    
                _   _         _                __  __         _         
               | \ | |  __ _ (_) _ __  __  __ |  \/  |  __ _ | | __ ___
               |  \| | / _` || || '_ \ \ \/ / | |\/| | / _` || |/ // _ \
               | |\  || (_| || || | | | >  <  | |  | || (_| ||   <|  __/
               |_| \_| \__, ||_||_| |_|/_/\_\ |_|  |_| \__,_||_|\_\\___|
                       |___/                                           
    make: *** No rule to make target `build', needed by `default'.  Stop.
    
    real    0m0.002s
    user    0m0.000s
    sys    0m0.002s
    
    Tue Jun 25 00:04:04 BST 2019
    Error: 2, Nginx make failed
    
    report errors on the forums at community.centminmod.com/forums/8/
    
                  total        used        free      shared  buff/cache   available
    Mem:          15855        6938         778         887        8138        7628
    Swap:          1023         379         644
    
    Filesystem                  Type      Size  Used Avail Use% Mounted on
    /dev/mapper/vg_main-lv_root ext4      108G   62G   41G  61% /
    devtmpfs                    devtmpfs  7.8G     0  7.8G   0% /dev
    tmpfs                       tmpfs     7.8G  4.0K  7.8G   1% /dev/shm
    tmpfs                       tmpfs     7.8G  736M  7.1G  10% /run
    tmpfs                       tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
    /dev/sda1                   ext4      488M  215M  238M  48% /boot
    tmpfs                       tmpfs     1.6G     0  1.6G   0% /run/user/0
    
    CPU: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (8)
    
    version increment history
    123.09beta01.b193 #Mon Jun 24 23:29:50 BST 2019
    123.09beta01.b193 #Mon Jun 24 23:31:16 BST 2019
    123.09beta01.b193 #Mon Jun 24 23:46:00 BST 2019
    123.09beta01.b193 #Mon Jun 24 23:46:50 BST 2019
    123.09beta01.b193 #Tue Jun 25 00:00:22 BST 2019
    
    last Centmin Mod local git commit entry
    /usr/local/src/centminmod /svr-setup/nginx-1.17.0 ~
    
    08affb6 George Liu Tue, 25 Jun 2019 01:54:39 +1000
    add python_centossix_sclfix routine in 123.09beta01
    
    13    0    inc/cpcheck.inc
     1 file changed, 13 insertions(+)
    /svr-setup/nginx-1.17.0 ~
    
    log files saved at /root/centminlogs
    -rw-r--r-- 1 root root  13K Jun 25 00:02 centminmod_123.09beta01.b193_250619-000018_yuminstall_centos7.log
    -rw-r--r-- 1 root root  61K Jun 25 00:02 centminmod_yumtimes_250619-000018.log
    -rw-r--r-- 1 root root   37 Jun 25 00:02 centminmod_profiletimes_250619-000018.log
    -rw-r--r-- 1 root root    0 Jun 25 00:03 patch_opensslpatches_250619-000018.log
    -rw-r--r-- 1 root root   43 Jun 25 00:03 centminmod_opensslinstalltime_250619-000018.log
    -rw-r--r-- 1 root root  158 Jun 25 00:03 patch_patchnginx_250619-000018.log
    -rw-r--r-- 1 root root 6.2K Jun 25 00:04 nginx-configure-250619-000018.log
    -rw-r--r-- 1 root root 684K Jun 25 00:04 centminmod_123.09beta01.b193_250619-000018_nginx_upgrade.log
    
    Total Nginx Upgrade Time: 217.887431403 seconds
    
    Is there anything obvious I'm missing here? :)

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:17 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    As per Install - Nginx - How to troubleshoot Nginx installs/upgrades thanks for sharing part of the log, the full log would help for nginx upgrade log inspection but AFAIK, it's due to
    Code (Text):
    adding module in ../nginx-rtmp-module
    ./configure: error: no ../nginx-rtmp-module/config was found
    

    nginx nginx-rtmp-module module failure or not being downloaded (full log might have clues whether download failure), this is when NGINX_VIDEO='y' is set in persistent config file /etc/centminmod/custom_config.inc which isn't enabled by default usually

    example in working nginx 1.17.0 update via centmin.sh menu option 4 the nginx_upgrade.log would show the following

    confirming nginx-rtmp-module download via git clone
    Code (Text):
    download nginx-rtmp-module from github
    /svr-setup /svr-setup/nginx-1.17.0
    Cloning into 'nginx-rtmp-module'...
    
    real    0m0.337s
    user    0m0.139s
    sys     0m0.024s
    

    configuration of nginx-rtmp-module working
    Code (Text):
    configuring additional modules
    adding module in ../nginx-rtmp-module
     + ngx_rtmp_module was configured
    adding module in ../ngx_cache_purge-2.5
     + ngx_http_cache_purge_module was configured
    adding module in ../redis2-nginx-module-0.15
     + ngx_http_redis2_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.7
    

     
  3. Simon Brown

    Simon Brown Premium Member Premium Member

    60
    6
    8
    Feb 9, 2017
    Ratings:
    +18
    Local Time:
    5:17 AM
    1.11.9
    Hi, thanks for the super fast reply!
    Looks like it's unable to download rtmp: "github.com[0: 140.82.118.4]: errno=Connection refused"

    Code:
    NGX_DYNAMICCHECK nginx_configure
    /svr-setup/nginx-1.17.0
    
    nginx dynamic module support detected
    
    1017000
    1017000
    
    download nginx-rtmp-module from github
    /svr-setup /svr-setup/nginx-1.17.0 ~
    fatal: unable to connect to github.com:
    github.com[0: 140.82.118.4]: errno=Connection refused
    
    Cloning into 'nginx-rtmp-module'...
    
    real    0m0.005s
    user    0m0.000s
    sys    0m0.003s
    
    /svr-setup/nginx-1.17.0 ~
    1017000
    /usr/local/src/centminmod
    15
    18
    /svr-setup/redis2-nginx-module-0.15/src
    /svr-setup/memc-nginx-module-0.18/src
    1017000
    /usr/lib64/libatomic_ops.a found
    
    I'll try again later.
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:17 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah no reported incidents on github status page though GitHub Status
     
  5. Simon Brown

    Simon Brown Premium Member Premium Member

    60
    6
    8
    Feb 9, 2017
    Ratings:
    +18
    Local Time:
    5:17 AM
    1.11.9
    Really appreciate your super fast and very detailed replies. I have no idea how you have the time to manage cenminmod and the forums at the same time. I'll be purchasing the forum membership again this week :)