System Administrator Jahia 7.3 Jahia 8

Different ways to activate maintenance mode

Question

At the moment (January 2021, Jahia releases 8.0.1.0 and 7.3.6.0), the property maintenanceMode is not being handled by Jahia (cf https://jira.jahia.org/browse/QA-13569).

Consequently, how can we activate the maintenance mode?

Answer

There are 3 ways:

  1. Manually thanks to the tools: JAHIA_URL/modules/tools/maintenance.jsp
  2. Thanks to a curl command:
    curl -s -u 'USER:PASSWORD' -XGET "JAHIA_URL/modules/tools/maintenance.jsp?maintenance=true"
  3. Thanks to a SSH command through the Karaf console:
     ssh -p 8101 jahia@localhost -C "dx:maintenance on"