Learn about Centmin Mod LEMP Stack today
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 Premium Member Premium Member

    32
    5
    8
    Feb 9, 2017
    Ratings:
    +16
    Local Time:
    11:21 PM
    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
     
    • Like Like x 1
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    36,348
    7,981
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,290
    Local Time:
    8:21 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    32
    5
    8
    Feb 9, 2017
    Ratings:
    +16
    Local Time:
    11:21 PM
    1.11.9
    Excellent, thanks. Glad I could be of some help. Keep up the awesome work!
     
    • Like Like x 1
..