Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a fresh server-id for Jira

Martin Bayreuther
Contributor
February 15, 2012

We are cloning our production instance to a test / development machine every other week. During the restore process, the Server-ID is restored as well which means both instances run with the same ID. Now we are going to implement some new features and we want to test that on the development machine.

However a new application link cannot be created due to "Duplicate Server ID". This is correct. However I have a developer license as well (which is not used anywhere because the dev instance is a clone),


How can I change the dev instances server ID to my correct dev license ID?

MaBa

4 answers

1 accepted

2 votes
Answer accepted
Colin Goudie
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.
February 19, 2012

Look for the propertyentry with PROPERTY_KEY=jira.sid.key and take note of its ID

e.g. One I checked as 10110

Then do a select * from propertystring where id=10110

The value returned is the Server ID

Ritesh Shah March 15, 2018

Hi Colin,

Is there any chance that jira may change column name of table ?  

 

Thanks.

0 votes
Mark Symons
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 12, 2012

A bit of googling for the Application Links error message...

We have already an Application Link to this application configured. Please update existing configuration.

...leads to a logged issue with a fix version scheduled:

APL-629: Using the server id is not a good way to track applinks

0 votes
Colin Goudie
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.
February 15, 2012

It is stored in an OSPropertyString

You can either

1. Export your JIRA instance to a zip. Unzip it, and read the entities.xml file. Change it. Reimport back

OR

2. Use the id from the above zip and change directly in the database

Give that a go

Martin Bayreuther
Contributor
February 15, 2012

Hello Colin,

our instances ZIP file is about 150 Meg. Unzipped it is huge and therefore it is quite hard to edit in a "conventional" way. I could use awk or perl or something.

But then again it will take about 4 hours for the import. So I will look into the DB approach.

Best regards

Martin

Martin Bayreuther
Contributor
February 16, 2012

Hello Colin or anybody else,

I cannot find the Server ID in the database. Do you happen to know where I can find the ID (which table, key for the table row).

Best regards

Martin

0 votes
Colin Goudie
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.
February 15, 2012
Martin Bayreuther
Contributor
February 15, 2012

Similar like that. I just need this for Jira not Confluence.

The Jira properties file does not contain the server id.

Neither does the server.xml.

I have no idea where it is stored.

Colin Goudie
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.
February 15, 2012

Oops sorry. Try my other attempt :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events