Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Taking cluster out of rolling upgrade mode when nodes offline to avoid startup error

Steve Letch
Contributor
December 10, 2024

On my dev instance today, I'd left my cluster set in rolling upgrade mode when I went to upgrade from 8.5 to 9.2 and set all my boxes to upgrade at the same time, the upgraded boxes wouldn't start, citing they don't support a rolling upgrade between major versions, which is fine, however I couldn't find a way to get the system out of thinking it was in rolling upgrade mode so I could just finish upgrading one box with the other two down. Since I couldn't get to the GUI.

 

I restored from a backup and ran my upgrade again on a single box and it went through fine.

 

My question is, is there a db command or config file line change to stop the system thinking its in rolling upgrade mode without the browser GUI, so on the offchance this happens again, we dont have to roll all the way back to a backup and upgrade again.

 

For clarity, running on Linux as a service 

1 answer

1 accepted

0 votes
Answer accepted
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 1, 2025

Hi @Steve Letch 

While the Confluence cluster is typically managed through the browser GUI, it is possible to exit rolling upgrade mode without using the graphical interface.

This can be achieved by directly modifying the database, but it's essential to exercise caution and only resort to this method as a last option.

  • To do so, start by connecting to your Confluence database using a database client. Then, execute the below SQL query to check the current status of the rolling upgrade mode.
  • SELECT * FROM BANDANA WHERE BANDANAKEY = 'atlassian.confluence.upgrade.active';
  • If the query returns a result, you can disable the rolling upgrade mode by executing a specific SQL command.
  • DELETE FROM BANDANA WHERE BANDANAKEY = 'atlassian.confluence.upgrade.active';
  • After making this change, be sure to restart your Confluence service.

It's crucial to note that modifying the database directly should only be done with caution and after ensuring you have a recent backup.

This method can be useful in situations where accessing the GUI is not possible or when nodes are offline. For future upgrades, especially when moving between major versions, it's recommended to disable rolling upgrade mode before starting the upgrade process and perform a full cluster upgrade rather than a rolling upgrade.

If a rollback is necessary, be sure to follow the official rollback procedures provided by Atlassian. Remember that rolling upgrades are primarily designed for minor version updates and patches, not for major version upgrades.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

nanospeck-admin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2025

@Humashankar VJ I am stuck with the exact same problem but for Jira instead of confluence. Do you have any suggestions that might help out? Appreciate any response as soon as you could, we've been trying ways without luck for weeks now. Thank you so much!

Regards,

Akhil.

Like Humashankar VJ likes this
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2025

Hi @nanospeck-admin 

To manually disable rolling upgrade mode in Jira, follow a similar approach to Confluence, as Jira also stores system properties in its database. Rolling upgrade settings in Jira are typically stored in the propertyentry and propertystring tables. To begin, execute the following SQL queries to identify and inspect relevant upgrade properties:

First, run this query to find upgrade properties: SELECT * FROM propertyentry WHERE property_key LIKE '%upgrade%'; Additionally, you may need to query propertystring to check the stored values: SELECT * FROM propertystring WHERE id IN (SELECT id FROM propertyentry WHERE property_key LIKE '%upgrade%');

To disable rolling upgrade mode, locate the relevant property, such as "jira.cluster.rolling.upgrade", and then update or delete it. One option is to update the value by executing the following SQL query: UPDATE propertystring SET propertyvalue = 'false' WHERE id IN (SELECT id FROM propertyentry WHERE property_key = 'jira.cluster.rolling.upgrade'); This will set the rolling upgrade mode to "false", effectively disabling it.

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.2.0
TAGS
AUG Leaders

Atlassian Community Events