It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence upgrade fail

Rhys Parker Jul 11, 2013

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
Hanis Suhailah Jul 11, 2013

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?

1 vote
Thomas Friedrich Oct 15, 2013

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

964 views 0 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you