Forums

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

Running Jira as a Windows NT Service user

Julian Carroll
Contributor
March 22, 2019

I have Jira setup to run as a Windows service user "NT Service\<service name>". I have granted permissions to that user as follows:

  • Full control on c:\program files\Atlassian\Jira
  • Full control on c:\program files\Application Data\Jira

The instance appears to run just fine, but I am receiving healthcheck problems, with the following exception:

2019-03-22 11:01:08,578 HealthCheckWatchdog:thread-8 WARN [c.a.t.healthcheck.concurrent.SupportHealthCheckTask] Unable to complete execution of health check Lucene index files location due to an exception
java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.nio.file.AccessDeniedException: C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes

Permissions on this directory show that local user "NT Service\<service name>" has full control. Note that no network files are accessed.

Does the healthcheck run as a different to the service?

2 answers

1 accepted

0 votes
Answer accepted
Julian Carroll
Contributor
March 25, 2019

Turns out this was an inaccurate error from Jira. The permissions issue was actually on C:\Program Files\Atlassian. I granted full access to both the Jira and Confluence service users on this directory and all is working fine. This is a bit of a pain because it means both Jira and Confluence can see and edit each other's directories, which is not great practice from a security point-of-view.

Mike Rathwell
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 25, 2019
0 votes
Mike Rathwell
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 22, 2019

Hi @Julian Carroll 

Check the permissions on explicitly the "indexes" directory. It's entirely possible they didn't propagate down the tree.

Another consideration is that perhaps it'd be better to configure the JIRA_HOME to be some file system other than Program Files, preferably in a path that doesn't include spaces in it. You could be tripping over that as well.

Julian Carroll
Contributor
March 25, 2019

Thanks @Mike Rathwell but permissions seem to have propagated successfully. The service account has full control on the indexes directory. Thanks for the suggestion regarding changing JIRA_HOME, but this is an existing instance so I don't have the ability to move it from Program Files. 

Suggest an answer

Log in or Sign up to answer