Confluence Upgrade – Duplicate Entry Error

by Michael Scepaniak on December 21, 2008 in software development

I‘ve been running a Confluence installation (using a personal license) for a couple years. Recently, I’ve been experiencing some issues with it, and figured that it might be time to upgrade (from version 2.2.5, which is from July 2006, I’m guessing). At the time of this writing, the current version (and the version to which I wanted to upgrade), is version 2.10.

My upgrade process consisted of performing a clean install of version 2.10 and importing a backup of the content from my version 2.2.5 installation. According to the documentation, this is an expected and supported operation for these version numbers. But, it did not work. The error I received (in the atlassian-confluence.log file):

I did some Googling, but wasn’t able to find a solution. I looked closer at the information contained in the log and guessed that there were really only two records at issue, and that they both were drafts:

instance of 'class com.atlassian.confluence.pages.Draft' with id 13.

instance of 'class com.atlassian.confluence.pages.Draft' with id 14.

I opened the Confluence entities.xml file (located in the back-up zip) and searched for “draft”. As hoped, I found two elements:

I deleted these two elements from the XML file, re-zipped the back-up, re-executed the import, and it worked perfectly.

Mike
Want to be notified when new articles are posted?
Enter your email address:

{ 0 comments… add one now }

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed

Previous post:

Next post:

Member of The Internet Defense League