Join the community today
Register Now

Upgrade Nginx Nginx failed to start after upgrade 1.15.9

Discussion in 'Install & Upgrades or Pre-Install Questions' started by YuchiRO, Mar 2, 2019.

  1. YuchiRO

    YuchiRO Member

    100
    6
    18
    Jan 12, 2015
    Ratings:
    +8
    Local Time:
    7:27 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: 1.15.9
    • PHP Version Installed: 7.0.31
    • MariaDB MySQL Version Installed: i.e. 10.0.x
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command

    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.
    After upgrade Centmin to 123.09beta01, i upgrade Nginx to lasted version from 1.12.0


    i got other warning about psutil after upgrade Centmin.

     
    Last edited: Mar 2, 2019
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:27 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what's output for nginx config check
    Code (Text):
    nginx -t

    psutil error should disappear on subsequent centmin.sh runs, does it for you ?
     
  3. YuchiRO

    YuchiRO Member

    100
    6
    18
    Jan 12, 2015
    Ratings:
    +8
    Local Time:
    7:27 AM
    5.5.4
    Nginx working perfect now, but psutil error still appear ..
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:27 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    trying doing just
    Code (Text):
    yum -y remove python2-psutil
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:27 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    If still getting error, you can try running centmin.sh menu option 24 in debug mode logged to debug.txt text file in /root/centminlogs directory by running these 3 commands
    Code (Text):
    cd /usr/local/src/centminmod
    echo 24 | bash -x centmin.sh 2>&1 | awk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }' | tee /root/centminlogs/debug.txt && echo "debug log saved at /root/centminlogs/debug.txt"
    sed -i "s|$(hostname)|hostname|g" /root/centminlogs/debug.txt
    

    Then copy the contents of /root/centminlogs/debug.txt into a pastebin.com or gist.github.com shared link - with an sensitive info masked. At least server hostname will be replaced with word hostname instead via last sed replacement line