Thumbnail file for attachment **.png does not exist
Asked by Jone:

**The attachment of Many Files is lost. The backstage log print as bellow.**

****I enter into "/data/home/data32/thumbnails/" ,a**nd I can't find the directory"102611398" of this files. and the folders are eight digits without nine digits.**

at java.lang.Thread.run(Thread.java:662)  
Caused by: [java.io](http://java.io).FileNotFoundException: Thumbnail file for attachment bizprodmng_VM???????.png is '/data/home/data32/thumbnails/102611398/thumb_bizprodmng_VM???????.png'. But this file does not exist.  
at com.atlassian.confluence.pages.thumbnail.DefaultThumbnailManager.getThumbnailData(DefaultThumbnailManager.java:89)  
at com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceManager$ThumbnailInputStreamSource.getInputStream(ThumbnailDownloadResourceManager.java:70)  
at com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceReader.getStreamForReading(ThumbnailDownloadResourceReader.java:53)  
... 105 more  
2016-1-7 19:14:57 org.apache.catalina.core.StandardWrapperValve invoke  
????: Servlet.service() for servlet file-server threw exception  
java.lang.RuntimeException: [java.io](http://java.io).FileNotFoundException: Thumbnail file for attachment PSBP????????.JPG is '/data/home/data32/thumbnails/102611398/thumb_PSBP????????.JPG'. But this file does not exist.  
at com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceReader.getStreamForReading(ThumbnailDownloadResourceReader.java:57)  
at com.atlassian.confluence.servlet.download.AttachmentDownload.getStreamForDownload(AttachmentDownload.java:165)

image2016-1-7 19:40:12.png

image2016-1-7 19:56:41.png  
[](https://community.atlassian.com/t5/Confluence-questions/Thumbnail-file-for-attachment-png-does-not-exist/qaq-p/367771?attachment-id=11338){#link_11913bfec69bd7}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/62119/1/image2016-1-7%2019%3A56%3A41.png){#display_11913bfec69bd7_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Thumbnail-file-for-attachment-png-does-not-exist/qaq-p/367771?attachment-id=11339){#link_11913bfec69bd7_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/62119/2/image2016-1-7%2019%3A40%3A12.png){#display_11913bfec69bd7_2}


Answers:
author: Jone
body: **And I find the log show this as below?**

Please help me to see what is problem

2016-01-09 15:51:36,371 ERROR \[http-8090-8\] \[confluence.pages.thumbnail.DefaultThumbnailManager\] **getThumbnailsFolder Containing folders /data/home/data32/thumbnails/104628363 for the attachment ???\>\>???? 2016-01-09 ????3.33.41.png could not be created**   
2016-01-09 15:51:36,433 ERROR \[http-8090-8\] \[core.util.thumbnail.Thumber\] **storeImage Error encoding the thumbnail image**   
[java.io](http://java.io/).**FileNotFoundException: /data/home/data32/thumbnails/104628363/thumb_???\>\>???? 2016-01-09 ????3.33.41.png (No such file or directory)**


author: Phill Fox
body: Have you reviewed the troubleshooting page at <https://confluence.atlassian.com/display/CONFKB/Images+and+Thumbnails+Troubleshooting>?

Also have you by any chance recently upgraded or made any configuration changes that could have affected your JVM?

comments: author: Jone
body: I have reviewed the troubleshooting page and I am sure that the JVM does have the "-Djava.awt.headless=true" specified. Now the biggest problem is that " Thumbnail file for attachment 1.jpg is '/home/admin/data/home/data32/thumbnails/102098990/thumb_1.jpg'. but this file does not exist." when I enter into the "/home/admin/data/home/data32/thumbnails/" directory?I can find many many child folder ,but I can't find any folder with nine digits (for example /102098990).They are only eight Numbers (for example /10294053) .I want to know attachment file how to store ,and the naming rules of storage location. Is it possible the generated folder lost or the number of the folder is restricted?


Tags: confluence-administration