Discover Centmin Mod today
Register Now

Upgrade Upgrade nginx 1.11.8 > 1.11.13 error

Discussion in 'Install & Upgrades or Pre-Install Questions' started by YuchiRO, Apr 5, 2017.

  1. YuchiRO

    YuchiRO Member

    93
    6
    8
    Jan 12, 2015
    Ratings:
    +8
    Local Time:
    7:23 AM
    5.5.4
    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.11.8
    • PHP Version Installed:7.0.15
    • MariaDB MySQL Version Installed: i.e. 10.0.21 or 10.1.21
    • When was last time updated Centmin Mod code base ? :run centmin.sh menu option 23 submenu option 2
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:

      cat /etc/centminmod/custom_config.inc

      Code:
      NGINX_PAGESPEED=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='y'
      NGXDYNAMIC_BROTLI='y'
      PHPMSSQL='y'
      PHP_PGO='y'
      PHP_PGO_CENTOSSIX='y'
      NGINX_DEVTOOLSETGCC='y'
      GENERAL_DEVTOOLSETGCC='y'
      CLANG='n'
      LIBRESSL_SWITCH='n'
      

      Post output in CODE tags.
    Code:
    cd ../openssl-1.0.2k \
    && if [ -f Makefile ]; then make clean; fi \
    && ./config --prefix=/svr-setup/nginx-1.11.13/../openssl-1.0.2k/.openssl no-shared  \
    && make \
    && make install_sw LIBDIR=lib
    /bin/sh: line 2: ./config: No such file or directory
    make[1]: *** [../openssl-1.0.2k/.openssl/include/openssl/ssl.h] Error 127
    make[1]: Leaving directory `/svr-setup/nginx-1.11.13'
    make: *** [build] Error 2
    
    real    0m3.430s
    user    0m1.619s
    sys     0m2.256s
    
    Tue Apr  4 16:18:19 UTC 2017
    Error: 2, Nginx make failed
    
    report errors on the forums at community.centminmod.com/forums/8/
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,835
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    10:23 AM
    Nginx 1.13.x
    MariaDB 5.5
    disk free space ample ?

    working fine here
    ensure you updated Centmin Mod 123.09beta01 to latest code first. Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
     
  3. YuchiRO

    YuchiRO Member

    93
    6
    8
    Jan 12, 2015
    Ratings:
    +8
    Local Time:
    7:23 AM
    5.5.4
    Code:
    # df -h
    Filesystem           Size  Used Avail Use% Mounted on
    /dev/mapper/vg-root  408G   74G  314G  19% /
    devtmpfs              32G     0   32G   0% /dev
    tmpfs                 32G     0   32G   0% /dev/shm
    tmpfs                 32G  9.0M   32G   1% /run
    tmpfs                 32G     0   32G   0% /sys/fs/cgroup
    /dev/sda1            243M  204M   27M  89% /boot
    /dev/mapper/vg-tmp   976M   24M  886M   3% /tmp
    tmpfs                6.3G     0  6.3G   0% /run/user/0
    
    Yes, i use option 23 to update to lasted and try upgrade nginx with option 4 again but fail :(

    Code:
     nginx -V
    nginx version: nginx/1.11.8
    built by gcc 5.2.1 20150902 (Red Hat 5.2.1-2) (GCC)
    built with OpenSSL 1.0.2j  26 Sep 2016
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-ljemalloc -lpcre -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=native -g -O3 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module --with-http_secure_link_module --add-module=../nginx-module-vts --with-libatomic --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --add-dynamic-module=../ngx_pagespeed-1.12.34.2-beta --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=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.60 --add-dynamic-module=../redis2-nginx-module-0.13 --add-module=../ngx_http_redis-0.3.7 --add-module=../lua-nginx-module-0.10.7 --add-dynamic-module=../memc-nginx-module-0.17 --add-dynamic-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.32 --with-pcre=../pcre-8.39 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.0.2j
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,835
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    10:23 AM
    Nginx 1.13.x
    MariaDB 5.5
    try deleting from /svr-setup the pcre and openssl directory and tarball files before running centmin.sh menu option 4

    you can also use git pull to update centmin mod code like centmin.sh menu option 23 submenu option 4
    Code (Text):
    cd /svr-setup
    rm -rf openssl* pcre*
    cd /usr/local/src/centminmod
    git stash
    git pull
    ./centmin.sh
    
     
  5. YuchiRO

    YuchiRO Member

    93
    6
    8
    Jan 12, 2015
    Ratings:
    +8
    Local Time:
    7:23 AM
    5.5.4
    try deleting but same isssue, cant upgrade to 1.11.13

    Code:
    IsMK1MF=0
    unable to read Makefile.org:No such file or directory
    make[1]: *** [../openssl-1.0.2k/.openssl/include/openssl/ssl.h] Error 2
    make[1]: Leaving directory `/svr-setup/nginx-1.11.13'
    make: *** [build] Error 2
    
    real    0m3.491s
    user    0m1.665s
    sys     0m2.308s
    
    Wed Apr  5 01:17:44 UTC 2017
    Error: 2, Nginx make failed
    
    report errors on the forums at community.centminmod.com/forums/8/
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,835
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    10:23 AM
    Nginx 1.13.x
    MariaDB 5.5
    To troubleshoot, you need to check the the nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log
     
  7. YuchiRO

    YuchiRO Member

    93
    6
    8
    Jan 12, 2015
    Ratings:
    +8
    Local Time:
    7:23 AM
    5.5.4
  8. eva2000

    eva2000 Administrator Staff Member

    30,835
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    10:23 AM
    Nginx 1.13.x
    MariaDB 5.5
    the downloaded openssl tarball tar.gz file is corrupt or something
    Code (Text):
                / ___| ___   _ __ ___   _ __  (_)| |(_) _ __    __ _
                | |    / _ \ | '_ ` _ \ | '_ \ | || || || '_ \  / _` |
                | |___| (_) || | | | | || |_) || || || || | | || (_| |
                 \____|\___/ |_| |_| |_|| .__/ |_||_||_||_| |_| \__, |
                                        |_|                     |___/
                     ___                       ____  ____   _     
                    / _ \  _ __    ___  _ __  / ___|/ ___| | |   
                   | | | || '_ \  / _ \| '_ \ \___ \\___ \ | |   
                   | |_| || |_) ||  __/| | | | ___) |___) || |___
                    \___/ | .__/  \___||_| |_||____/|____/ |_____|
                          |_|                                     
    Compiling OpenSSL...
    
    gzip: stdin: invalid compressed data--format violated
    tar: Skipping to next header
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now
    make: *** No rule to make target `clean'.  Stop.
    

    removing the tarball and directory prior to centmin.sh menu option 4 runs may fix it
    Code (Text):
    cd /svr-setup
    rm -rf openssl* pcre*
    ls -lah /svr-setup | grep openssl
    
     
  9. YuchiRO

    YuchiRO Member

    93
    6
    8
    Jan 12, 2015
    Ratings:
    +8
    Local Time:
    7:23 AM
    5.5.4
    Thanks. update 1.11.13 :)

    Have a good day eva2000
     
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

    30,835
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    10:23 AM
    Nginx 1.13.x
    MariaDB 5.5
    excellent :)