java.io.IOException

Jenkins JIRA | Felix Drueke | 5 years ago
  1. 0

    When upgrading the ssh-slaves plugin from 0.18 to 0.19 my builds on linux remote nodes fail when communicating with perforce. They are simply hanging forever. When I cancel the build I get exceptions like this: 5826655 [Executor #0 for node1 : executing testproject #26] WARN perforce - java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:330) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:54) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1179) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:593) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) I started jenkins in debug and attached to the process and found that the perforce-plugin is waiting forever at this line: https://github.com/jenkinsci/perforce-plugin/blob/master/src/main/java/com/tek42/perforce/parse/AbstractPerforceTemplate.java#L330 I first thought that the problem depends on the jenkins version 1.430, but I also get it with 1.428 when using ssh-slaves 0.19. Falling back to ssh-slaves 0.18 fixes the problem for me.

    Jenkins JIRA | 5 years ago | Felix Drueke
    java.io.IOException
  2. 0

    When upgrading the ssh-slaves plugin from 0.18 to 0.19 my builds on linux remote nodes fail when communicating with perforce. They are simply hanging forever. When I cancel the build I get exceptions like this: 5826655 [Executor #0 for node1 : executing testproject #26] WARN perforce - java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:330) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:54) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1179) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:593) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) I started jenkins in debug and attached to the process and found that the perforce-plugin is waiting forever at this line: https://github.com/jenkinsci/perforce-plugin/blob/master/src/main/java/com/tek42/perforce/parse/AbstractPerforceTemplate.java#L330 I first thought that the problem depends on the jenkins version 1.430, but I also get it with 1.428 when using ssh-slaves 0.19. Falling back to ssh-slaves 0.18 fixes the problem for me.

    Jenkins JIRA | 5 years ago | Felix Drueke
    java.io.IOException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    добавить проверку на наличие файлов в директории

    GitHub | 3 years ago | mavlyutov
    java.io.IOException: Failed to extract /jenkins/compound-root/workspace/functional-test-matrix/LABEL/basic-os/TESTPACK/P4/reports/**/*
  5. 0

    Jenkins html publisher Failed to extract

    Stack Overflow | 2 years ago | Luci
    java.io.IOException: java.io.IOException: Failed to extract C:\WiboxTesting\NPO testing\build\reports\tests/**/*

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      No message provided

      at hudson.remoting.FastPipedInputStream.read()
    2. Hudson :: Remoting Layer
      FastPipedInputStream.read
      1. hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
      1 frame
    3. Java RT
      BufferedReader.readLine
      1. sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
      2. sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
      3. sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
      4. java.io.InputStreamReader.read(InputStreamReader.java:167)
      5. java.io.BufferedReader.fill(BufferedReader.java:136)
      6. java.io.BufferedReader.readLine(BufferedReader.java:299)
      7. java.io.BufferedReader.readLine(BufferedReader.java:362)
      7 frames
    4. com.tek42.perforce
      Workspaces.getWorkspace
      1. com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:330)
      2. com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292)
      3. com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:54)
      3 frames
    5. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1179)
      2. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:593)
      2 frames
    6. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454)
      4. hudson.model.Run.run(Run.java:1376)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:230)
      7 frames