After enabiling disaster recovery mode Jira fails to startup
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
After enabling Disaster Recovery Mode Jira becomes inaccessible and is not able to complete its startup successfully
Environment
Jira Data Center
Disaster Recovery Mode enabled
Diagnosis
The following error appears in the log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2021-11-08 10:16:29,976-0600 JIRA-Bootstrap INFO [c.a.j.index.ha.DisasterRecoveryLauncher] Cold instance early start
2021-11-08 10:16:29,977-0600 JIRA-Bootstrap ERROR [c.a.jira.startup.LauncherContextListener] Unable to start JIRA.
java.lang.NullPointerException
at com.atlassian.jira.index.ha.DisasterRecoveryLauncher.clearClusterLocks(DisasterRecoveryLauncher.java:137)
at com.atlassian.jira.index.ha.DisasterRecoveryLauncher.earlyStart(DisasterRecoveryLauncher.java:92)
at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$postDbLaunch$2(DefaultJiraLauncher.java:141)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:307)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:202)
at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:135)
at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$0(DefaultJiraLauncher.java:102)
at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:31)
at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:100)
at com.atlassian.jira.startup.LauncherContextListener.initSlowStuff(LauncherContextListener.java:154)
at java.lang.Thread.run(Thread.java:748)
Cause
The file which enables clustering ( cluster.properties ) is missing from Jira's data directory
Solution
Create a cluster.properties file per the Jira Data Center Setup Guide
Was this helpful?