Confluence upgrade failing from 5.4.1 to 5.5.X

Hi All,

I am upgrading the Confluence from 5.4.1 to 5.5.4.

I have tried the upgrade from 5.4.1 to 5.5.3 as well.

This upgrade fails and generates the SQL exception in the log file.

Below are the log entries from the install4jerror file:


com.install4j.api.beans.UndefinedVariableException: installer:installationID

at com.install4j.runtime.installer.InstallerVariables$InstallerReplacementCallback.handleError(Unknown Source)

at com.install4j.runtime.installer.InstallerVariables$InstallerReplacementCallback.getReplacement(Unknown Source)

at com.install4j.runtime.util.StringUtil.replaceVariable(Unknown Source)

at com.install4j.runtime.installer.InstallerVariables.replaceVariables(Unknown Source)

at com.install4j.runtime.installer.InstallerVariables.replaceVariables(Unknown Source)

at com.install4j.runtime.installer.InstallerVariables.replaceVariables(Unknown Source)

at com.install4j.api.beans.AbstractBean.replaceVariables(Unknown Source)

at com.install4j.runtime.beans.actions.registry.SetRegistryValueAction.getKeyName(Unknown Source)

at com.install4j.runtime.beans.actions.registry.SetRegistryValueAction$PerformedAction.<init>(Unknown Source)

at com.install4j.runtime.beans.actions.registry.SetRegistryValueAction.execute(Unknown Source)

at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(Unknown Source)

at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(Unknown Source)

at com.install4j.runtime.installer.ContextImpl.performAction(Unknown Source)

at com.install4j.runtime.installer.controller.Controller.executeActions(Unknown Source)

at com.install4j.runtime.installer.controller.Controller.handleCommand(Unknown Source)

at com.install4j.runtime.installer.controller.Controller.start(Unknown Source)

at com.install4j.runtime.installer.Installer.main(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)

And these are the log entries in the atlassian-log file:

2014-08-26 07:45:33,810 INFO [localhost-startStop-1] [confluence.upgrade.impl.DefaultUpgradeManager] beforeUpgrade Finished generating pre-upgrade recovery file.

2014-08-26 07:45:35,118 ERROR [localhost-startStop-1] [hibernate.tool.hbm2ddl.SchemaUpdate] execute Unsuccessful: alter table users add id numeric(19,0)

2014-08-26 07:45:35,119 ERROR [localhost-startStop-1] [hibernate.tool.hbm2ddl.SchemaUpdate] execute Column names in each table must be unique. Column name 'id' in table 'users' is specified more than once.

2014-08-26 07:45:35,121 ERROR [localhost-startStop-1] [hibernate.tool.hbm2ddl.SchemaUpdate] execute could not complete schema update

java.sql.SQLException: Column names in each table must be unique. Column name 'id' in table 'users' is specified more than once.

at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(

at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(

at net.sourceforge.jtds.jdbc.TdsCore.nextToken(

at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(

at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(

at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(

at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(

at net.sourceforge.jtds.jdbc.JtdsStatement.executeUpdate(

at net.sourceforge.jtds.jdbc.JtdsStatement.executeUpdate(

at com.mchange.v2.c3p0.impl.NewProxyStatement.executeUpdate(

at net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.execute(

at bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(

at bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(

at com.atlassian.confluence.upgrade.AbstractUpgradeManager.upgrade(

at com.atlassian.confluence.upgrade.UpgradeLauncherServletContextListener.contextInitialized(

at org.apache.catalina.core.StandardContext.listenerStart(

at org.apache.catalina.core.StandardContext.startInternal(

at org.apache.catalina.util.LifecycleBase.start(

at org.apache.catalina.core.ContainerBase$

at org.apache.catalina.core.ContainerBase$

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$ Source)

at Source)

2014-08-26 07:45:35,150 ERROR [localhost-startStop-1] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized Upgrade failed, application will not start: com.atlassian.config.ConfigurationException: Cannot update schema

com.atlassian.confluence.upgrade.UpgradeException: com.atlassian.config.ConfigurationException: Cannot update schema

at com.atlassian.confluence.upgrade.AbstractUpgradeManager.upgrade(

Any help to resolve this issue will be appreciated.

2 answers

This widget could not be displayed.

Strange, please rollback your Confluence to version 5.4.1, then install a new confluence on version 5.4.1 and make sure to use the same database as your production confluence (if production uses oracle create a new schema for the vanila installation in oracle, for instance).

After that is done compare the users table from the production installation and the vanila installation, add any missing constraint's, PK's or FK's.

Try the upgrade again.

If both tables are identical let me know.

Thanks and Regards,
David|Confluence Support Engineer


Thanks for the responce.

I am using the MS SQL 2008 Standard edition.

I have compared the table "users" there is only one column name "id"



Could you please compare constraints, keys and indexes as well :)?

Also let me know the size of your instance (around how many users your confluence have ).

Thanks and Regards,

David|Confluence Support Engineer

Hi Ram, I am also facing the same issue, please share the solution for this. Thanks Fahad

What is the status of this one? Did you manager to get it work? Receiving the same error when upgrading to 5.6.5

This widget could not be displayed.

Do you use Oracle Database?


Stephen Brannen | Confluence Support

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

370 views 2 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