Project Import - Attachments not importing

Karrie Dash April 12, 2017

I am attempting to import a project with its attachments using Project Import.

The attachments are located under /var/atlassian/application-data/jira/import/attachments.

Below is a collection of screenshots navigating through the attachments folder:

Capture.PNG

Is there a reason why the attachments are not importing with the Issues? The project imports with no errors.

1 answer

1 vote
Claudio Ombrella April 13, 2017

Did you specify the path in the Project Import screen? Also does JIRA have enough permissions to read from source and write to the destination. Recently we migrated 270,000 issues between 2 JIRA servers and attachments (a lot) were all imported successfully.

Karrie Dash April 13, 2017

When I select the backup file Jira says, "Backup attachments will be loaded from: /var/atlassian/application-data/jira/import/attachments". It only gives me the option to select the file name for the project data.

I changed the permission to the attachment folder to jira:jira (see below), it was root:root, but the attachments still do not load. Is it possible that the files are not loaded properly in the folder?

ss.PNG

Karrie Dash April 13, 2017

Thanks! I changed some permissions around and was able to get it to work.

Like Bryant Taylor likes this
Rushikesh Kshirsagar August 22, 2019

Hi @Karrie Dash - Could you please elaborate which permissions did you change and to what. We're facing the same issue. Thanks

Karrie Dash August 23, 2019

@Rushikesh Kshirsagar 

I think I had to change the root user's permissions to allow it to write files.

I found a file with a list of commands that I used throughout the process. I think one of these is what I used at some point in the process.

 

sudo chown -R ubuntu /var/atlassian/application-data/jira/

sudo chown -R jira:root /var/atlassian/application-data/jira/

cd /var/atlassian/application-data/jira/import

sudo ls -la /var/atlassian/application-data/jira/import

sudo mv karrie.zip /var/atlassian/application-data/jira/import

 After I did that, here is a list of the other commands that I ran at some point in the process

sudo chown -R ubuntu (filename)

sudo mv karrie.zip /var/atlassian/application-data/jira/import

--------

cd /var/atlassian/application-data/jira

sudo cp data/attachments ~/ -r

sudo chown -R ubuntu ~/attachments

---

sudo cp -Rf attachments/* import/attachments
(copies the files from export to import)

sudo cp import/attachments ~/ -r

sudo chown -R ubuntu ~/attachments

-----

rm filename
rm -r foldername

-----

sudo chown -R ubuntu jira/import

sudo chown -R jira:jira jira/import

 

Suggest an answer

Log in or Sign up to answer