Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-21044

Attachments are not accessible - getAttachmentData Could not find data for attachment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 3.0
    • None
    • EAR/WAR distribution
      Application server: Apache Tomcat/6.0.20
      Java version: 1.6.0_17
      OS: Linux 2.6.24-24-virtual
      Database: MySQL 5.0.51a-3ubuntu5.5

      When trying to access the attachments of a special page from the viewpageattachments.action I will be redirected to the attachmentnotfound.action

      In /var/confluence/logs/atlassian-confluence.log the following message appears:
      2010-10-13 13:04:47,027 ERROR [TP-Processor1] [atlassian.confluence.pages.DefaultAttachmentManager] getAttachmentData Could not find data for attachment: Attachment: Weiterleitung_nach_Zeit.gif v.1 (38469633) vbaade - java.io.FileNotFoundException: /var/confluence/attachments/ver003/185/51/46301185/86/121/38371336/38469633 (No such file or directory)
      – url: /inga/download/attachments/38371336/Weiterleitung_nach_Zeit.gif | userName: vbaade | referer: http://inga.in.ga-bonn.de/inga/pages/viewpageattachments.action?pageId=38371336&metadataLink=true

      Here's an excerpt from the MySQL dump of this attachment:
      (38469633,'Weiterleitung_nach_Zeit.gif','image/gif',38371336,'vbaade','2010-07-22 10:35:53','vbaade','2010-07-22 11:58:51',4804,'Telefon Weiterleitung nach Zeit',1,NULL)

      As we already find out the attachment is still in the filesytem but at this location:
      /var/confluence/attachments/ver003/237/134/884737/86/121/38371336/38469633/1

      We previously moved some pages from one space to another.

      How can we restore the link between filesystem and database for the attachments of that page?

      How can we make sure that the rest of the filesystem is consistent to the database?

      Kind regards
      Guido Schoepp

              Unassigned Unassigned
              55b50a372c35 Guido
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: