Have any other Windows Server sys admins been able to successfully install Jira as a service where the Jira home directory is specified as the JIRA_HOME Windows environment variable?
I clearly have it set in the system environment variables on my Windows Sever as documented as a supported (and recommended) method of specifying the home directory path by Atlassian.
Startup check: Setting your JIRA home | Jira and Jira Service Management | Atlassian Support
When Jira runs in the foreground (via the start.jira.bat file), the variable is picked up by the process and the application is able to start. However, when I install the service the variable is no longer evaluated. I was running the service under the Network Service account, but also wasn't able to get the variable to resolve when running it as a domain user account.
What am I missing here? TIA
Hey @Paul Boyer
Running Jira on Windows from experience has been a colossal pain in the... you know :)
That being said, from memory I only encountered this issue during major version upgrades, and in many of these cases it was something to do with the service/folder ownership permissions. If the user who installed the service != to the user executing the service it can cause issues, bizarre I know but worth a gander.
KR,
Ash
Hi Ash,
Thanks for chiming in. I inspected the <install dir>\bin\service.bat script provided by Atlassian to install the Windows service. There is no reference to the %JIRA_HOME% variable in the script, so that makes me think that it isn't related to which user installs the service / which user the service runs as.
So long as the environment variable is set at the system level (not user level) then any new instance of cmd.exe should inherit that variable. As a test, I've set the %JIRA_HOME% variable at the system level using my administrator account. Then using PsExec I launched a new cmd.exe session as NT AUTHORITY\NETWORK SERVICE.
PsExec.exe -i -u "NT Authority\Network Service" cmd.exe
As you can see in the screenshot below the %JIRA_HOME% variable is available.
I've also confirmed that the NT AUTHORITY\NETWORK SERVICE security principal has full access to the Jira home directory to eliminate ACLs being an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.