Trying to Restore JIRA data from Backup

John Macmillan April 8, 2013

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
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 8, 2013

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.

John Macmillan April 8, 2013

Thanks, that worked.

1 vote
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 8, 2013

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 8, 2013

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

John Macmillan April 8, 2013

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

John Macmillan April 8, 2013

Already got an evaluation license.

1 vote
LucasA
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.
April 8, 2013

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

John Macmillan April 8, 2013

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.

LucasA
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.
April 8, 2013

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

John Macmillan April 8, 2013

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.

John Macmillan April 8, 2013

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?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 8, 2013

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!)

John Macmillan April 8, 2013

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

John Macmillan April 8, 2013

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

0 votes
Ramiro Pointis
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.
April 8, 2013

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

0 votes
LucasA
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.
April 8, 2013

Not really, evaluate is also an option :)

0 votes
Ramiro Pointis
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.
April 8, 2013

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

Suggest an answer

Log in or Sign up to answer