Cannot Create Trusted Application Communication for Cloned Instance
Configuring a trusted communication application between JIRA and a cloned Confluence instance failed due to this error message, thrown by JIRA:
The Trusted Application with the specified applicationId: confluence:14749191 already exists
Each of the trusted application configurations requires a unique application ID. In this case, the original application ID (14749191) owned by the production instance is associated to the cloned instance, too. JIRA is unable to proceed due to this clash.
The cloned instance should use a different application ID. To achieve this, Confluence requires a new server ID and a new keystore entry.
Follow these steps:
- Shutdown the cloned instance
- Generate a new server ID by installing a fresh, separate Confluence instance (of the same version). Copy its server ID (shown in setup wizard) and scrap the instance.
- Update the <confluence-cloned-home-directory>/confluence.cfg.xml with the new server ID. Look for the "confluence.setup.server.id" attribute.
Update the server ID in database, for instance:
UPDATE bandana SET bandanavalue = '<string>ABCD-E1F2-GH3I-JK4L</string>' WHERE bandanakey = 'confluence.server.id'
Delete all of the existing rows in the KEYSTORE table:
DELETE FROM keystore WHERE alias LIKE '%confluence%'
- Download and install the script from CONF-11074
- Restart the cloned instance
- Run the script from CONF-11074 to re-initialise the KEYSTORE table. This should result in a new application ID for the cloned instance, found in the KEYSTORE table
- Proceed with the trusted application configuration in JIRA