Confluence upgrade fail

I am upgrade from 2-10-2 to 3.2 and have the below error 2013-07-12 11:31:05,502 ERROR [main] [atlassian.confluence.upgrade.AbstractUpgradeManager] doUpgrade Upgrade failed: Unable to complete the FollowFavourite upgrade task.
java.lang.RuntimeException: Unable to complete the FollowFavourite upgrade task

Any suggestions as to the cause? It's not very clear in the logs what is causing it

2 answers

1 accepted

This widget could not be displayed.

We will need to see the full logs to better understand what could have caused the failed upgrade and gather more info on the steps taken to execute it. I'd suggest to create a support ticket to us at https://support.atlassian.com and the engineer will assist you further on this.

Is there a solution for this problem?

This widget could not be displayed.

We find a solution for this Problem. We got a NullPointer Exception in Class FollowFavouriteUpgradeTask because of Null Values in the database.

There are two SQL Statements in this class. Our NullPointer comes from the second one where you get creator and owner of favorited space objects.

In our case the creator of some favorited content was null. You can check this with the following select:

SELECT c.CONTENTID, c.CREATOR 
FROM SPACES s, CONTENT c, CONTENT_LABEL cl, LABEL l 
WHERE c.CREATOR IS NULL AND s.SPACETYPE = 'personal' 
AND c.CONTENTID = s.SPACEDESCID 
AND cl.CONTENTID = c.CONTENTID AND cl.LABELID = l.LABELID 
AND (l.NAME = 'favourite' OR l.NAME='favorite') AND l.NAMESPACE = 'my';

if you get Values for this select then our in the same trouble as we were.

A solution might be to fill these null values with dummy values like in this update script:

UPDATE CONTENT SET CREATOR = 'migrationuser' WHERE CONTENTID IN(
SELECT c.CONTENTID 
FROM SPACES s, CONTENT c, CONTENT_LABEL cl, LABEL l     
WHERE c.CREATOR IS NULL AND s.SPACETYPE = 'personal' 
AND c.CONTENTID = s.SPACEDESCID AND cl.CONTENTID = c.CONTENTID
AND cl.LABELID = l.LABELID AND (l.NAME = 'favourite' OR l.NAME='favorite')
AND l.NAMESPACE = 'my');

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

400 views 4 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