How to Generate a New confluence.cfg.xml
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
If Confluence is started and takes you to the Setup Wizard, as if you were installing it for the first time, that means something has happened to prevent Confluence from finding its home directory, which is defined in <confluence_install_directory>/confluence/WEB-INF/classes/confluence-init.properties
.
If the <confluence_home_directory/confluence.cfg.xml
file is missing or damaged, here is a way to generate a new, valid one.
Step-by-Step Guide
Back up your production database and Confluence home directory.
- Create a new, blank database. This is solely for creating the new
confluence.cfg.xml
file and will be discarded later. - Create a temporary home directory. This is solely for creating the new
confluence.cfg.xml
file and will be discarded later. Edit
<confluence_install_directory>/confluence/WEB-INF/classes/confluence-init.properties
by changing it to point to the temporary home directory you created in Step 3.Confluence を起動します。
Go through the Setup Wizard. On the database configuration screen, point Confluence to the database you created in Step 2.
Complete the Setup Wizard.
Once the installation is complete, shut down Confluence.
At this point you should have a brand new Confluence installation with a temporary home directory containing a new (and complete)
confluence.cfg.xml
file.Copy that file to your actual home directory (the one you backed up in Step1). Delete the old
confluence.cfg.xml
file if it exists.Modify the new
confluence.cfg.xml
file by changing the database connection string so that it's pointing to your production DB.Modify
<confluence_install_directory>/confluence/WEB-INF/classes/confluence-init.properties
again by pointing it back to your existing Confluence home.Confluence を起動します。