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

Download workspace folder as zip fails for project with ssh slave build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • ssh-slaves-plugin
    • None
    • Platform: All, OS: All

      Server: OpenSuse 64bit, Hudson 1.316 with SSH-Slaves 1.6
      Slave: RHEL 5.3 64bit

      Download as Zip feature for workspace folders fails with following exception.
      The job is associated with the slave to execute a custom shell script build.
      When the slave is deleted in the "Hudson ยป nodes" panel, the zip file downloads
      perfectly normal. If I put the slave added back again, the feature stops working
      again.

      javax.servlet.ServletException: hudson.util.IOException2: remote file operation
      failed
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:498)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)

      root cause

      hudson.util.IOException2: remote file operation failed
      hudson.FilePath.act(FilePath.java:672)
      hudson.FilePath.act(FilePath.java:660)
      hudson.FilePath.archive(FilePath.java:314)
      hudson.FilePath.archive(FilePath.java:334)
      hudson.FilePath.zip(FilePath.java:301)
      hudson.model.DirectoryBrowserSupport.serveFile(DirectoryBrowserSupport.java:202)
      hudson.model.AbstractProject.doWs(AbstractProject.java:1250)
      sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:176)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:92)
      org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:53)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)

      root cause

      java.io.IOException: Unable to serialize
      hudson.FilePath$FileCallableWrapper@4f47afda
      hudson.remoting.UserRequest.serialize(UserRequest.java:145)
      hudson.remoting.UserRequest.<init>(UserRequest.java:61)
      hudson.remoting.Channel.call(Channel.java:513)
      hudson.FilePath.act(FilePath.java:667)
      hudson.FilePath.act(FilePath.java:660)
      hudson.FilePath.archive(FilePath.java:314)
      hudson.FilePath.archive(FilePath.java:334)
      hudson.FilePath.zip(FilePath.java:301)
      hudson.model.DirectoryBrowserSupport.serveFile(DirectoryBrowserSupport.java:202)
      hudson.model.AbstractProject.doWs(AbstractProject.java:1250)
      sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:176)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:92)
      org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:53)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)

      root cause

      java.io.NotSerializableException: hudson.FilePath$ZipArchiverFactory
      java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
      java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      hudson.remoting.UserRequest._serialize(UserRequest.java:134)
      hudson.remoting.UserRequest.serialize(UserRequest.java:143)
      hudson.remoting.UserRequest.<init>(UserRequest.java:61)
      hudson.remoting.Channel.call(Channel.java:513)
      hudson.FilePath.act(FilePath.java:667)
      hudson.FilePath.act(FilePath.java:660)
      hudson.FilePath.archive(FilePath.java:314)
      hudson.FilePath.archive(FilePath.java:334)
      hudson.FilePath.zip(FilePath.java:301)
      hudson.model.DirectoryBrowserSupport.serveFile(DirectoryBrowserSupport.java:202)
      hudson.model.AbstractProject.doWs(AbstractProject.java:1250)
      sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:176)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:92)
      org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:53)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
      org.kohsuke.stapler.Stapler.service(Stapler.java:117)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)

            stephenconnolly Stephen Connolly
            ippei_ukai ippei_ukai
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: