Welcome to Centmin Mod Community
Register Now

Upgrade Nginx checking... worker child PPID= exists won't stop on recompile Nginx

Discussion in 'Install & Upgrades or Pre-Install Questions' started by EckyBrazzz, May 31, 2019.

Tags:
  1. EckyBrazzz

    EckyBrazzz Active Member

    594
    126
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +234
    Local Time:
    6:50 AM
    1.17.x
    10.3.x
    Started a new Droplet from a snapshot at DO and got the Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz this time and thought, well let's recompile all things but at the nginx part it hangs. This happend before on a old Droplet but I don't know if the make completed.

    Code (Text):
    ---------------------------------------------------------------------------
    nginx master id:
    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------
    kill -USR2
    kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    
    -rwxr-xr-x 1 root root 4.8M May 30 14:36 /usr/local/sbin/nginx
    -rwxr-xr-x 1 root root 4.8M May 30 14:21 /usr/local/sbin/nginx.old
    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------
    kill -WINCH
    kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------
     waiting for old nginx worker processes to exit...
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
     checking... worker child PPID= exists
    

     
  2. eva2000

    eva2000 Administrator Staff Member

    41,386
    9,297
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,261
    Local Time:
    7:50 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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. EckyBrazzz

    EckyBrazzz Active Member

    594
    126
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +234
    Local Time:
    6:50 AM
    1.17.x
    10.3.x
    Solution was to kill all nginx processes.
    Code (Text):
    kill $(ps aux | grep '[n]ginx' | awk '{print $2}')
     
  4. EckyBrazzz

    EckyBrazzz Active Member

    594
    126
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +234
    Local Time:
    6:50 AM
    1.17.x
    10.3.x
    Have to retest it, because I did several re-compiles, so don't remember the log files
     
  5. eva2000

    eva2000 Administrator Staff Member

    41,386
    9,297
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,261
    Local Time:
    7:50 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    did any of your nginx recompiles end up with you forcing a abort i.e. ctrl+C etc ? you could abruptly interrupted the process and left nginx processes lingering
     
  6. EckyBrazzz

    EckyBrazzz Active Member

    594
    126
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +234
    Local Time:
    6:50 AM
    1.17.x
    10.3.x
    did not work, so I used another terminal to force it to quit. But my recompile just finished without any errors.

    Code (Text):
    log files saved at /root/centminlogs
    -rw-r--r--  1 root root    0 May 31 14:00 patch_opensslpatches_310519-140003.log
    -rw-r--r--  1 root root   44 May 31 14:01 centminmod_opensslinstalltime_310519-140003.log
    -rw-r--r--  1 root root  166 May 31 14:01 patch_patchnginx_310519-140003.log
    -rw-r--r--  1 root root 9.5K May 31 14:07 nginx-configure-310519-140003.log
    -rw-r--r--  1 root root  35K May 31 14:08 nginx_autoconf.err.310519-140003.log
    -rw-r--r--  1 root root 2.1M May 31 14:09 centminmod_123.09beta01.b173_310519-140003_nginx_upgrade.log
    
    *************************************************
    * nginx updated
    *************************************************
       _   _         _                _   _             _         _             _
      | \ | |  __ _ (_) _ __  __  __ | | | | _ __    __| |  __ _ | |_  ___   __| |
      |  \| | / _` || || '_ \ \ \/ / | | | || '_ \  / _` | / _` || __|/ _ \ / _` |
      | |\  || (_| || || | | | >  <  | |_| || |_) || (_| || (_| || |_|  __/| (_| |
      |_| \_| \__, ||_||_| |_|/_/\_\  \___/ | .__/  \__,_| \__,_| \__|\___| \__,_|
              |___/                         |_|                                   
    Total Nginx Upgrade Time: 533.900705101 seconds
    
     
    • Informative Informative x 1