• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • gradle-plugin
    • None
    • Slave: Fedora x86
      Master: Amazon-AMI x64

      Installation blocks forever on:
      Unpacking http://services.gradle.org/distributions/gradle-1.0-milestone-9-bin.zip to /home/tsuckow/.jenkins_slave/tools/Gradle_9 on Conure

      I rebooted the slave thinking it might help which resulted in this stack trace:

      FATAL: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
      hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
      at hudson.remoting.Request.call(Request.java:149)
      at hudson.remoting.Channel.call(Channel.java:681)
      at hudson.FilePath.act(FilePath.java:777)
      at hudson.FilePath.act(FilePath.java:770)
      at hudson.FilePath.unzipFrom(FilePath.java:467)
      at hudson.FilePath.installIfNecessaryFrom(FilePath.java:667)
      at hudson.tools.ZipExtractionInstaller.performInstallation(ZipExtractionInstaller.java:82)
      at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
      at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
      at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150)
      at hudson.plugins.gradle.GradleInstallation.forNode(GradleInstallation.java:101)
      at hudson.plugins.gradle.Gradle.performTask(Gradle.java:146)
      at hudson.plugins.gradle.Gradle.perform(Gradle.java:97)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
      at hudson.model.Build$RunnerImpl.build(Build.java:178)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)
      at hudson.model.Run.run(Run.java:1410)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:238)
      Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
      at hudson.remoting.Request.abort(Request.java:273)
      at hudson.remoting.Channel.terminate(Channel.javaa:732)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:1157)
      Caused by: java.io.IOException: Unexpected termination of the channel
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:1133)
      Caused by: java.io.EOFException
      at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127)

          [JENKINS-13127] Automatic Install blocks forever

          Thomas Suckow added a comment -

          Thomas Suckow added a comment - Note this did work before: http://ci.codingwell.net/job/Weave/45/console

          Thomas Suckow added a comment -

          It appears to be working again. Strange.

          Thomas Suckow added a comment - It appears to be working again. Strange.

          Daniel Beck added a comment -

          Given the stack trace, it looks like your internet connection just hiccupped. It directly read (blocking) from the input stream of the file download.

          https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/FilePath.java#L715

          Daniel Beck added a comment - Given the stack trace, it looks like your internet connection just hiccupped. It directly read (blocking) from the input stream of the file download. https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/FilePath.java#L715

          Encountered same problem here.

          By wget-ing the zip from the slave, there isn't any problem.

          I didn't found any workaround since even if I unzip the wget-ed archive into the JENKINS_HOME/tools/Gradle/gradle_[version]/, on next build, the directory is emptied.

          Frédéric Camblor added a comment - Encountered same problem here. By wget-ing the zip from the slave, there isn't any problem. I didn't found any workaround since even if I unzip the wget-ed archive into the JENKINS_HOME/tools/Gradle/gradle_ [version] /, on next build, the directory is emptied.

          After 45m, it finished hanging and unpacked everything successfully.
          As a workaround, I think unpacking the archive + creating a JENKINS_HOME/tools/Gradle/gradle_[version]/.installedFrom file with the target archive url should make the trick.

          Frédéric Camblor added a comment - After 45m, it finished hanging and unpacked everything successfully. As a workaround, I think unpacking the archive + creating a JENKINS_HOME/tools/Gradle/gradle_ [version] /.installedFrom file with the target archive url should make the trick.

          Too old to reproduce. Please open a new ticket if still an issue.

          George Simpson added a comment - Too old to reproduce. Please open a new ticket if still an issue.

            gbois Gregory Boissinot
            tsuckow Thomas Suckow
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: