How to create a cloned Confluence instance with a new server ID and application ID

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

 

要約

Test instances will often be cloned from existing production hosts using a snapshot from the host virtual machine. This duplication of the server ID can cause confusion and if there's an existing application link in production with Jira, the duplicated application ID will not allow for trusted application linking in the staging environment.  This page shows you how to create a cloned Confluence test instance with a new server ID and application ID for situations where Confluence is configured with an application link to Jira.

ソリューション

Create virtual machine clones for both Jira and Confluence and restore them to a new host.  The cloned instance should use a different application ID.  To achieve this, Confluence requires a new server ID and a new keystore entry:

  1. Shutdown the cloned instance(s)
  2. Generate a new server ID by installing a fresh, separate Confluence instance of the same version. 
  3. Copy its server ID (shown in setup wizard) and delete the instance.
  4. Edit the <confluence-cloned-home-directory>/confluence.cfg.xml with the new server ID by updating the confluence.setup.server.id attribute with the copied server ID.
  5. Update the server ID in cloned Confluence instance's database.  For example:

    UPDATE bandana SET bandanavalue = '<string>ABCD-E1F2-GH3I-JK4L</string>' WHERE bandanakey = 'confluence.server.id'
  6. Delete all of the existing rows in the KEYSTORE table:

    DELETE FROM keystore WHERE alias LIKE '%confluence%'

For Confluence instances running on versions 8.5.4, 7.19.17, 8.6.2, 8.4.5, 8.7.1 or newer:

  1. Download the .jar file from CONFSERVER-93646.
  2. Go over the Workaround section to re-initialize the KEYSTORE table of the cloned instance.
  3. Proceed with the trusted application configuration in Jira

For older Confluence versions:

  1. Download and install the script from CONFSERVER-11074.
  2. Restart the cloned instance
  3. Run the script from CONFSERVER-11074 to re-initialize the KEYSTORE table. This should result in a new application ID for the cloned instance, found in the KEYSTORE table.
  4. Proceed with the trusted application configuration in Jira

(info)  This will not only create new server IDs, but also new application IDs.



最終更新日: 2024 年 1 月 15 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.