How to change the server ID of Confluence
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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.
*Except Fisheye and Crucible
Summary
To obtain a new server ID to use in a test installation of Confluence. Please note this is not essential. If your test server has the same server ID as production it will not affect your production installation. The separate server ID can however be useful to help the Support team distinguish between your servers.
If you're having trouble setting up an Application Link because of duplicated server IDs, please refer to How to create a cloned Confluence instance with a new server ID and application ID instead.
Or, if your Server ID is missing, please refer to Server ID Shows as $action.serverId, $action.sid or n.v. for how to insert it.
Solution
If you would like to change the server ID on your test installation, you will need to acquire a new server ID for your test environment:
Install a new, temporary instance of Confluence. See Installing Confluence.
Choose the the zip file. Do not use the automatic installer.
Make sure the installation points to a new empty Confluence Home and other important directories.
Start the new, temporary Confluence instance. This will create a
confluence.cfg.xml
in the home directory you specified. Look in this file for the line:1
<property name="confluence.setup.server.id">BIBE-YA0Z-8EK6-SS9C</property>
The above line in your own file will contain a server ID that you can use.
On your test server, go to the
<<Confluence-Home>>/confluence.cfg.xml file
and replace the existing server ID with the one you have just obtained in the new temporary installation of Confluence.Check the Server ID in the database here:
1
select * from BANDANA where bandanakey = 'confluence.server.id';
And update it if it is not correct (use your own value):
1
update BANDANA set bandanavalue = '<string>BIBE-YA0Z-8EK6-SS9C</string>' where bandanakey = 'confluence.server.id';
Start up the test server, go to Administration --> License Details and update the license to your developer license that you generated from https://my.atlassian.com.
Was this helpful?