I encounter a problem with a JIRA (5.x/6.x) regarding the Current Working Directory and the JIRA_HOME settings.
In the JIRA Administration => System Info I found the entry:
Current Working Directory = /opt/atlassian/inst
But my JIRA_HOME in the /opt/atlassian/inst/jira/atlassian-jira/WEB-INF/classes/jira-application.properties is set to
I found a directory "attachments" under /opt/atlassian/inst and would have expected it to be located under /opt/atlassian/data/jira.
Can the Current Working Directory be configured somehow? I would like to keep everything in one place.
The JIRA home directory is specified in the file <JIRA_INSTALL>/atlassian-jira/WEB-INF/classes/jira-application.properties . Check it is set to the correct value. If you change it you will need to restart JIRA to pick up the changes.
Please be aware that attachments and config files are stored in your JIRA home. Please make sure you set it to a directory which contains the right data.
More info in Setting your JIRA Home Directory.
Thank you for your reply!
Maybe my description is a little bit misleading - but as mentioned above:
"... my JIRA_HOME in the /opt/atlassian/inst/jira/atlassian-jira/WEB-INF/classes/jira-application.properties is set to
Where JIRA_INSTALL = "/opt/atlassian/inst/jira"
And even with the setting above I get a different Current Working Directory ( = /opt/atlassian/inst)
Both have different meaning :
jira.home=/opt/atlassian/data/jira : It means this is where all jira's plugin , log configurations files are present. (it is constant)
Current Working Directory ( = /opt/atlassian/inst) : This means under which directory path you have started your jira application server (It can vary depending from where you start ur server)
Thank you for your answer!
But this is actually not what I would expect - imagine one user starts JIRA from his/her home directory (or even worst, from root s home directory) with an absolute path. How can JIRA access those folder/files later on?
Wouldn t it more convenient to use the JIRA_HOME right away? Why use another location anyway?
When I understand you right, JIRA uses the current directory location (./) for the CWD - right?
When I cd into /tmp and start JIRA with <ABSOLUTE_PATH_TO_JIRA_INST>/bin/start-jira.sh then JIRA will use /tmp as CWD - right?
This sound to me like JIRA don t cares for what I have defined in <JIRA_INST>/jira/atlassian-jira/WEB-INF/classes/jira-application.properties as jira.home.
And what I meant is that I would expect a behaviour where anything would be located in the jira.home that I declared - any other behaviour feels to me like magic/blackbox.
Another problem - what happens when Admin 1 is used to restart JIRA from his home dir using an absolute path. Admin 2 is always switching to JIRA_INST for doing that. First Admin 1 restarts JIRA and a few days later Admin 2 restarts JIRA. How can JIRA know about the different content in the different CWD locations (one in Admin 1 s home dir and one in <JIRA_INST>) ?
Maybe I did not get you point very well so far but I hope I can make clear, what my problem is :-)
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs