Trying to Restore JIRA data from Backup

Hello,

I'm trying to Restore JIRA data from OnDemand instance to local instance but I get "invalid license" error. Which license am I supposed to put there? And where to find those?

http://i.imgur.com/elk1nr0.png

6 answers

1 accepted

3 votes

You need a Jira licence from myatlassian.com - if you log in there, you'll see what you've got in terms of licences and be able to retrieve a key for the current licences you have. If you don't have a licence yet, then an evaluation one should work ok, but in the long run, you'll need to buy a full one.

Thanks, that worked.

Hi John,

First of all, you are not supposed to restore an OnDemand backup on an already-installed JIRA instance. The OnDemand backup can only be restored a prior the JIRA installation (start a JIRA instalation, then set the database and click on "Import data from backup");

You'll also need a valid JIRA key to restore the backup. You can purchase a new one on my.atlassian.com.

Best regards,
Lucas Timm

I already have a license for my local Jira, it's an evaluation license. It's fresly installed Jira, I didn't get any options for "restoring my backup" during the installation.

Hi John,

Yes, it should have:

- https://confluence.atlassian.com/display/JIRA/Running+the+Setup+Wizard#RunningtheSetupWizard-Step2.Configuretheapplicationproperties

Check the "(Optional) Import data into your JIRA installation" topic. You'll need to click on "Import Data" link from the following screen:

Best regards,
Lucas Timm

I have to say I didn't notice that. Quite frankly I doubt it that anyone would, it's hidden in installation step description - no one reads that.

Hey, I exported my OnDemand to 5.2.10 and it works just fine, however, is there a way to export it to 5.2.5? I read in the documentation that if I'd try that I'll get a "mismatching versions" error. is there a way around this without updating 5.2.5 to 5.2.10?

The general rule is "no, you can't go backwards".

However, for the point releases, you usually can do it with a minor tweak. When I say "Point release", I really do mean it's just the last digit - this trick usually trashes the data completely if you try it on a mid-level release. (5.2.10 to 5.2.5 is probably ok. 5.2.x to 5.1.x is probably going to mean scrabbling around for backups...)

Open the xml you've got from the 5.2.10 system. Buried in it, you should find a version tag with 5.2.10 in it - change that to 5.2.5. If you find a "build" number next to it, you might need to remove that completely as well.

A 5.2.5 installation should then happily restore that!

The trick here is that Atlassian don't change the database on point releases, unless it's a critical bug. So as a general rule, the data across a whole mid-level release is usually compatible. BUT - not always. So TEST it to death! (Also, you might want to try a diff of a 5.2.5 export vs 5.2.10 - that would highlight any significant differences!)

Actually, I wanted to export OnDemand (newest of the neweset of the newest version out there hosted by Atlassian) to 5.2.5, does your solution works for that too? It worked with 5.2.10

I tried to restore OnDemand on 5.2.5 and I got a following error: Error importing data: java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity for entityName: ApplicationUser

1 vote

Hi John,

You should get your license from my.atlassian.com. If you don't have one yet, you can either create an evaluation license there or you can purchase one. Also, you can see more info on this on http://www.atlassian.com/licensing/purchase-licensing.

I hope this helps. :)

Cheers,
Matheus Fernandes

So you need to paste the licence key into the box provided for, um, the licence key...

That's right, I did so and it worked.

Already got an evaluation license.

I think people are trying to say something about that purchase license thing hahaha

Not really, evaluate is also an option :)

Yup, just kidding... I saw the three of you answered the same almost at the same time ;)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

94 views 0 5
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