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

Scott Jones September 22, 2017

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
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 22, 2017

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 P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 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