Restoring Jira using the backups of /opt/atlassian and /var/atlassian directories

Hello, my server had a disk failure so I have to create a new JIRA machine. I have a fairly new backup of /opt/atlassian and /var/atlassian directories. I have tried installing a new JIRA using the .bin file. And after I have tried the following:

  1. Copying my backup directories to the newly installed Atlassian directories without overwriting
  2. Copying my backup directories to the newly installed Atlassian directories with overwriting
  3. Changing the cd command in /etc/init.d/jira so that it enters my backup directories instead of the newly created directories.

But I get an HTTP 500 error like the following:

type
Exception report


message
org.ofbiz.core.util.GeneralRuntimeException: Could not determine database type. (Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)

description
The server encountered an internal error (org.ofbiz.core.util.GeneralRuntimeException: Could not determine database type. (Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)) that prevented it from fulfilling this request.


exception
com.atlassian.util.concurrent.LazyReference$InitializationException: org.ofbiz.core.util.GeneralRuntimeException: Could not determine database type. (Communications link failure

How can I recover my data?

3 answers

0 votes
Joseph Pitt Community Champion May 03, 2016

If you did the install why are you restoring anything but the data? And that should be from a JIRA xml backup and the attachments from server backup if they were on the same server. I've moved JIRA between servers for upgrades several times that way and never had a problem. Depending on how you define things you may need to make changes to IP addresses, server names, or DNS tables.

I am trying to restore the data. But I do not have a JIRA xml backup. What I have is the whole /opt/Atlassian and /var/Atlassian directories. I am sure that these should be enough to restore my data. But I don't know how. I am not able to get anything more from my old JIRA server as the disk has failed.

Joseph Pitt Community Champion May 03, 2016

I'd suggest you contact Atlassian for help.But first you need to know where the database and attachments were being stored. Many shops the standard is to put data on a separate drive than the OS so restoring those directories may not get the data. I've never restored except from an xml backup. We take them automatically and take backups of that drive. 

Atlassian strongly recommend the use of database backups over XML, especially on larger systems - they work fine for restoration as well.

0 votes

You have only talked about the installation and home directories.

Where is your database backup?  What did you do with that?

The database configuration appears to be the source of the error above.  I'd make sure that you have the appropriate DB driver in your JIRA  lib directory, then make sure that the dbconfig is still relevant to the old database that I assume you still have running.  

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Dec 06, 2018 in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,689 views 22 17
View question

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