Welcome to Centmin Mod Community
Register Now

Nginx Server down shortly after NGINX 1.17.0 upgradee

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Prailone, Jun 18, 2019.

  1. Prailone

    Prailone New Member

    2
    0
    1
    Nov 4, 2018
    Ratings:
    +0
    Local Time:
    6:41 PM
    Nginx 1.15.3
    MariaDB 15.1
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.08stable
    • Nginx Version Installed: 1.15.2
    • PHP Version Installed: 7.3
    • MariaDB MySQL Version Installed: i.e. 10.1.40
    • When was last time updated Centmin Mod code base ? : today
    • Persistent Config:
      Code (Text):
      LETSENCRYPT_DETECT='y'
      

      Post output in CODE tags.

    Not sure what happened, but a few days after I updated Nginx to 1.17.0 my server locked up and required me to reboot it. After rebooting my wordpress site is offline and I can't figure out what is causing it. I've tried downgrading Nginx back to 1.15.2, but it is still not responding. The site is getting a Cloudflare 523 error. I've had no changes to my IP or DNS settings, so I doubt it is related to my Cloudflare configuration

     
  2. eva2000

    eva2000 Administrator Staff Member

    59,297
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,142
    Local Time:
    8:41 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    523 is cf not able to connect to centmin mod nginx origin Error 523: Origin is unreachable most likely

    did you run centmin.sh menu option 23 submenu option 1 and then submenu option 2 to ensure 123.08stable is on latest version ? before running centmin.sh menu option 4 for nginx 1.17.0 update ?

    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
     
  3. eva2000

    eva2000 Administrator Staff Member

    59,297
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,142
    Local Time:
    8:41 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    are you using 123.08stable stable as it doesn't fully support php versions past 7.0+, for php 7.1+ like 7.3, need 123.09beta01

    Install - How to find Centminmod version?