Does anyone have a fix for the $JIRA_HOME issue noted below?

Shawn January 15, 2019

Hello,

  Having a hard time starting jira on Ubuntu.  Keeps complaining about JIRA home directory.   It's there and my vars look correct.  Anybody else run into this and know the fix?  Poured over the documentation on Atlassian, no dice.  Here's the details:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty

$ echo $JAVA_HOME
/opt/jre1.8.0_191
$ echo $JIRA_HOME
/opt/jira_home
$ id -a jira
uid=5472(jira) gid=5472(jira) groups=5472(jira)
$ pwd
/opt/jira_home
$ ls -al /opt
drwxr-xr-x 13 jira jira 4096 Nov 28 03:15 atlassian-jira-software-7.13.0-standalone
drwxr-xr-x 3 jira jira 4096 Jan 15 11:57 jira_home
drwxr-xr-x 6 root root 4096 Oct 6 05:52 jre1.8.0_191

$ /opt/atlassian-jira-software-7.13.0-standalone/bin/start-jira.sh

2019-01-15 11:57:00,151 JIRA-Bootstrap ERROR [c.a.jira.health.HealthChecks] We can't locate your JIRA home directory
2019-01-15 11:57:00,153 JIRA-Bootstrap ERROR [c.a.jira.health.HealthChecks] Your JIRA home directory has important information on how JIRA works, so you need to make sure it's set up correctly.
Review our documentation for more information on setting your JIRA home.
2019-01-15 11:57:00,299 JIRA-Bootstrap INFO [c.a.jira.startup.JiraStartupLogger] Running JIRA startup checks.
2019-01-15 11:57:00,300 JIRA-Bootstrap FATAL [c.a.jira.startup.JiraStartupLogger] Startup check failed. JIRA will be locked.

 

2 answers

1 accepted

2 votes
Answer accepted
josh
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.
January 15, 2019

Check <installdir>/atlassian-jira/WEB-INF/classes/jira-application.properties and make sure the path is set correctly.

Shawn January 15, 2019

Hmmm... So it's got to be set as a variable($JIRA_HOME) *and* in the jira-application.properties file.  Interesting... the documentation should probably updated.

Thanks, it's up and running now.

-Shawn

josh
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.
January 15, 2019

I think there's an order of precedence. For instance, If the file I referenced did not exist, it may fall back to the env variable, etc. But since (presumably) the file did exist and had the incorrect path, that's the source of the failure because it did not continue by checking the env var for a legitimate path.

Shawn January 15, 2019

Yeah, sometimes the documentation can be confusing.  I was going by this:

Please note: 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.

Sourced here:

https://confluence.atlassian.com/adminjiraserver073/setting-your-jira-application-home-directory-861253889.html

Thanks,

-Shawn

0 votes
Espen Sandall March 4, 2020

Beware that the JIRA_HOME system variable is actually completely ignored, - when Jira is started by a Windows service!

Suggest an answer

Log in or Sign up to answer