Confluence failing with SQL exception after upgrade

I accidentally upgraded Confluence from 5.9.10 to 6.3.3 while the database was unavailable, and now the atlassian-confluence.log file shows SQL exceptions, like these ones:

ERROR: relation "auditrecord" does not exist
ERROR: column space1_.lowerspacekey does not exist

Is there a way to fix the database scheme?

1 answer

0 vote
Ann Worley Atlassian Team Aug 22, 2017

I understand you ran an upgrade while the database was unavailable and now you have a case where a 6.3.3 instance is trying to run connected to a 5.9.10 database. I am assuming the application did not start and there is no new data, as there are quite a few database changes between 5.9.10 and 6.3.3. 

 Unless I am mistaken about what the issue is, the best solution is to restore the database and home directory from backup and then run the upgrade again while the database is available.

Please see the Before you Begin section on Upgrading Confluence for a good checklist, as the upgrade past 6.x is a major one.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,990 views 25 10
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