Project Import - Attachments do not exist in the attachment directory

While trying to import two projects from one JIRA 5.2.7. installation to another JIRA 5.2.7. installation (physically apart), the pre-import log shows me this:

Attachments

There are more than twenty attachment entries that do not exist in the attachment directory. See your logs for full details.

After viewing the log it seems that the import cannot find the attachments specified, because Project Import points to a subfolder within the project attachment folder. The subfolder is always a 5 digit number (ie. /PANA/PAN-1190/50300, where PAN-1190 is the issue). Besides this, it looks like JIRA has a new way with storing it's attachments, because all the new folder has FILE-files within them. The name of the FILE-file is a 5 digit number as well (not the same as the subfolder number), in stead of 'name.jpg', 'name.docx', 'name.pdf' files. There is not one attachment successfully imported into the installation.

What is the best way to successfully import the attachments into the project with the Project Import functionality? The urgence is critical.

Below are two rows from the log as an example:

2013-03-03 11:22:30,943 JiraTaskExectionThread-6 WARN user 682x290x1 14ckgrx 0:0:0:0:0:0:0:1 /secure/admin/ProjectImportSummary!reMapAndValidate.jspa [imports.project.handler.AttachmentFileValidatorHandler] The attachment 'Rapport Gebruikers.xlsx' does not exist at 'C:\Program Files (x86)\Atlassian\Application Data\JIRA\import\attachments\PANA\PANA-1205\50341'. It will not be imported.

1. As an example: the 'Rapport Gebruikers.xlsx' file does not exist in the specified folder, only a '48371.file' file.

2. The '\50341' subfolder does not physically exist in the PAN-1205 folder.

2013-03-03 11:22:30,943 JiraTaskExectionThread-6 WARN user 682x290x1 14ckgrx 0:0:0:0:0:0:0:1 /secure/admin/ProjectImportSummary!reMapAndValidate.jspa [imports.project.handler.AttachmentFileValidatorHandler] The attachment 'screenshot-1.jpg' does not exist at 'C:\Program Files (x86)\Atlassian\Application Data\JIRA\import\attachments\PANA\PANA-1195\50342'. It will not be imported.

1. Same as above

4 answers

1 vote
Janet Albion Atlassian Team Mar 03, 2013

Hi!

When trying to import the project to a different instance, have you copy the Attachments for the instance into the $Target_JIRA_HOME/import/attachments folder before proceed with the import ? Otherwise, the attachment will not be imported together with the issues.

So, for example in the Source JIRA, there is a project with key "PANA". Then, copy the $Source_JIRA_HOME/data/attachments/PANA into the $Target_JIRA_HOME/import/attachments before proceeding with the project import.

Hi Marvin,

Could you confirm if the JIRA user has all the necessary read/write permissions on the folder data/attachments folder and in the import/attachments folder?

Also, if you are performing a project import, you will have to copy the project attachment folder to "/import/attachments" as well.

Regards,

Pietro

I have the same problem!

I have copied the attachments to $Target_JIRA_HOME/import/attachments but still it says that it can't find the attachements. Map structure looks the same as in the log error: $Target_JIRA_HOMEimport\attachments\PANA\PANA-1195\50342

I have also tried to put the attachements in my attachment path Default Directory [$Target_JIRA_HOME/data/jira/data/data/attachments] and $Target_JIRA_HOME/data/attachements

The jira user on my linux system has read/write acces to all files in the $Target_JIRA_HOME

I don't know what I am doing wrong. Do you have some solutions?

i am having same issue....i have imported from a windows server to test system & everything was great ...

But i tried the same with Production & i am getting this message...what needs to be done?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,663 views 18 21
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you