UploadService has suddenly stopped working due /tmp/<portalContainer>/eXoUpload deletion in EPP 5.x. How to fix it?

Solution Verified - Updated -

Issue

  • When user tries to upload a file in Site Publisher, it is showed a message dialog in his web browser containing an "Unkown Error" message or "Please make sure that you uploaded the selected file to the server using the upload icon" error.

  • server.log file shows the following stack trace:

    2011-09-12 10:03:32,159 WARN  [core.security.SetCurrentIdentityFilter] (http-10.23.1.32-8080-1) An error occured while cache user profile
    java.lang.RuntimeException: LocalizationFilter exception: 
        at org.exoplatform.portal.application.localization.LocalizationFilter.doFilter(LocalizationFilter.java:183)
    .
    .
    .
    Caused by: javax.servlet.ServletException: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /tmp/ecmdemo/eXoUpload/upload__6c763489_132569e7162__4e9c_00000009.tmp (No such file or directory)
        at org.exoplatform.portal.application.PortalController.onService(PortalController.java:131)
        at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.exoplatform.portal.application.localization.LocalizationFilter.doFilter(LocalizationFilter.java:179)
        ... 35 more
    Caused by: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /tmp/ecmdemo/eXoUpload/upload__6c763489_132569e7162__4e9c_00000009.tmp (No such file or directory)
        at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)
        at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
        at org.exoplatform.upload.UploadService.createUploadResource(UploadService.java:98)
        at org.exoplatform.web.handler.UploadHandler.execute(UploadHandler.java:108)
        at org.exoplatform.web.WebAppController.service(WebAppController.java:161)
        at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
        ... 40 more
    Caused by: java.io.FileNotFoundException: /tmp/ecmdemo/eXoUpload/upload__6c763489_132569e7162__4e9c_00000009.tmp (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:165)
        at org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:221)
        at org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:127)
        at org.apache.commons.fileupload.util.Streams.copy(Streams.java:101)
        at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)
        at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:362)
        ... 45 more
    

Environment

  • JBoss Enterprise Portal Platform (EPP) 5.x
  • Site Publisher 5.x
  • Red Hat Enterprise Linux (RHEL) 4.x, 5.x and 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In