Confluence 5.1 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
This document tells you how to upgrade from one version of Confluence to a later version. These instructions apply to the EAR-WAR Distribution of Confluence, deployed on your own existing application server.
If you want to upgrade the regular Confluence distribution, which includes Apache Tomcat as the application server, please refer to Upgrading Confluence 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 5.0?
If so, please review the Confluence 5.0 Release Notes for important information about this version of Confluence.
また、これまでの Confluence の主要バージョンへのアップグレードを省略する場合は、バージョン間で Confluence インストールに影響を与えうる特定の変更があるかもしれませんので、各主要バージョンのアップグレードノートを確認することを強く推奨します。アップグレードノートの概要ページに、最近の Confluence 主要バージョンのアップグレードノートへのリンクがあります。
最後に、サポートするプラットフォームページで、お使いの Java バージョン、オペレーティング システム、アプリケーション サーバー、データベース、ブラウザーが本バージョンの Confluence によりサポートされていることを確認してください。Confluence のサポート終了のお知らせページで、サポートしているプラットフォームについての重要情報が見つかります。
On this page:
作業を開始する前に
Changing your Database?
アップグレードと同時に使用するデータベースを変更する場合は、アップグレードを先に実行することを推奨します。その後、異なるデータベースへの移行に従ってください。
- Note that you need current software maintenance to perform the upgrade.
- アップグレード開始前に、ライセンスサポートが有効期間内にあることを確認してください。
- If your current license has expired but you have a new license with you, please update your license in Confluence before performing the upgrade.
If you forget to do this and your license has expired, you will receive errors during the upgrade process. Refer to the instructions on upgrading beyond current license period.
- インストールする新しい Confluence のリリースノートと、インストールをスキップするバージョンの中にメジャーバージョンがあった場合はそのメジャーバージョンのアップグレードノートの内容を確認してください。ユーザーの Confluence システムに対して大きな影響のある変更が含まれている可能性もあるため、これらのノートを確認することは重要です。最近の Confluence メジャーバージョンのアップグレードノートは、アップグレードノート概要をご覧ください (各々のアップグレードノートは、対応するリリースノートが親になっています)。
- システム環境 (例えば、データベースシステム、オペレーティングシステム、アプリケーションサーバーなど) が引き続き Confluence のシステム要件を満たしていることを確認してください。新しいバージョンは過去のバージョンとはシステム要件が異なる可能性があります。
- Confluence EAR-WAR 版をご利用の場合は、Confluence の EAR-WAR 版をインストールで Confluence 実行に必要な追加作業の有無を確認してください。
- 外部データベースをご利用の場合は、そのデータベースの既知の問題点をすべて調べておく必要があります。さらに、Confluence のデータベースコネクタープリンシパル (データベースユーザーアカウント) にデータベーススキーマを変更できる権限が付与されていることを確認してください。
- Note which plugins are installed and enabled on your current Confluence instance. Please verify whether a compatible version of the plugin is available in the version of Confluence you are upgrading to. This information is available via the 'Plugins' menu in your Administration screens, and selecting Confluence Upgrade Check. This will tell you which plugins have an updated version which is compatible with your target upgrade version. You can also check the respective home pages for these plugins on the Atlassian Plugin Exchange. Once you have confirmed the availability of compatible versions, you should upgrade your plugins after successfully upgrading Confluence. Please test these first by applying them to the latest Confluence version in a test environment.
- Confluence のカスタマイズを行っている場合は、それが最新バージョンにも対応しているか否かを確認してください。例えばレイアウトの変更や自分だけのカスタムテーマの適用を行っている場合は、先にテスト環境でこれらを Confluence 最新バージョンに適用するテストを行っておいてください。Confluence に設定したカスタマイゼーションの内容を確認してください。
- ウィルス対策ツールやインターネットセキュリティーツールの中には Confluence アップグレードの障害となるものがあり、アップグレードが成功しないことがあります。お使いのウィルス対策ツールやインターネットセキュリティーツールが過去にそのような問題を起こしたことがある場合やそのような懸念がある場合は、Confluence のアップグレードに進む前にこれらのツールを無効化してください。
- アップグレード後に Confluence がインデックスの再構築を行う場合があります。これが起こった場合、アップグレード後のサーバー負荷が増加します。本番環境用途の Confluence をアップグレードする場合は、必ず他のユーザーの利用時間外に行ってください。
バックアップ
Confluence のアップグレードを実行する前に、以下に示すバックアップ作業を行う必要があります:
- Back up your Confluence Home directory. The Confluence Home directory is the folder where Confluence stores its configuration information, search indexes and page attachments. If you are using the embedded HSQLDB database supplied for evaluation purposes, the database files are also stored in this directory.
Tip: Another term for 'Home directory' would be 'data directory'. The location of the Home directory is stored in a configuration file called
confluence-init.properties, which is located inside theconfluence/WEB-INF/classesdirectory in your Confluence Installation directory.The Confluence installer will automatically prompt you to run a backup, storing the files in a .zip archive at the same level as your Confluence Home directory.
- Back up your database. Perform a manual backup of your external database before proceeding with the upgrade, and double check that the backup was actually created properly. If you are not a database expert, or unfamiliar with the backup-restore facilities of your database, simply restore the backup to a different system to ensure the backup worked before proceeding. This recommendation is generally a good best practice. Surprisingly, many companies get in trouble for broken database backups because they skip this basic but vital "smoke test" of the operation.
The 'embedded database' is the HSQLDB database supplied with Confluence for evaluation purposes. You don't need to back it up since it is stored in the Confluence home directory. You should not be using this database for production systems at all, so if you happen to be using HSQLDB in a production system, please migrate to a proper database before the upgrade. Read about the various shortcomings of HSQLDB.
- Back up your Confluence Installation directory or your Confluence webapp (if you are using Confluence EAR-WAR edition).
The Confluence installer will automatically back up these files, storing the files in a .zip archive at the same level as your Confluence installation directory. The 'Confluence Installation directory' is the directory into which the Confluence application files and libraries have been unpacked (unzipped) when Confluence was installed. Confluence does not modify or store any data in this directory. This directory is also sometimes called the 'Confluence Install directory'.
テスト環境におけるアップグレードテスト
プロダクションサーバーをアップグレードする前に、必ずテスト環境でのテストを実施してください。
1. サーバー間での Confluence の移行に従って、本番環境用 Confluence 環境の現在のスナップショットをテストサーバーに作成してください。
そのクローン環境でアップグレードを実行してください。
3. Test all your unsupported plugins and any customisations with the new version before proceeding on your production server. You can read more about supported and unsupported plugins.
アップグレードの実行
If you are migrating servers or migrating databases, perform those operations in separate steps.
The upgrade process allows you to unzip the new Confluence installation 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:
- Shut down your existing Confluence instance.
- Download the Confluence EAR-WAR zip file: Go to the Download Center, and click 'Show all' to find the EAR-WAR zip file.
- If you are on Windows, please check your unzip program before extracting the downloaded zip file. Some archive-extract programs cause errors when unzipping the Confluence zip file. You should use a third-party unzip program like 7Zip or Winzip. If you do not have one, please download and install one before continuing:
- Use your unzip program to unzip the installation file. You should now have a new directory called
confluence-<version>.- In the rest of this document, we will refer to this as the
<Installation-Directory>. - ディレクトリパスのスペースは使用しないでください。
- You can read more about the Confluence Installation directory.
- In the rest of this document, we will refer to this as the
- Edit the
confluence-init.propertiesfile found at:<Installation-Directory>\confluence\WEB-INF\classes\confluence-init.properties
and update 'confluence.home' to point to your existing Confluence Home directory.- Make sure you have first backed up your Home directory.
- Open the
confluence-init.propertiesfile in a text editor such as Notepad. このラインまでスクロールします:
# confluence.home=c:/confluence/data
- 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.
- If you are using Tomcat, you need to update either your
confluence.xmlorserver.xml(depending on where you have defined the Confluence context descriptor) to point to the location of the new Confluence installation (also remember to copy over any customisations such as a tomcat datasource if you have one). - If you have delegated your user management to JIRA, LDAP 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(Confluence 2.2 以降からアップグレードする場合)Upgrading to Confluence 3.5+ and using JIRA user management?
Please review our KB article first: Upgrade to Confluence 3.5 with JIRA User Management Fails
If you are upgrading from an earlier version of Confluence (2.5.5 and earlier) and are copying your existing
atlassian-user.xmlfile 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" />
- 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.jarand<Installation-Directory>/confluence/WEB-INF/classes/crowd.properties. If you need more information, please refer to the Crowd documentation. - Restart your application server and start 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. (There is no easy and quick way to determine if the indexing process is completed. Please wait for approximately 10 minutes after the server start up before accessing Confluence via a web browser.)
- 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_indexestotrueto skip automatic index creation. - 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.
- 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.
- Consider any adjustments you need to make to customisations and special configurations, as described below.
Reapplying Customisations to your New Confluence
ヒント: 以下の手順は、Confluence サーバーおよび/または Confluence のルック アンド フィールに特別な設定を適用している上級 Confluence ユーザー向けのものです。 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:web.xml file and and copy over any relevant modifications from your old web.xml file, which relate to these customisations.<Installation-Directory>\conf\server.xml file as described in Change listen port for Confluence.<Installation-Directory>\conf\server.xml を編集し、古い server.xml からデータソース定義をコピーします。<Installation-Directory>\bin\setenv.sh または <Installation-Directory>\bin\setenv.bat ファイルのいずれかでメモリ フラグ (Xms および Xmx) を変更した場合は、新しいインストールで変更を加えることをお勧めします。パラメーターは JAVA_OPTS 変数で指定されています。
Checking for Known Issues and Troubleshooting the Confluence Upgrade
After you have completed the steps required to upgrade your Confluence installation, check all the items on the Confluence post-upgrade checklist to ensure that everything works as expected. If something is not working correctly, please check for known Confluence issues and try troubleshooting your upgrade as described below:
関連トピック
Upgrading Confluence
Upgrading Confluence
Confluence Installation Guide
Important Directories and Files
Site Backup and Restore
Database Configuration
