How to find the build number of my JIRA database?

Tayyab Bashir Community Champion Dec 09, 2016

How can I find the build number of my JIRA database and change it?

I'm having a problem with my JIRA, it won't start up.
I had JIRA 7.0.10 and I upgraded it to JIRA 7.2.4, (did this on separate local machine) and I didn't make any changes to the entries in the dbconfig.xml to make it into the local Database. 

Anyway, I'm getting the following error message:

Failed to start JIRA due to a build number inconsistency. 
The data present in your database is newer than the version of JIRA you are trying to startup. 
Database build number: 72006 
JIRA app build number: 70120 
 
Please use the correct version of JIRA. You are running: 7.0.10#70120-sha1:37e3d7a6fc4d580639533e7f7c232c925e554a6a

Can you please tell me how to fix this? 
How can I make both the build numbers the same?

I fear that my database is connected to my LIVE server, and if the database is restarted, this error would show up and halt the system?

4 answers

1 accepted

0 votes

Bear in mind that if you just flip the version number and run an older version of JIRA, you're likely to find that it either

  • won't start, throwing a LOT of errors
  • will start, but display damaged/destroyed/unusable data
  • will start, but actively damage or destroy your data

When you have a 7.2.4 database, you must run 7.2.4 or above against it.  Downgrades are unsupportable and mostly guaranteed to fail.  (You might get away with 7.2.0 -> 7.2.3, but 7.lower is out of the question)

Tayyab Bashir Community Champion Dec 11, 2016

So what should we do now? 
Should we just upgrade the JIRA?  

You have a choice between:

  1. You already have upgraded it, you need to run 7.2.4 against that database
  2. Several months work trying to unpick a database in order to downgrade
  3. Revert to the backups you took before the upgrade
Tayyab Bashir Community Champion Dec 12, 2016

Upgraded JIRA to solve the issue. 

Hi Mihammad,

Check the answers here: https://answers.atlassian.com/questions/195184

One of the most popular answers to your problem is to set jira.version to match jira.data.version like this:

 
<jira.version>7.0.10</jira.version>
 <jira.data.version>7.0.10</jira.data.version>

 

Regards,
Konstantin
Tayyab Bashir Community Champion Dec 11, 2016

Where is this found? 

0 votes
Tayyab Bashir Community Champion Dec 09, 2016

This Database build number: 72006, is coming from my Live JIRA server. It should be 70120, but instead, it is 72006 (which is build version of JIRA 7.2.4)

0 votes
Tayyab Bashir Community Champion Dec 09, 2016

@Nic Brough [Adaptavist]
Hi Nic, I could really use your help right now. 
Can you please help me out?  

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,108 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot