I'm trying to do an export/import situation from an OnDemand instance to a Standalone instance. I did the backup of the OnDemand and put the zip file in the imports directory for the standalone. Initially, I got an error of:
Error importing data: java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity for entityName: PluginState
Looking around, I saw that this was a problem with the differing versions of JIRA involved (https://jira.atlassian.com/browse/JRA-34099). So I unzipped my backup, edited the entities.xml file, zipped up the directory and tried importing. This gave me the error message:
Error importing from zip file: "/Applications/JIRA/import/jb.zip". Error: Unable to find JIRA backup (entities.xml) inside of zip file: /Applications/JIRA/import/jb.zip
I unzipped and made sure that the file was actually present, that the permissions hadn't been changed. I rezipped and got the same error message. Looking around, I saw a suggestion that it might be caused by the size of the attachments in the backup (https://confluence.atlassian.com/display/ONDEMANDKB/Unable+To+Find+JIRA+Backup+(entities.xml)+Inside+Of+Zip+File+Error) . So I took the entities.xml file and the activeobjects.xml file and copied them to a separate directory and zipped it up and tried importing it and still saw the same error message.
Looking around further, I saw the suggestion that entities.xml might be renamed by anonymizing or might be improperly in a sub-folder (https://answers.atlassian.com/questions/102134/jira-migrate-data-from-ondemand-to-jira-standalone-install), but none of those are the case here.
I eventually got an answer from the Support section. Here is a wrapup:
Zipping of the two files should be done directly, not in a folder:
zip backup.zip activeobjects.xml entities.xml
Then there was a problem from importing, due to SQL issues: https://confluence.atlassian.com/display/JIRAKB/SQL+Exception+when+Entering,+Updating+or+Importing+an+Issue+in+JIRA+with+MySQL+Due+to+Encoding
I then adjusted the importing JIRA instance to utf-8. Then I had to adjust the MySQL instance collation tables to utf8_general_ci.
Finally, I was able to import the OnDemand instance into the standalone instance.
The workaround mentioned in JRA-34099 is the one I pointed to first in my original report. I unzipped the backup, edited the entities.xml file, rezipped and tried importing. That's when I got the message about not finding entities.xml. I am never presented with an opportunity to acknowledge the error of the index path and attachment path. It goes along trying to import and comes back with the error message about not finding the entities.xml file.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...
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!
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