We would like to move our application data from /var/atlassian to /opt/atlassian (new LVM mount).
Can someone provide information on how to do this? I assume I cannot simply copy the directory.
Thanks in advance for any help.
Actually, you almost can "just copy it".
Stop Jira and make the copy. Make sure you retain (or recreate) all permissions and ownership when you copy.
Go to the Jira installation and find /atlassian-jira/WEB-INF/classes/jira-application.properties - edit that and change the home directory line (it's likely to be the only one in there). If it is blank though, leave it alone, and go instead to /bin/ and go through all the .sh files to look for where the home directory is set.
Restart Jira. Check the system information page to ensure it's got the new path. You don't even need to re-index.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I broke the permissions....
Are you aware of any documentation to restore the permissions? The app won't start and all permissions show as root:root with 750 ACL.
Edit:
I had to set permissions to jira:root 770 to get it to start...Doesn't feel good
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, you're right, we shouldn't run Jira as root.
The original install usually tries to create a new dedicated user for running Jira with, and that user should own all the installation and data files, as well as running Jira. (There's a mix of permissions on my systems but 750 for all the data should work fine with the dedicated user as the owner)
Do you have such a user? How do you normally start Jira?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a Jira user. I normally start Jira using init scripts (/etc/init.d/jira start).
I didn't install this application just managing it now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not 100% sure, but it should. The config files to change are different though, and I can't remember which ones off the top of my head
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like BitBucket has an environment variable, BITBUCKET_HOME, which can be set in the file
<atlassian-install-dir>/bitbucket/6.7.1/bin/set-bitbucket-home.sh
Or .bat for Windows. Of course, I'm using version 6.7.1, so a different version might have a different solution. Thanks for the tip.
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.