Maintenance Mode for CloudBolt¶
CloudBolt supports two different kinds of maintenance modes:
- Admin-only maintenance mode: which allows CB Admins to use the CloudBolt UI and API, but no one else.
- Full maintenance mode: which prevents all users from using the CloudBolt UI and API, and prevents all jobs from being run. This is the mode automatically enabled/disabled by the CloudBolt upgrader.
Admin-only maintenance mode¶
This mode can be activated fromand will cause all non-CB Admin users to be logged out if they attempt to use the UI, a message to appear on the login screen and at the top of all pages explaining the mode. Jobs (including recurring and one-time scheduled jobs) will continue to run as normal.
Full maintenance mode¶
CloudBolt comes with a utility (/opt/cloudbolt/utilities/maintenance_mode.py) that can be run as root on the CloudBolt server to enable and disable maintenance mode. Run the script with the “-h” argument to see detailed usage information.
When maintenance mode is enabled:
- All users of the web UI will be redirected to a maintenance page with the title & body specified (sensible defaults will be used if these arguments are not specified).
- The CloudBolt job engine will continue with jobs that are already running, but will not pick up new pending jobs, and will not restart once it has exited. Note that this only affects the CB server it is run on.
If you have multiple CB servers, and want to put them all in maintenance mode, this command needs to be run on each. The CloudBolt upgrader will automatically activate maintenance mode (if it is not already activated).