Forums

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

Database configuration file isn't recognized

khouloud.gharbi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2020

I tried to make a new jira server use an existing database by adding the database settings to dbconfig.xml, I didn't know there is a specific process to follow in this case.

It didn't work so I stopped jira and renamed the dbconfig.xml to dbConfig-old.xml in the old jira server to remove the link between it and the database but that didn't help

Now I am trying to  get the old jira server to start again but it is like a new installed one, it doesn't recognize the database configuration file

1 answer

0 votes
Daniel Ebers
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.
March 15, 2020

Hi and welcome to the Atlassian Community!

If I get it right you are basically trying to revert the configuration like it was previously. One possibility why the application assumes there is no database would be that the permissions of dbconfig.xml got messed up somehow or the configuration was changed during the tests and need to be reverted.

In case everything fails I'd recommend you to carefully check if all changes and tests can be reverted, most probably by restoring from backups.

This documentation (https://confluence.atlassian.com/adminjiraserver/restoring-information-from-a-native-backup-938847709.html) should help you in case you need to take those steps. First of all I'd recommend you to double check if dbconfig.xml is at the right place, with proper permissions and with appropriate settings.

Cheers,
Daniel

khouloud.gharbi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 18, 2020

Hi Daniel,

 

Thank you for your answer, I am afraid I only backed up dbconfig.xml.

What are the right permissions for dbconfig.xml?

 

kind regards,

khouloud

Daniel Ebers
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.
March 18, 2020

In case you are running Jira under user Jira the following suffices:

chown jira:jira dbconfig.xml
chmod 600 dbconfig.xml

In case you are using a different user you need to adapt it accordingly.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer