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 vote

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 Sign up to answer
Community showcase
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

17,657 views 18 20
Join discussion

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