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

0 votes
Answer accepted

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?

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
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,268 views 2 13
Read article

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