Enabling Maintenance Mode with Recovery Mode enabled in Confluence blocks all user logins.

XMLWordPrintable

    • 5
    • Severity 2 - Major
    • 35

      Issue Summary

      Enabling Maintenance Mode + Recovery Mode (as described in Restore Passwords to Recover Admin User Rights results in all login attempts failing, including those for the Recovery Admin user. The error displayed is:
      "Something went wrong. Refresh the page and try again."
      This effectively makes Confluence entirely inaccessible.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Enable Maintenance Mode in Confluence.
      2. Enable Recovery Mode by setting the required property in confluence.cfg.xml as per Atlassian's recovery guide.
      3. Restart Confluence.
      4. Attempt to log in using the Recovery Admin or any other user (admin or non-admin).

      Expected Results

      • The generated Recovery Admin user should be able to log in to perform administrative actions.

      Actual Results

      • All login attempts (including those from the Recovery Admin) fail with the error:
        "Something went wrong. Refresh the page and try again.":

      Workaround

      Disable Maintenance Mode and restore access (Outside the UI):
      Option 1:

      1. Modify the confluence.cfg.xml file in the Shared Home directory:
        1. From: <property name="access.mode">READ_ONLY</property>
        2. To: <property name="access.mode">READ_WRITE</property>
      2. Restart Confluence.

      Option 2 (Database) - Take a backup before any modifications:

      1. Run the following SQL query:
        SELECT * 
        FROM BANDANA 
        WHERE BANDANACONTEXT = '_GLOBAL' 
        AND BANDANAKEY = 'atlassian.confluence.settings';
        
      2. Copy the entire BANDANAVALUE
      3. Find <maintenanceBannerMessageOn>true</maintenanceBannerMessageOn>
      4. Change it to <maintenanceBannerMessageOn>false</maintenanceBannerMessageOn>
      5. Run the following query to update the BANDANAVALUE:
        UPDATE BANDANA 
        SET BANDANAVALUE = '<Paste the entire BANDANAVALUE after the modification>'
        WHERE BANDANACONTEXT = '_GLOBAL' 
        AND BANDANAKEY = 'atlassian.confluence.settings';
        
      6. Restart Confluence.

      Note that we have a Feature Request to Allow for different ways to put Confluence into Read Only Mode before startup:

        1. image-2024-11-27-15-55-52-293.png
          4 kB
          Ibrahim ElMasry
        2. image-2024-11-27-15-56-17-302.png
          4 kB
          Ibrahim ElMasry

            Assignee:
            Manonmani Muthukrishnan
            Reporter:
            Ibrahim ElMasry (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: