Changing JIRA Home Directory in jira-application.properties doesn't work

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When you change the JIRA Home Directory in the jira-application.properties, the JIRA Home Directory is not changed and is still using the old directory.

Cause

As mentioned in the Setting your JIRA Home Directory documentation

If you have specified different values for a 'jira.home' property in the jira-application.properties file and a JIRA_HOME environment variable, the value of the JIRA_HOME environment variable takes precedence.

Also, a 'jira.home' web context property defined in your application server overrides the value of the 'jira.home' property defined in your jira-application.properties file. However, a JIRA_HOME environment variable defining your JIRA Home Directory will override either of these 'jira.home' values.

This is the order of JIRA home directory configurations according to priority

  1. JIRA_HOME="/path/to/jira/home" (setenv.sh)

  2. JIRA_HOME="/path/to/jira/home" (configured in your operating system)

  3. <Parametername="jira.home"value="c:/jira/home"/> (server.xml)

  4. jira.home = /path/to/jira/home (jira-application.properties)

This means JIRA home directory configured in setenv.sh will overide all other JIRA home directory configurations. JIRA home configured in the operating system will overide server.xml and jira-application.properties and so on.

Resolution

If configuring jira-application.properties doesn't work, check the other configuring options which takes precedence and make sure that none of them are configured.

 

To check the environment configured in operating system, run the following command

Ubuntu : env

Windows: set

And make sure that the JIRA_HOME environment is not configured

 

Last modified on Sep 16, 2014

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.