[xwiki-users] Disappearing attachments
Hello! I have set up XWiki on my server. J2EE 5, GlassFish 2, MySQL. Moving attachments around caused big problems so I had to turn off versioning and recycle bin, if this matters: #-# Role hints that differentiate implementations of the various storage components. To add a new implementation for one #-# of the storages, implement the appropriate interface and declare it in a components.xml file (using a role-hint other #-# than 'default') and put its hint here. # #-# The main (documents) storage. # xwiki.store.main.hint=default #-# The attachment storage. # xwiki.store.attachment.hint=default #-# The document versioning storage. # xwiki.store.versioning.hint=default #-# The attachment versioning storage. Use 'void' to disable attachment versioning. xwiki.store.attachment.versioning.hint=void #-# The document recycle bin storage. # xwiki.store.recyclebin.hint=default #-# The attachment recycle bin storage. xwiki.store.attachment.recyclebin.hint=void #-# Whether the document recycle bin feature is activated or not # xwiki.recyclebin=1 #-# Whether the attachment recycle bin feature is activated or not storage.attachment.recyclebin=0 #-# Whether the document versioning feature is activated or not # xwiki.store.versioning=1 #-# Whether the attachment versioning feature is activated or not xwiki.store.attachment.versioning=0 #-# Whether the attachments should also be rolled back when a document is reverted. xwiki.store.rollbackattachmentwithdocuments=0 I am testing this wiki and amongs other problems encountered the following one. There is a photoalbum application instance. Here is my test album: http://metrolace.ru/bin/Photos/HubPicknick0410 The problem is that attachments are disappearing after some time. Or, speaking preciselly, their size becomes 0 when one visits a page with particular photo. This is files viewer: http://metrolace.ru/bin/Photos/HubPicknick0410?viewer=attachments This is a snapshoted version: http://www.peeep.us/f01aa5ce Some files have version 1.2 just because I have reuploaded them when their size became 0 for the first time. Some files are zero-sized. Others left intact. However, visiting particular photo by clicking it triggers disappearing. One can click any photo, and then visit "files" viewer and notice that exactly this file has changed its size to 0. -- If you want to get to the top, you have to start at the bottom
I have increased max_packet_size in MySQL and reuploaded every photo. I don't see this problem anymore. I wonder why it's possible to attach oversized photo (>1Mb), but impossible to delete it (when recycle bin is enabled). I have a hypotesis that there is a write-back cache. This cache makes it possible to upload 3.5Mb photo, but it fails to write it into a permanent store because of MySQL restriction. Eventually, write-cached item becomes inaccessible. -- If you want to get to the top, you have to start at the bottom
I know there is some sort of cache, somebody was having a problem with attachments which worked for a little while then disappeared. It turned out the max_packet_size was too small and the cache was holding the pictures for a while. Caleb Ivan Levashew wrote:
I have increased max_packet_size in MySQL and reuploaded every photo. I don't see this problem anymore.
I wonder why it's possible to attach oversized photo (>1Mb), but impossible to delete it (when recycle bin is enabled). I have a hypotesis that there is a write-back cache.
This cache makes it possible to upload 3.5Mb photo, but it fails to write it into a permanent store because of MySQL restriction. Eventually, write-cached item becomes inaccessible.
participants (2)
-
Caleb James DeLisle -
Ivan Levashew