Need Help Recovering & Recreating corrupt H2 Embedded DB

Hi All,

So I am happy to report that my H2 Embedded DB is corrupted (yeah, I know, I know, evaluation purposes only). I was able to use the H2 Recovery Tool to extract and create a .SQL file from the data. However, recreating the DB with the SQL script has not been so successful. I was not able to successfully use RunScript from the set of H2 tools to create it. Instead, I had to use DbVisualizer to create the simple DB, "h2db", open and run the SQL file against the PUBLIC schema. Is that correct? I took the new db file, h2db.h2.db, and dropped it in my database directory, set the ownership and permissions correctly, but Confluence produced a fatal error when starting now:

Unable to start up Confluence. Fatal error during startup sequence: confluence.lifecycle.core:mananagedjobs (Start and stop the Managed Scheduled Jobs) - org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only

Any help would be appreciated. I have a MySQL Server ready to migrate the DB to a production quality DB if I can recover this data.

2 answers

This widget could not be displayed.

Confluence runs daily backup jobs (if you enabled it) Have a look in confluencedata/backups/ and use the zip-file to recover Confluence.


I wish there was a backup, but nope :(

This widget could not be displayed.

Posted this on StackExchange - had a hellish day yesterday figuring this out. 

I documented my fix in this gist.


Good luck!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

504 views 7 6
Join discussion

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