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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.