Want more timely Centmin Mod News Updates?
Become a Member

Master Branch update NGINX_UPDATEMAINTENANCE in 124.00stable

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 17, 2022.

  1. eva2000

    eva2000 Administrator Staff Member

    59,380
    12,513
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,149
    Local Time:
    6:05 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update NGINX_UPDATEMAINTENANCE in 124.00stable

    When optional NGINX_UPDATEMAINTENANCE='y' is enabled via persistent config file variable, centmin.sh menu option 4's nginx upgrade/recompile routine will automatically put the all nginx vhost site doamins into 503 maintenance status mode so visitors can't access the sites. It's equivalent to manually enabling 503 maintenance mode via SSH command = sitestatus off outlined at https://community.centminmod.com/threads/sitestatus-maintenance-mode.5599/. However, if nginx fails to upgrade/recompile due to an error, the maintenance mode isn't disabled so leaves all nginx vhost site domains in 503 maintenance status mode until you manually disable it with SSH command = sitestatus on. This update, fixes this so failed centmin.sh menu option 4 runs will automatically turn off 503 maintenance mode if it was optionally enabled.

    Continue reading...

    Centmin Mod Github Master branch


    Master branch is where most recent commits are made as at May 24, 2015.
     
  2. fiftycent

    fiftycent New Member

    5
    3
    3
    Jun 16, 2022
    Florida, USA
    Ratings:
    +3
    Local Time:
    4:05 PM
    Nginx 1.21.6
    MariaDB 10.3.35
    Hey @eva2000
    Code:
    sitestatus off
    returns 404 on my server, not 503 maintenance. Any idea why?
     
  3. eva2000

    eva2000 Administrator Staff Member

    59,380
    12,513
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,149
    Local Time:
    6:05 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Did you delete the maintenance.html file in your /public web root for your domain?
     
  4. fiftycent

    fiftycent New Member

    5
    3
    3
    Jun 16, 2022
    Florida, USA
    Ratings:
    +3
    Local Time:
    4:05 PM
    Nginx 1.21.6
    MariaDB 10.3.35
    Yes, I guess I did! Just replaced it, that did the trick. Thanks.

    Also wanted to let you know that after updating CentminMod (version shows 124.00 stable) there is an error whenever I enter the menu via centmin.sh

    Code:
    ===============================================================================
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    ===============================================================================
    [23:37][root@main ~]# centmin
    /usr/local/src/centminmod ~
    
    parse error: Invalid numeric literal at line 1, column 10
    parse error: Invalid numeric literal at line 1, column 10
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    59,380
    12,513
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,149
    Local Time:
    6:05 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Glad to hear :)
    You can report bugs like this at https://community.centminmod.com/forums/bug-reports.12/ :)