Want to subscribe to topics you're interested in?
Become a Member

Nginx Upgrade failed

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

  1. RoldanLT

    RoldanLT Well-Known Member

    3,821
    927
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,255
    Local Time:
    7:34 AM
    1.11
    10.2
  2. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    bad downloads probably due to disabling some usual default nginx modules i think
    Code (Text):
    NGX_DYNAMICCHECK nginx_configure
    /svr-setup/nginx-1.13.0
    
    nginx dynamic module support detected
    
    1013000
    1013000
    tar (child): /svr-setup/memc-nginx-module_v0.18.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/srcache-nginx-module_v0.31.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/set-misc-nginx-module_v0.31.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/nginx-develkit_v0.3.0.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/echo-nginx-module_v0.60.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/redis2-nginx-module_v0.14.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    1013000
    /usr/local/src/centminmod
    14
    18
    /svr-setup/redis2-nginx-module-0.14/src
    /svr-setup/memc-nginx-module-0.18/src
    1013000
    tar (child): /svr-setup/echo-nginx-module_v0.60.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    

    will double check
     
  3. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    also post contents for your custom persistent config file at /etc/centminmod/custom_config.inc so I can see what you disabled :)
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,821
    927
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,255
    Local Time:
    7:34 AM
    1.11
    10.2
    But it should not error since I disable it.
     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,821
    927
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,255
    Local Time:
    7:34 AM
    1.11
    10.2
    Code:
    NGINX_IPV='n' #NGINX IPV6 compile support for unattended mode only
    ENABLEMOTD='n'
    
    CUSTOMSERVERNAME='y'
    CUSTOMSERVERSTRING='nginx'
    
    AUTO_GITUPDATE='y'
    
    CLANG='n'
    
    PHP_PGO='y'
    
    NSD_DISABLED='y'              # when set to =y, NSD disabled by default with chkconfig off
    ###MEMCACHED_DISABLED='y'        # when set to =y,  Memcached server disabled by default via chkconfig off
    ###PUREFTPD_DISABLED='y'         # when set to =y, Pure-ftpd service disabled by default with chkconfig off
    
    ###NGXDYNAMIC_NGXPAGESPEED='y'
    
    NGINX_UPDATEMAINTENANCE='n'
    PHP_UPDATEMAINTENANCE='n'
    MARIADB_UPDATEMAINTENANCE='n'
    
    NSD_INSTALL='n'              # Install NSD (DNS Server)
    NGXMODULE_ALTORDER='n'       # nginx configure module ordering alternative order
    NGINX_DEBUG='n'              # Enable & reinstall Nginx debug log nginx.org/en/docs/debugging_log.html & wiki.nginx.org/Debugging
    NGINX_HTTP2='y'              # Nginx http/2 patch https://community.centminmod.com/threads/4127/
    NGINX_MODSECURITY=n          # modsecurity module support https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#Installation_for_NGINX
    NGINX_REALIP='n'
    NGINX_RDNS='n'               # https://github.com/flant/nginx-http-rdns
    NGINX_NJS='n'                # nginScript https://www.nginx.com/blog/launching-nginscript-and-looking-ahead/
    NGINX_GEOIP='n'              # Nginx GEOIP module install
    ###NGINX_SPDY='y'               # Nginx SPDY support
    NGINX_STUBSTATUS='n'         # http://nginx.org/en/docs/http/ngx_http_stub_status_module.html required for nginx statistics
    NGINX_SUB='n'                # http://nginx.org/en/docs/http/ngx_http_sub_module.html
    NGINX_ADDITION='n'           # http://nginx.org/en/docs/http/ngx_http_addition_module.html
    NGINX_IMAGEFILTER='n'        # http://nginx.org/en/docs/http/ngx_http_image_filter_module.html
    NGINX_PERL='n'               # http://nginx.org/en/docs/http/ngx_http_perl_module.html
    NGINX_XSLT='n'               # http://nginx.org/en/docs/http/ngx_http_xslt_module.html
    NGINX_CACHEPURGE='n'         # https://github.com/FRiCKLE/ngx_cache_purge/
    NGINX_ACCESSKEY='n'          #
    NGINX_HTTPCONCAT='n'         # https://github.com/alibaba/nginx-http-concat
    NGINX_THREADS='n'            # https://www.nginx.com/blog/thread-pools-boost-performance-9x/
    NGINX_STREAM='n'             # http://nginx.org/en/docs/stream/ngx_stream_core_module.html
    NGINX_STREAMGEOIP='n'        # nginx 1.11.3+ option http://hg.nginx.org/nginx/rev/558db057adaa
    NGINX_STREAMREALIP='n'       # nginx 1.11.4+ option http://hg.nginx.org/nginx/rev/9cac11efb205
    NGINX_STREAMSSLPREREAD='n'   # nginx 1.11.5+ option https://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html
    NGINX_RTMP='n'               # Nginx RTMP Module support https://github.com/arut/nginx-rtmp-module
    NGINX_FLV='n'                # http://nginx.org/en/docs/http/ngx_http_flv_module.html
    NGINX_MP4='n'                # Nginx MP4 Module http://nginx.org/en/docs/http/ngx_http_mp4_module.html
    NGINX_AUTHREQ='n'            # http://nginx.org/en/docs/http/ngx_http_auth_request_module.html
    NGINX_SECURELINK='n'         # http://nginx.org/en/docs/http/ngx_http_secure_link_module.html
    NGINX_FANCYINDEX='n'         # http://wiki.nginx.org/NgxFancyIndex
    NGINX_VHOSTSTATS='n'         # https://github.com/vozlt/nginx-module-vts
    NGINX_LIBBROTLI='n'          # https://github.com/google/ngx_brotli
    NGINX_LIBBROTLISTATIC='n'
    NGINX_PAGESPEED='n'          # Install ngx_pagespeed
    NGINX_PAGESPEEDGITMASTER='n' # Install ngx_pagespeed from official github master instead 
    NGINX_PASSENGER='n'          # Install Phusion Passenger requires installing addons/passenger.sh before hand
    NGINX_WEBDAV='n'             # Nginx WebDAV and nginx-dav-ext-module
    NGINX_HTTPREDIS='n'          # Nginx redis http://wiki.nginx.org/HttpRedisModule
    ORESTY_HEADERSMORE='n'       # openresty headers more https://github.com/openresty/headers-more-nginx-module
    ###ORESTY_HEADERSMOREGIT='n'    # use git master instead of version specific
    NGINX_STICKY='n'             # nginx sticky module https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng
    NGINX_UPSTREAMCHECK='n'      # nginx upstream check https://github.com/yaoweibin/nginx_upstream_check_module
    NGINX_OPENRESTY='n'          # Agentzh's openresty Nginx modules
    ORESTY_SETMISCGIT='n'        # use git master instead of version specific
    ORESTY_ECHOGIT='n'           # use git master instead of version specific
    
    LUAJIT_GITINSTALL='n'        # opt to install luajit 2.1 from dev branch http://repo.or.cz/w/luajit-2.0.git/shortlog/refs/heads/v2.1
    
    ORESTY_LUANGINX='n'             # enable or disable or ORESTY_LUA* nginx modules below
    NGX_LUAUPSTREAM='n'                # disable https://github.com/openresty/lua-upstream-nginx-module
    NGX_LUAUPSTREAMCACHE='n'           # disable https://github.com/cloudflare/lua-upstream-cache-nginx-module
    
    PHPGEOIP_ALWAYS='n'          # GeoIP php extension is always reinstalled on php recompiles
    PHPDEBUGMODE='n'             # --enable-debug PHP compile flag
    PHPFINFO='n'                 # Disable or Enable PHP File Info extension
    PHPPCNTL='n'                 # Disable or Enable PHP Process Control extension
    PHPINTL='n'                  # Disable or Enable PHP intl extension
    PHPRECODE=n                  # Disable or Enable PHP Recode extension
    PHPSNMP='n'                  # Disable or Enable PHP SNMP extension
    PHPIMAGICK='y'               # Disable or Enable PHP ImagicK extension
    PHPMAILPARSE='n'             # Disable or Enable PHP mailparse extension
    PHPIONCUBE='n'               # Disable or Enable Ioncube Loader via addons/ioncube.sh
    POSTGRESQL='n'               # set to =y to install PostgreSQL 9.4 server, devel packages and pdo-pgsql PHP extension
    
    NGINX_VHOSTSSL='n'           # enable centmin.sh menu 2 prompt to create self signed SSL vhost 2nd vhost conf
    NGINXBACKUP='n'
    
    MEMCACHED_INSTALL='n'         # Install Memcached
    PHPREDIS='n'                # redis PHP extension install
    PHPMONGODB='n'              # MongoDB PHP extension install
    PHP_FTPEXT='n'              # ftp PHP extension
    PHP_MEMCACHE='y'            # memcache PHP extension
    PHP_MEMCACHED='y'           # memcached PHP extension
    PHP_VERSION='7.1.2'        # Use this version of PHP
    ###IGBINARY_INSTALL='n'        # install or not igbinary support for APC and Memcached server
    ZOPCACHEDFT='y'
    PHP_EXTRAOPTS=""
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    did you also delete or wipe /svr-setup any time ?
     
  7. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    nginx upgrade log also has
    Code (Text):
    configuring additional modules
    adding module in ../
    ./configure: error: no ..//config was found
    
    Wed Apr 26 17:19:19 UTC 2017
    Success: Nginx configure ok
    

    so could be directly related to /svr-setup/nginx-1.13.0 directory contents
    what does the directory listing say
    Code (Text):
    ls -lah /svr-setup/nginx-1.13.0
    
     
  8. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    think i found the clue in nginx upgrade log of yours
    Code (Text):
    patching echo nginx module for nginx 1.11.11+
    inc/nginx_patch.inc: line 51: popd: directory stack empty
    

    that line 51 in inc/nginx_patch.inc is for patch fixing lua nginx module for nginx 1.11.11+ and higher compatibility but it changes into a no existing directory

    do you have any wordpress installs on same server using redis caching at nginx level ? as i added an override in inc/nginx_configure.inc to set NGINX_OPENRESTY='y' if there's a directory called /usr/local/nginx/conf/wpincludes created + if that directory has wpinclude files with reference to rediscache settings as redis cache at nginx level for wordpress requires NGINX_OPENRESTY='y' enabled to install OpenResty redis/redis2 nginx related modules including OpenRest set-misc and echo nginx modules.
    Code (Text):
      # override NGINX_OPENRESTY='n' if detected redis cache at nginx
      # level as it requires NGINX_OPENRESTY='y' for dependent nginx
      # modules provided by openresty
      if [[ -d /usr/local/nginx/conf/wpincludes && "$(find /usr/local/nginx/conf/wpincludes -type f -name "rediscache.*" >/dev/null 2>&1; echo $?)" -eq '0'  ]]; then
          NGINX_OPENRESTY='y'
      fi
    

    what happens if you set in persistent config file /etc/centminmod/custom_config.inc
    Code (Text):
    NGINX_OPENRESTY='y'
    

    and recompile nginx via centmin.sh menu option 4

    sort of makes sense as all the reported missing tarballs are related to OpenResty nginx module downloads
    Code (Text):
    ginx dynamic module support detected
    
    1013000
    1013000
    tar (child): /svr-setup/memc-nginx-module_v0.18.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/srcache-nginx-module_v0.31.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/set-misc-nginx-module_v0.31.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/nginx-develkit_v0.3.0.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/echo-nginx-module_v0.60.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/redis2-nginx-module_v0.14.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    1013000
    


    strange is that inc/nginx_upgrade.inc routine on lines 281-310 centminmod/nginx_upgrade.inc at b97372d1862ac5835d325330ea6c484df8cc5815 · centminmod/centminmod · GitHub should of accounted for this anyway and re-downloaded the missing tarballs if detected missing via openrestytarball download function

    it could be the originally mentioned inc/nginx_patch.inc routine's pushd (change directory) ended up in a non-existent directory so when you popd returned to previous directory listing, it wasn't at the right place to detect OpenResty nginx module's directory names, hence the no config errors

    so going to add to 123.09beta01 a fix to double check if the directory for OpenResty nginx modules actually exists befor doing inc/nginx_patch.inc routines' change of directory pushd/popd commands so you don't end up in a returned directory (popd) that isn't the correct one.

    what does your /svr-setup downloads directory listing look like ?
    Code (Text):
    ls -alh /svr-setup
    
     
    Last edited: Apr 27, 2017
    • Winner Winner x 1
  9. RoldanLT

    RoldanLT Well-Known Member

    3,821
    927
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,255
    Local Time:
    7:34 AM
    1.11
    10.2
    I always do this.
    In all my server.
     
  10. RoldanLT

    RoldanLT Well-Known Member

    3,821
    927
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,255
    Local Time:
    7:34 AM
    1.11
    10.2
    Not relevant now because it works now after I remove my custom_config.inc.

    Several months Yes, but it was disabled now.
     
  11. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,744
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    if you have the disk space, it shouldn't be necessary as 123.09beta01 auto purges older tarball/directories keeping just the last previous version and current version on nginx and php upgrade routines. Keeping previous version is just a backup in case the official download sites are down and you need to downgrade ASAP. If you purge all downloads, you have nothing to fall back on if official download sites are down or having issues ;) i.e.. if official site is down, you can't download either newer version or previous version, so you are left with no nginx or php versions in /svr-setup to use if you need to recompile nginx or php :)
     
    • Like Like x 1
    • Agree Agree x 1