How do you recover from a Restore crash ?

Hi,

I was trying to restore a DB, and the restore crash with the following error:

2013-10-03 16:17:23,217 JiraImportTaskExecutionThread-1 INFO tcorriol 976x3997x1 h5b3xr 172.24.77.44 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 63% complete...

2013-10-03 16:17:44,980 JiraImportTaskExecutionThread-1 INFO tcorriol 976x3997x1 h5b3xr 172.24.77.44 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 64% complete...

2013-10-03 16:27:08,433 pool-10-thread-7 ERROR tcorriol 976x3997x1 h5b3xr 172.24.77.44 /secure/admin/XmlRestore.jspa [jira.action.admin.OfbizImportHandler] Exception importing entity: java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

Now I have read the article about Java heap space problem, and I have increase the memroy size to:

rem The following 2 settings control the minimum and maximum given to the JIRA Java virtual machine. In larger JIRA instances, the maximum amount will need to be increased.
rem
rem --------------------------------------------------------------------------
set JVM_MINIMUM_MEMORY=512m
set JVM_MAXIMUM_MEMORY=1024m

But I cannot log to JIRA anymore, as all users seem to have been wiped-out. What should I do to try to restore the DB again ? How can I access the restore page to tell it which file to use ?

Thanks,

Thomas

2 answers

1 accepted

3 votes

Drop and recreate an empty database, then go through the xml restore process again. It can't pick up where it left off...

I had to do that, thanks.

It finally worked with the following settings:

set JVM_MINIMUM_MEMORY=512m
set JVM_MAXIMUM_MEMORY=1536m

Cheers,

Thomas

0 vote
If the DB is completely wiped out, you will see the setup page when you start JIRA and there will be an option to import from an existing backup file.

Hi Jobin, thanks for answering.

Nope, I got the login screen, and when I try to log, I get the following errors:

An internal server error occurred when requesting resource .

Sorry, your username and password are incorrect - please try again.
Is there a way to access this setup page ?

Thomas

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...

80 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