Linux Jira Startup Failed

Noud_de_Rover November 30, 2017

This issue pops up during installation: Could not create jira.home directory

I had successfully installed Jira before, but realized that it will be better to change the home directory to a different hard drive. So, now I have the installation folder: /var/www/html/jira and the home folder: /media/<user_name>/Shared/atlassian/application-data/jira

- All folders have been created by Jira during the setup, including /media/<user_name>/Shared/atlassian/application-data/jira
- The installation folder has full write permissions: Chmod 777.
- The jira user is owner of that folder
- No plugins, hence no database tables yet
- 2 TB space for Jira
- 32GB RAM to work with

And still I get this error during installation.

Last lines of the Jira log:

0:0:0:0:0:0:0:1 1123x363x5 - [30/Nov/2017:18:43:26 -0800] "GET /api?output=json&mode=history&limit=10 HTTP/1.1" 302 - 7086 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36" "-"
0:0:0:0:0:0:0:1 1123x362x4 - [30/Nov/2017:18:43:26 -0800] "GET /api?output=json&mode=history&limit=10 HTTP/1.1" 302 - 16900 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36" "-"
0:0:0:0:0:0:0:1 1123x365x4 - [30/Nov/2017:18:44:09 -0800] "GET /JiraLockedError HTTP/1.1" 503 - 42223 "http://localhost:8080/JiraLockedError" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36" "-"
0:0:0:0:0:0:0:1 1123x364x3 - [30/Nov/2017:18:44:07 -0800] "GET /JiraLockedError HTTP/1.1" 503 - 43012 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36" "-"
0:0:0:0:0:0:0:1 1123x366x5 - [30/Nov/2017:18:44:34 -0800] "GET /api?output=json&mode=queue&limit=5 HTTP/1.1" 302 - 60503 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36" "-"
0:0:0:0:0:0:0:1 1121x356x1 - [30/Nov/2017:18:44:26 -0800] "GET /JiraLockedError HTTP/1.1" 503 - 149127 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36" "-"
0:0:0:0:0:0:0:1 1122x360x3 - [30/Nov/2017:18:44:34 -0800] "GET /JiraLockedError HTTP/1.1" 503 - 114000 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36" "-"

Java info:

30-Nov-2017 17:53:56.363 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /var/www/html/jira/jre
30-Nov-2017 17:53:56.364 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_102-b14
30-Nov-2017 17:53:56.364 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation

I am running out of ideas and hopefully somebody can help.

Thanks so much!

 

1 answer

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 2, 2017

/var/www is absolutely the wrong place to install Jira.  It's a directory that is used by your web-server to serve up a site.  Installing Jira there makes the Jira *application* files available on your site, which is a massive security risk and utterly useless, as well as causing problems with permissions because the web-server user will try to secure parts of the application properly, which breaks it.

You should delete both of the directories you have mentioned, and start the installation properly.  The Jira data is fine where you said (we're deleting just to make it clean), but you need to install it in a location suitable for applications (e.g. /opt/atlassian/jira)

Noud_de_Rover December 5, 2017

Thanks Nic, I really appreciate your warning about the security risk. I have changed the Jira installation folder to /opt/atlassian/jira with a fresh installation, but of course this does not solve the initial issue regarding the home folder. I have done a couple of fresh installations, checked the Jira user, chmod all folders to 777 and still get the same error. I will reach out to Jira support directly to see if they have an explanation

Suggest an answer

Log in or Sign up to answer