Help in upgrade, no JIRA home directory

Our amazon instance of JIRA crashed and all we have is JIRA 4.4.3 database.

Can I upgrade JIRA to 5.1 with just the old database and no JIRA_HOME? If yes how?

2 answers

1 accepted

EDIT: Answering my own question, forgot to mention that ;)

It is actually a feedback system per se(We were using SOAP protocol in our application to capture it). We didn't collect any attachments so we were good to go.

I did a little bit of experimenting ;) (with help from jira support, they didn't ask me to use the latest 4.4.x)

  • I downloaded 4.4.x latest version(4.4.5, I thought of using 5.1 directly but unsure of the after effects so just experimented with 4.4.x releases) of JIRA standalone (linux x64)
  • Extracted it
  • Created a empty JIRA_HOME
  • Edited <JIRA_INSTALL_DIR>/atlassian-jira/WEB-INF/classes/ to point to JIRA_HOME
  • Created a file named dbconfig.xml as described here with something like below(be sure to edit it)
    • &lt;?xml version="1.0" encoding="UTF-8"?&gt;
          &lt;validation-query&gt;select 1&lt;/validation-query&gt;
  • Once the system started up I got a few warning messages and atlassian doing some upgrade process with the database.
  • Now I took a backup of JIRA(XML backup) available in admin console
  • I downloaded JIRA 5.1.5 standalone and edited the to point to a new JIRA_HOME and a empty database
  • Got it up and running with the setup wizard
  • Restored using my backed up zip file(Referred to as XML backup)
  • Now we have a JIRA 5.1 running (Yay!!)

Well, you're not in a happy place for sure, you have lost all attachments for starters, as well as any all plugins, I dont suppose you have an externally stored backup of JIRA_HOME? Are you sure you cant get at the disk image of the machine? I would hope you can get something out?

Attempting to leap to 5.1 is a bad idea. Setup a local JIRA 4.4.3 installation, once installed, shutdown JIRA, and restore a COPY of your prod database to the local instance. Start JIRA and stand well clear.

Once launched, reindex. I offer no guarantees but you should be able to see something.

Perhaps consider using a hosting company such that they will be responsible/accountable for future backups?

Once you have some kind of running 4.4.3 you could consider upgrading.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

264 views 5 14
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot