I'm trying to upgrade a Confluence install from 3.5 to 5.0.3 and I'm seeing the following exception:
2015-02-24 23:39:14,126 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized Upgrade failed, application will not start: Upgrade task com.atlassian.confluence.upgrade.upgradetask.LoginInfoUpgradeTask@223c36de failed during t
he UPGRADE phase due to: query did not return a unique result: 2
com.atlassian.confluence.upgrade.UpgradeException: Upgrade task com.atlassian.confluence.upgrade.upgradetask.LoginInfoUpgradeTask@223c36de failed during the UPGRADE phase due to: query did not return a unique result: 2
It seems like the issue is that some SQL query that is run during the task is not returning a unique result. Does anyone know the query that gets run here so I can run it myself and see what the conflict is? Has anyone else experience this issue and know of a solution?
Just before we investigate this logs any further, can you confirm which version of Confluence 3.5 are you running to try to upgrade directly to 5.0.3? You must be running 3.5.13 or 3.5.17 to be able to upgrade to 5.0.3.
Once you confirm it we can focus on this log entry.
I was able to find this other answer which have a similar error for the login info. This might help.
I recommend to enable the SQL logging from before the upgrade:
Change the following lines in
## log hibernate prepared statements/SQL queries (equivalent to setting 'hibernate.show_sql' to 'true') ## DEBUG, TRACE or ALL is required to see query strings log4j.logger.net.sf.hibernate.SQL=DEBUG
Then start Confluence upgrade and it should appear the SQL running from before the happens.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG