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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

816 views 2 19
Join discussion

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