Welcome to Centmin Mod Community
Become a Member

[Solved] Autoprotect.sh reload instead of restart

Discussion in 'Bug Reports' started by Simon Brown, Aug 3, 2018.

  1. Simon Brown

    Simon Brown Member

    55
    6
    8
    Feb 9, 2017
    Ratings:
    +18
    Local Time:
    7:23 AM
    1.11.9
    Hello,
    Not sure where to post this so feel free to move the thread if I got it wrong.

    I've had a few clients contact me saying they've had 502 errors when performing tasks like category price updates on their e-commerce websites. The price updates can take a minute or two to complete.

    From investigating the and getting exact times they see the 502 errors from screenshots they've sent I can see that it's at the same time the autoprotect.sh script executes.

    I had a look through the script an can see it 'restarts' Nginx rather than 'reloads'.
    Is there a reason you haven't set it to reload?

    /usr/bin/ngxrestart >/dev/null 2>&1

    and


    /etc/init.d/nginx restart

    There must be others that have the same issue but wouldn't know why websites stop working intermittently!

    Many thanks,
    Si
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,277
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    4:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    thanks updated with fix, so update 123.09beta01 = cmupdate

    Code (Text):
    cmupdate
    
    No local changes to save
    remote: Counting objects: 6, done.
    remote: Compressing objects: 100% (1/1), done.
    remote: Total 6 (delta 5), reused 6 (delta 5), pack-reused 0
    Unpacking objects: 100% (6/6), done.
    From https://github.com/centminmod/centminmod
       6043bc2..020e292  123.09beta01 -> origin/123.09beta01
    Updating 6043bc2..020e292
    Fast-forward
     inc/wpsetup.inc      | 6 +++---
     tools/autoprotect.sh | 4 ++--
     2 files changed, 5 insertions(+), 5 deletions(-)
     
  3. Simon Brown

    Simon Brown Member

    55
    6
    8
    Feb 9, 2017
    Ratings:
    +18
    Local Time:
    7:23 AM
    1.11.9
    Excellent, thanks. Glad I could be of some help. Keep up the awesome work!