Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32215

jenkins will not delete /tmp/upload_*.tmp files,after use File parameter upload file for build

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • core
    • None
    • now is 1.625.3.but i think many version have this problem

      jenkins will not delete /tmp/upload_*.tmp files,after use File parameter upload file for build,so after some builds,the /tmp is no space,and job failed,

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      	at org.eclipse.jetty.server.Server.handle(Server.java:370)
      	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
      	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. No space left on device
      	at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:351)
      	at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:115)
      	at org.kohsuke.stapler.RequestImpl.parseMultipartFormData(RequestImpl.java:867)
      	... 78 more
      Caused by: java.io.IOException: No space left on device
      	at java.io.FileOutputStream.writeBytes(Native Method)
      	at java.io.FileOutputStream.write(FileOutputStream.java:345)
      	at org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:129)
      	at org.apache.commons.fileupload.util.Streams.copy(Streams.java:107)
      	at org.apache.commons.fileupload.util.Streams.copy(Streams.java:70)
      	at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:347)
      	... 80 more
      !attachment-name.jpg|thumbnail!
      
      

          [JENKINS-32215] jenkins will not delete /tmp/upload_*.tmp files,after use File parameter upload file for build

          mgy tdxmgy added a comment -

          if i delete /tmp/upload*.tmp which used jenkins, new build will be ok.

          Filesystem Size Used Avail Use% Mounted on
          /dev/sda2 92G 85G 2.5G 98% /
          udev 32G 4.0K 32G 1% /dev
          tmpfs 13G 6.8M 13G 1% /run

          mgy tdxmgy added a comment - if i delete /tmp/upload*.tmp which used jenkins, new build will be ok. Filesystem Size Used Avail Use% Mounted on /dev/sda2 92G 85G 2.5G 98% / udev 32G 4.0K 32G 1% /dev tmpfs 13G 6.8M 13G 1% /run

          R. Tyler Croy added a comment -

          I've moved this to the JENKINS project where such issues belong

          R. Tyler Croy added a comment - I've moved this to the JENKINS project where such issues belong

          Daniel Beck added a comment -

          Possible packaging issue, maybe we just need to add a cron task to delete old temporary upload files?

          Daniel Beck added a comment - Possible packaging issue, maybe we just need to add a cron task to delete old temporary upload files?

          James Nord added a comment -

          danielbeck how would that work for windows, or the war from a container?

          IOW - I fail to see this as a packaging bug - but a core bug.

          James Nord added a comment - danielbeck how would that work for windows, or the war from a container? IOW - I fail to see this as a packaging bug - but a core bug.

          Daniel Beck added a comment -

          teilo I think you're right.

          Daniel Beck added a comment - teilo I think you're right.

          Marking as a duplicate of JENKINS-12699, please correct me if I'm wrong.
          AFAICT, both are really about using File Parameters and the uploaded file never gets deleted.

          Baptiste Mathus added a comment - Marking as a duplicate of JENKINS-12699 , please correct me if I'm wrong. AFAICT, both are really about using File Parameters and the uploaded file never gets deleted.

            Unassigned Unassigned
            tdxmgy mgy tdxmgy
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: