[ 
https://issues.apache.org/jira/browse/ROL-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14040050#comment-14040050
 ] 

Glen Mazza commented on ROL-1958:
---------------------------------

Do you recall if you defined "mediafiles.storage.dir" in your 
roller-custom.properties file?  Our sample override file in the Roller Install 
guide sets that property.  I'm not sure though if setting that would have fixed 
this issue.

> Roller does not create its directory in /tmp automatically
> ----------------------------------------------------------
>
>                 Key: ROL-1958
>                 URL: https://issues.apache.org/jira/browse/ROL-1958
>             Project: Apache Roller
>          Issue Type: Bug
>          Components: Installation & Configuration, Website and Documentation
>    Affects Versions: 5.1, 5.0.1
>         Environment: Tomcat 7 (packaged) on Debian Wheezy
>            Reporter: Matthias Wimmer
>            Assignee: Roller Unassigned
>            Priority: Minor
>
> I had a problem with my roller installation. When I uploaded files (e.g. 
> images), Roller did neither generate a thumbnail nor did detect the image 
> size (-1 x -1 Pixel was shown).
> Debugging the problem I found out, that roller did try to handle the image in 
> /tmp/tomcat7-tomcat7-tmp/ which did not exist.
> JPAMediaFileManagerImpl:updateThumbnail - ERROR creating thumbnail
> javax.imageio.IIOException: Can't create cache file!
>         at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:361)
>         at javax.imageio.ImageIO.read(ImageIO.java:1351)
>         at 
> org.apache.roller.weblogger.business.jpa.JPAMediaFileManagerImpl.updateThumbnail(JPAMediaFileManagerImpl.java:286)
>         at 
> org.apache.roller.weblogger.business.jpa.JPAMediaFileManagerImpl.createMediaFile(JPAMediaFileManagerImpl.java:276)
>         at 
> org.apache.roller.weblogger.ui.struts2.editor.MediaFileAdd.save(MediaFileAdd.java:177)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> […]
> Caused by: java.nio.file.NoSuchFileException: 
> /tmp/tomcat7-tomcat7-tmp/imageio4250185645999491066.tmp
>         at 
> sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
>         at 
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>         at 
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>         at 
> sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:213)
>         at java.nio.file.Files.newByteChannel(Files.java:315)
>         at java.nio.file.Files.createFile(Files.java:580)
>         at java.nio.file.TempFileHelper.create(TempFileHelper.java:138)
>         at 
> java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:161)
>         at java.nio.file.Files.createTempFile(Files.java:842)
>         at 
> javax.imageio.stream.FileCacheImageInputStream.<init>(FileCacheImageInputStream.java:102)
>         at 
> com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:69)
>         at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357)
>         ... 129 more
> WARN  2013-02-04 14:29:49,158 JPAMediaFileManagerImpl:getMediaFile - Cannot 
> load thumbnail for image 1404f16e-eb17-4ead-ab42-b8de0fbfbfa9
> Creating the directory manually fixed the problem for me.
> I think it would be best if the directory would get created automatically 
> (which should be possible). Else it should get documented in the installation 
> guide, that a temporary directory has to be created



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to