Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Upgrading Nginx fails

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jcat, Dec 7, 2022.

  1. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    6:40 AM
    Upgrading to 1.22.1 or 1.23.2


    Code (Text):
    Check for old ngx_pagespeed master branch existence
    Check for missing nginx modules
    Download libressl-3.5.3.tar.gz ...
    Initializing download: [URL]https://centminmod.com/centminmodparts/libressl/libressl-3.5.3.tar.gz[/URL]
    HTTP/1.1 404 Not Found
    Error: libressl-3.5.3.tar.gz download failed.
    

    • CentOS Version: CentOS 7 64bi
    • Centmin Mod Version Installed: i.e. 124.00stable
    • Nginx Version Installed: 1.22.0
    • When was last time updated Centmin Mod code base ? : Current
    • Persistent Config: Do you have any persistent config file options set in

    • Code (Text):
      NGINX_STREAM=n               # http://nginx.org/en/docs/stream/ngx_stream_core_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_PAGESPEED=n            # Install ngx_pagespeed
      NGINX_PASSENGER='n'          # Install Phusion Passenger requires installing addons/passenger.sh before hand
      NGINX_WEBDAV=n               # Nginx WebDAV and nginx-dav-ext-module
      NGINX_UPSTREAMCHECK='n'      # nginx upstream check https://github.com/yaoweibin/nginx_upstream_check_module
      NGINX_OPENRESTY='n'            # Agentzh's openresty Nginx modules
      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
      GCCINTEL_PHP='n'              # enable PHP-FPM GCC compiler with Intel cpu optimizations
      
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,523
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    9:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Have you always used same persistent config settings in /etc/centminmod/custom_config.inc ? The missing LibreSSL 3.5.3 has been around for ages now and haven't run into it as an issue for nginx initial install or upgrades as nginx uses OpenSSL 1.1.1 by default in both 124.00stable and 130.00beta01

    To troubleshoot, you need to check the full 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

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    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

    Sharing Logs Via Dropbox



    You can also share the relevant required log files outlined above via Dropbox send via email feature at https://community.centminmod.com/threads/using-dropbox-to-share-server-files.22327/
     
  3. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    6:40 AM
    Oh woops, I didn't bother to check further as I just assumed that was the issue, my bad then, will dig further
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,523
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    9:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Either way I took care of the missing Libressl 3.5.3 download anyway so that won't show up :)