Hello, I want to redirect attachments to a different directory to omit storage and securtity issues in the docker container I run Jira from.
I created a symbolic link as described here
But if I create an attachtment in Jira I get an error, that writing was not possible. I set the access rights to the jira user with full read/write permissions via chown and chmod.
Any Idea what goes wrong here?
Hi Mirko - We actually use a marketplace add-on called Cloud Files. Very reasonably priced and we store our documents in an AWS S3 bucket - also at a low cost.
Hi @Mirko
Did you try copying a test file to that location using your Jira user?
Can you check in the Jira log file for a detailed error?
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
if I try to change from root to jira in the atlassian docker container with
sudo -i -u jira
I get:
bash: sudo: command not found
the directory properties look like this
lrwxrwxrwx 1 jira jira 22 Dec 29 12:13 attachments -> /JiraData/attachments/
If I try to store an attachment in Jira I get this error
Could not save attachment to storage: Unable to create target directory /var/atlassian/application-data/jira/data/attachments/MYT/10000/MYT-1
Mirko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Most likely meaning you do not have sudo installed in the container. Here is a good explanation https://stackoverflow.com/questions/51734540/bash-sudo-command-not-found#51734578
As to using symbolic link for attachments, well that’s not something I can recommend and doubt Atlassian would as well , so This is unexplored and not recommended territory for me.
The one option I see here is exposing your home directory to standard operating system. Meaning you can access it from your terminal without docker exec command. I have seen this done on test instances and they may be what you are looking for but I am no expert with docker.
Hope the suggestion helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ismael,
maby I'm on the wrong track. I just want to backup my Project and attachments in case of a server failure. But I didn't find any practical solution yet. My instance is running on my home server and I have a NAS that would be availiable for backups but with which program? Jira does not seem to be very user friendly concerning backups.
Any advice?
Thx!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I figured out the issue.
When mapping a folder into docker it gets mounted like
drwxr-xr-x 1 root root
Here the jira user cannot enter subfolders even if those have the correct properties.
I open access to all users like so
drwxrwxrwx 1 root root
know Jira is able to export Backups and attachments into this link.
Basic issue but I wanted to post this, with only basic cmd knowledge I guess it could be an issue for somebody else
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.