How to restore Jira xml data manually?


I guess I am having a tipical problem with restoring my current Jira data (6.2.3) due starting the older version of Jira (5.0.2) instance without having any backup of Jira_Home directory, which imply that old instance overwrite my current data? The only backup I have is the one from export subdirectory (activeobject.xml and entities.xml).

Is there any chance to restore those data on the server? Because obviously I cannot start now none of the instances. Here is the error message:

An error occurred performing JIRA upgrade

The data before the upgrade has been exported to /atlassian/jira/export/ 2014-07-16

4 answers

1 accepted

Hello Escuire

With entities.xml and activeobjects. xml in hand all that you'll need to do is to zip those archives and then install a fresh instance of JIRA and them using the import from backup option. You will not need a DB backup cause those xml files will populate it.

The point is that you will need a fresh instance of JIRA to import that xml backup

This proccess is described here

Hope this helps!

0 votes
What does the log file say is going wrong with the import/upgrade?

Not much as you see above. I think database has crashed. So my question is how to use the activeobject.xml and entities.xml files to fix it.

Well, that's the thing, to fix it with those files, you need to run an import.

The log implies you've got a broken custom field of some sort. It would be very unusual for a system field to break quite like that, so I'd look at the custom fields you have added via plugins - do you have any of these?

Exception thrown during upgrade: java.lang.NullPointerException
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(
at com.atlassian.util.concurrent.LazyReference.get(
at com.atlassian.util.concurrent.ResettableLazyReference.get(
at com.atlassian.jira.issue.fields.CustomFieldImpl.getCustomFieldSearcher(
at com.atlassian.jira.issue.fields.CustomFieldImpl.(
at com.atlassian.jira.issue.fields.CustomFieldImpl.(
at com.atlassian.jira.issue.managers.DefaultCustomFieldManager.getCustomFieldsFromIds(
at com.atlassian.jira.issue.managers.DefaultCustomFieldManager.getCustomFieldObjects(
at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build6045.getCustomFields(

Ok. So luckily for me I have found some database dump file and I restore it. So everything works fine now, but hipotetically is there any way to restore jira database without native db backups? Like I asked before. Is there any chance do restore jira database having only files from export subdirectory of jira home.

Yes, like I said already - you run an import. The xml is not suitable for creating a database from, it needs to be imported via something that understands it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,729 views 17 21
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