While trying to import two projects from one JIRA 6.2.1. installation to another JIRA 6.2.1. 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.
Log says:
2014-03-24 12:01:23,615 JiraTaskExectionThread-22 WARN admin 721x6014x1 1ecmhva 212.178.108.82,0:0:0:0:0:0:0:1 /secure/admin/ProjectImportSelectProject.jspa [imports.project.handler.AttachmentFileValidatorHandler] The attachment 'kana_856721_image002[1].jpg' does not exist at '/data/jira/data/import/attachments/CES/CES-3079/10819'. It will not be imported.
I have made an export of the attachments from this folder (can be any folder): $source_JIRA_HOME/data/data/attachments
I extract the package to this location (as described in the documentation):
$target_JIRA_HOME/data/import/attachments
My attachment path defined under System in Jira:
Default Directory [/data/jira/data/data/attachments]
Map structure of attachments look like this:
[ProjectKey]/[ProjectKey]-[IssueNumber]/[FileNumber].file (sometimes it has also a 'thumbs' directory)
My target Jira runs on lunix and the jira-user had read and write acces to $JIRA_HOME
I have also tried to put the attachments in this directions:
$target_JIRA_HOME/data/jira/data/data/attachments
$target_JIRA_HOME/data/attachments
Did I forget something? How can I make this project import work with attachments?
Thanks!
We have solved the problem!
It looks like their went something wrong during the restore or backup process. All IDs of the files where changed so the paths aren't correct anymore. I don't know what happend there, but we tried again and now it works.
I hope this post help others with the same problem!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Like Scottie above, what did you do? Did you try backing up and then using an updated backup file? What?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you find the reason behind this? We get on the logs that a given file does not exist, but it actually does.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maarten,
I see typos in those locations: attach(e)ments. That might be causing the issue.
If you change your target home as:
$target_JIRA_HOME/data/attachments
I think that might do the trick. I assume your Administration>Attachments in JIRA has the location with no "e".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for the typos in my post! I fixed them.
I didn't create any "attachments" folder in $target_JIRA_HOME, so I didn't make a type mistake.
I have checked it!
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.