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

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 2 hours ago in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

13 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you