roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <>
Subject [jira] [Closed] (ROL-1958) Roller does not create its directory in /tmp automatically
Date Sat, 28 Jun 2014 03:22:25 GMT


Glen Mazza closed ROL-1958.

    Resolution: Incomplete

Hi Matthias, I don't know why you don't have a /tmp folder, but Linux distros should be creating
that for you by default (, which in turn is the temp directory
used by Java by default (  -- might you have deleted it
from your operating system thinking that you didn't need it?  

It's not easy for Roller to just re-create this folder if missing, as it's unlikely to be
running with the proper permissions to be able to do so; also as this is such a rare circumstance,
I don't think it's worth the effort or even our responsibility to restore system directories
that a user may have deleted.  Any Linux distro missing a /tmp folder may have other severe
problems with it, Roller failing under such a circumstance instead of silently recovering--indicating
to the operator there's a problem with OS--may not be such a bad thing anyway.

> Roller does not create its directory in /tmp automatically
> ----------------------------------------------------------
>                 Key: ROL-1958
>                 URL:
>             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(
>         at
>         at
>         at
>         at
>         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(
>         at sun.nio.fs.UnixException.rethrowAsIOException(
>         at sun.nio.fs.UnixException.rethrowAsIOException(
>         at sun.nio.fs.UnixFileSystemProvider.newByteChannel(
>         at java.nio.file.Files.newByteChannel(
>         at java.nio.file.Files.createFile(
>         at java.nio.file.TempFileHelper.create(
>         at java.nio.file.TempFileHelper.createTempFile(
>         at java.nio.file.Files.createTempFile(
>         at<init>(
>         at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(
>         at javax.imageio.ImageIO.createImageInputStream(
>         ... 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

View raw message