Hi,
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
jira.home=/opt/atlassian/data/jira
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.
Best Regards,
Christian
@christian
The CWD is automatically picked by JiRA from where you run the application server(startup.sh)
Hi Dipti,
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 :-)
Regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@christian
Why would Jira require other files/folder , if it has every configuration in jira_home(which is configured) and the installation folders which will be accessed ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dipti,
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?
Regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay - if so - where can the Current Working Directory be set?
I would like to like to set it to /opt/atlassian/data/jira like the jira.home variable defined in my <JIRA_INST>/jira/atlassian-jira/WEB-INF/classes/jira-application.properties.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@christian,
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
jira.home=/opt/atlassian/data/jira ..."
Where JIRA_INSTALL = "/opt/atlassian/inst/jira"
And even with the setting above I get a different Current Working Directory ( = /opt/atlassian/inst)
Regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.