Catastrophic error after database migration

I installed a new instance of Confluence 3.5.13 on a new box and pointed it to a new Postgres database. Everything worked perfectly.

I stopped the new instance and migrated all of my data from another Confluence instance. All tables copied perfectly.

When I brought the new Confluence version up, all I got was a white page with this error:

Error occurred during template rendering: Invocation of method 'getLogoForGlobalcontext' in class $Proxy45 threw exception org.springframework.orm.hibernate.HibernateObjectRetrievalFailureException: No row with the given identifier exists: 0, of class: com.atlassian.confluence.core.ContentEntityObject; nested exception is net.sf.hibernate.UnresolvableObjectException: No row with the given identifier exists: 0, of class: com.atlassian.confluence.core.ContentEntityObject at template/includes/macros.vm line 1651, column 43 . Contact your administrator for assistance.

I assume this is related to the migration, but everything migrated perfectly with no errors so I am unsure what I did to cause this error.

3 answers

1 accepted

Error was related to data types and values, was not copying null values properly or converting CLOB/BLOB into the correct Postgres types.

Did you follow the guidance given here: https://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers There's a lot more to this task than just copying tables, as the guide explains. How are you storing the attachments that originate from your original instance, and have these moved to a new server?

Were you trying to migrate a Confluence 3.5.13 content to another Confluence 3.5.13 on another server or were you trying to migrate Confluence 3.5.13 database to another database type?

If you are migrating Confluence between servers, you can refer here for details: https://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers

If you are migrating Confluence database to another database , you may refer here: https://confluence.atlassian.com/display/DOC/Migrate+to+Another+Database

If you are simply moving your DB from one server to another you can just change the JDBC URL in <confluence.home>/confluence.cfg.xml (if you are using a direct JDBC connection) or in the definition of your datasource (if you are connecting via a datasource).

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

356 views 20 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