Failed to start jira due to build number consistency

Pavan
Contributor
December 19, 2023

Hello Team,

Scenario : I have first upgrade my jira to 9.12.1 and upgrade everything was working fine 

but later due to some reason , i have to revert the upgrade anddo the upgrade to 9.4

upgrade went well but getting below error 

ERROR [c.a.jira.startup.DefaultJiraLauncher] JIRA has failed to start because of the following errors: [(Event: Level = (EventLevel: fatal) , Key = (EventType: database) , Desc = Failed to start Jira due to a build number inconsistency. , Exception = The version of the data present in your database is higher than the version of Jira you are trying to start.

1 answer

1 accepted

2 votes
Answer accepted
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 19, 2023

Hello!

You can not simply donwgrade/ revert to a previous version.

Some Jira upgrades introduce database changes which are not always compatible with lower versions of the applications. That's why Jira keeps track of the build number and checks if it matches the database.

Best thing would be to restore a database backup from before the upgrade to make sure Jira's version matches the database.

If that's not an option for you you can try the following (from JRASERVER-59302)

Add this startup property to the java options: -Djira.downgrade.allowed=true 

  • On Linux: in bin/setenv.sh
  • On Windows: in bin/setenv.bat
  • On Windows if you use a service: by editing the java service settings

 

I highly recommend taking backups before you try anything like this.

Pavan
Contributor
December 19, 2023

Hello @Charlie Misonne 

I have used https://jira.atlassian.com/browse/JRASERVER-65084 this solution 

and updated the inconsistent build number manually to DB

this solution worked for me!

is this the right way to correct my problem?

Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 21, 2023

Hi!

Glad to hear you founnd a solution. If Jira is working fine and you don't have a lot of errors in your logs you should be fine :-)

Suggest an answer

Log in or Sign up to answer