Professional Documents
Culture Documents
This document tells you how to upgrade from one version of Confluence to a later version. These
instructions apply to the Standalone Distribution of Confluence. The Standalone distribution includes
Apache Tomcat as the standalone application server.
If you want to upgrade an EAR/WAR distribution deployed on your own existing application server,
please refer to Upgrading Confluence EAR-WAR Distribution instead.
Please also check the following before you start using this guide:
• The version of Confluence that you will be upgrading to. Refer to the documentation home page
to verify the latest Confluence version and to find documentation for older versions.
• The supported platforms for the version that you will be upgrading to. Please see the Supported
Platforms page for the version of Confluence that you will be upgrading to, as well as the End of
Support Announcements for Confluence.
• If you are running Confluence on a cluster, please see Upgrading a Confluence Cluster instead
of this document.
Upgrading to Confluence 3.2?
If so, please review the Confluence 3.2 Upgrade Notes for important information about this version of
Confluence.
Also, we strongly recommend that you check the upgrade notes for every major version of Confluence
that you are skipping, since there might be specific changes between Confluence versions that could
affect your Confluence installation. The upgrade notes for recent major versions of Confluence are
accessible from the Upgrade Notes Overview page.
Backing Up
Before you begin the Confluence upgrade, you must back up the following:
To install Confluence, unzip the new Confluence installation zip file into a directory of your choice and
then edit the configuration files to point your new installation to your existing data files. Follow these
instructions:
• Remove the '#' and the space at the beginning of this line, so that Confluence no longer
regards the line as a comment. The line should now begin with confluence.home.
• Update the directory name after the = sign, to point to your existing Confluence Home
directory.
6. If you are running Confluence as a Windows service, use <Installation-
Directory>\bin\tomcat5w.exe to remove and re-install the Tomcat service. Or use the
command prompt and type <Installation-Directory>\bin\service.bat remove
Confluence.
It is vital that you stop and remove the existing service prior to uninstalling the old instance of
Confluence! For more information on running Confluence as Windows service, please refer to the
Start Confluence automatically on Windows as a Service topic.
7. To remove the service installed by Confluence Auto Installer, you need to run the
<confluence auto installer installation folder>\UninstallService.bat.
8. If you are using an external database (i.e. not the embedded HSQLDB database supplied for
evaluation purposes), copy the jdbc driver jar file from your old Confluence Standalone
installation to the new Confluence Standalone installation. The jdbc driver jar file in the old
Confluence Standalone installation should be located in either the <Install-
Directory>/common/lib or <Installation-Directory>/confluence/WEB-INF/lib
directories. Once you have identified this file, copy it to either the <Install-Directory>/lib
or <Installation-Directory>/confluence/WEB-INF/lib directories of your Confluence
3.x installation.
9. If you have delegated your user management to JIRA, LDAP, Crowd, or any other external user
management system, copy the following files from your old Confluence installation to your new
Confluence installation:
• <Installation-Directory>/confluence/WEB-INF/classes/osuser.xml.
• <Installation-Directory>/confluence/WEB-INF/classes/atlassian-
user.xml (if you are upgrading from Confluence 2.2 or later).
If you are upgrading from an earlier version of Confluence (2.5.5 and earlier) and are copying
your existing atlassian-user.xml file from your previous instance, please ensure that
the hibernate cache parameter in this file has been enabled, to avoid performance related
issues. (NOTE: If you use Crowd for your user management, you do not need to do this.):
<hibernate name="Hibernate Repository" key="hibernateRepository"
description="Hibernate Repository" cache="true" />
10. If you have delegated your user management to Crowd, you will also need to copy the Crowd
client library and configuration files from your old Confluence installation to your new Confluence
installation: <Installation-Directory>/confluence/WEB-INF/lib/crowd-
integration-client-X.X.X.jar and <Installation-Directory>/confluence/WEB-
INF/classes/crowd.properties. If you need more information, please refer to the Crowd
documentation.
11. Consider any adjustments you need to make to customisations and special configurations, as
described below.
Your new version of Confluence may not function correctly or could encounter problems or
errors if these are not implemented.
12. Start your new version of Confluence.
Please note that Confluence will need to re-index attachments and this can take 5-10
minutes. Please wait until Confluence has finished indexing the attachments before trying to
access Confluence via your web browser.
13. During the startup process Confluence will create any missing database indexes. If you created
any database indexes on your own, please check those afterwards and remove those that
duplicate the indexes added by Confluence. Just in case you run into any errors which prevent
Confluence from starting up, you can set the system property
hibernate.hbm2ddl.skip_creating_missing_indexes to true to skip automatic index
creation.
14. Visit Confluence in your web browser and log in using a username from your previous Confluence
installation. You should be able to log in immediately, without seeing the Setup Wizard.
15. Take a quick look around your Confluence site to confirm that all your spaces and pages are
present and everything looks normal. You should see the new Confluence version number in the
page footer.
After upgrading your Confluence installation to a later version of Confluence, you need to consider any
customisations you have applied to your system and other special configurations:
• If you had previously installed Confluence/Tomcat as a Windows service, uninstall the service
(to ensure that the old Confluence cannot start automatically when the server restarts) and
reinstall the new one. For details please see Start Confluence automatically on Windows as a
Service.
• If you are using a Standalone Edition of Confluence and you have previously defined a
CATALINA_HOME environment variable, please check that it points to the correct path for the
new Confluence Tomcat server.
• If you had previously connected your Confluence installation to an external database via a JNDI
datasource or you implemented SSL, edit your new web.xml file and and copy over any relevant
modifications from your old web.xml file, which relate to these customisations.
• If you were previously running Confluence on a non-standard port, edit your new
<Installation-Directory>\conf\server.xml file as described in Change listen port for
Confluence Standalone.
• If you had previously defined a Tomcat datasource, edit your new <Installation-
Directory>\conf\server.xml and copy over the datasource definition from your old
server.xml.
• If you were previously using any plugins, install the latest compatible version and disable any
plugins that are incompatible with your new version of Confluence. The easiest way to do this is
to use the Plugin Repository in the Confluence Administration Console.
• If you are using any customised themes, please check that they are displaying as expected.
Some further customisation may be required to ensure compatibility with your new version of
Confluence.
• If you had previously customised the default site or space layouts, you will need to reapply your
changes to the new defaults as described here.
• If you had previously modified the Confluence source code, you will need to reapply your
changes to the new version.
• If you were previously running Confluence over SSL, you will need to reapply your configuration
as described in Adding SSL for Secure Logins and Page Security.
• If you had previously modified the memory flags (Xms and Xmx) in either the <Installation-
Directory>\bin\setenv.sh or the <Installation-Directory>\bin\setenv.bat file,
you may want to make the modifications in your new installation. The parameters are specified in
the JAVA_OPTS variable.
• If you had changed the Confluence interface text, you will need to pull over the
ConfluenceActionSupport.properties file.
• If you were using a custom SSO authenticator or the utility to Automatically Add LDAP users to
the confluence-users Group, change seraph-config.xml to the correct authenticator.
• Did you encounter a problem during the Confluence upgrade? Please refer to the guide to
troubleshooting upgrades in the Confluence Knowledge Base.