How do I change the jira server id for the test instance for creating app link Bamboo

Dharma Raju June 10, 2017

Hi 

We are having Jira, Bamboo and BitBucket are running in Production. so for upgrade process, we created the copy of the prod server and done upgradations of all the three. 

For testing purpose, we have to create Jira-test instance app link in Bamboo Prod so while creating an app link for Jira-test server throwing an error server ID already exist because there was an app link of Jira-prod(old version) so due to the same server ID Jira-test and Jira-prod. 

We followed the following link for changing the server id but not working

https://confluence.atlassian.com/jirakb/changing-server-id-for-test-installations-285839562.html

Please help us if you know the way to change the server-id

 

1 answer

2 votes
Jeremy M
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2017

Dear Dharma,

1) Acquire a new Server ID:

Install a new, temporary instance of the JIRA application. Make sure the installation points to a new, empty home directory and a new, empty database

Start the new, temporary instance. A new server ID will be created in the database.

Run the following query on your new database to retrieve the new ID: 

select * from propertystring where id in (select id from propertyentry where PROPERTY_KEY='jira.sid.key');

2) Replace the Server ID on your instance:

Use this new server ID in your test instance. You need to change <ID> in the query with the new server id. The format is 4 sets of 4 capitalized alpha numeric characters separated by hyphens. Example: BP8Q-WXN6-SKX3-NB5M

UPDATE propertystring SET propertyvalue = '<ID>' where id = (select id from propertystring where id in (select id from propertyentry where PROPERTY_KEY='jira.sid.key'));

(Please note that this SQL UPDATE command above will not work for MySQL environments.  It tends to generate an error such as (ERROR 1093 (HY000) You can't specify target table 'propertystring' for update in FROM clause)  As such there is an alternative query you can run to perform the same change)

UPDATE propertystring SET propertyvalue = '<ID>' where id = (select id from propertyentry where PROPERTY_KEY='jira.sid.key');

Restart your test server.

I hope this can be of use to you,

Friendly Regards

Jeremy Mooiman

Prepend

 

 

Suggest an answer

Log in or Sign up to answer