Why doesn't "Restore database from XML work"?

Using:  http://...secure/SetupImport.jspa

Import existing data:

File Name: C:\Program Files\Atlassian\JIRA-7.4.3-back.zip

Error:  

 

Error importing from zip file: "C:\Program Files\Atlassian\JIRA-7.4.3-back.zip". Error: Unable to find JIRA backup (entities.xml) inside of zip file: C:\Program Files\Atlassian\JIRA-7.4.3-back.zip

 

2 answers

1 votes

That feature is looking for a zip file that contains exactly two files with the names

active-objects.xml

and

entities.xml

Given the error message you are seeing, this means that your "JIRA-7.4.3-back.zip" file doesn't actually contain these expected files, or that zip is corrupt.   I would suggest extracting that file with a zip utility like 7zip, or even Windows unzip tool to see what is actually inside.

How was that zip file created?  Did you follow the steps in Using Jira's XML backup utility in order to create the XML backup within the previous Jira installation?   If not, then you won't be able to restore that zip file as a backup of your data.   By default Jira is automatically creating these xmlbackup zip files in the JIRAHOME/export/ folder.  If you still have access to this path on the old system you might be able to find a xml backup there.

0 votes
Suhas Patil Community Champion Sep 23, 2017

Its corrupt xml backup. 

Adding to what Andrew said, while taking xml back up make sure you kick out all logged in users first. You can do this by restarting JIRA. Safer way to take xml backup is to start JIRA on different port and then take backup so no users will be able to login.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday 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 ...

317 views 0 12
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