Startup check: Setting your JIRA home
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Purpose
The JIRA application home directory contains key data that help define how JIRA works. You must have a JIRA home directory specified for your JIRA instance before you can start it. This document describes how to specify the location of the JIRA home directory for your JIRA instance.
Notes:
- You only need to specify the location of the root directory for your JIRA home. The sub-directories will be created automatically when JIRA is started or when you use a function in JIRA that requires a particular sub-directory.
- You can only have one JIRA home directory per JIRA installation. If you have multiple JIRA installations, you will need to set up a JIRA home directory for each installation. A lock is placed at the root level of a JIRA home directory when it is created to ensure that it can only used by one JIRA installation.
Solution
There are a few methods available for specifying the location of your JIRA application home directory in JIRA. However, please be aware of the notes below before your specify this location.
Recommended Methods
The recommended methods for specifying the location of your JIRA home directory in JIRA are to:
Use the JIRA configuration tool to change the location of your JIRA home directory
-
If you have specified different values for a '
jira.home
' property in thejira-application.properties
file and aJIRA_HOME
environment variable, the value of theJIRA_HOME
environment variable takes precedence.
Alternative method
Alternatively, you can specify the location of your JIRA home directory as property within your application server:
Configure a new web context property called '
jira.home
' for your application server. To do this, you need to define this web context property inside a<parameter/>
element (as a child of the<context/>
element) in yourserver.xml
file.The
server.xml
file is located within theconf
subdirectory of your JIRA application installation directory.<Context ...> ... <Parameter name="jira.home" value="c:/jira/home"/> ... </Context>
A '
jira.home
' web context property defined in your application server overrides the value of the 'jira.home
' property defined in yourjira-application.properties
file. However, aJIRA_HOME
environment variable defining your JIRA home directory will override either of these 'jira.home
' values.
What location should I specify for my JIRA home?
You can specify any location on a disk for your JIRA home directory. Please be sure to specify an absolute path.
Please note that you cannot use the same JIRA home directory for multiple instances of JIRA. We recommend locating your JIRA Home Directory completely independently of the JIRA installation directory (i.e. not nesting one within the other) as this will minimize information being lost during major operations (e.g. backing up and restoring instances).
How do I change my JIRA home?
- Set your JIRA home to the new location, using your preferred method as described in "How do I set my JIRA home?" (above).
- Restart JIRA.
Notes
- If you are using the Windows installer, you do not need to configure the JIRA home directory separately, as you will be prompted to specify this location during the installation process.
- The JIRA installer may not be able to create the home due to permission problems. If this is the case, please see Jira server fails to start with Could not create necessary subdirectory error.