hudson.util.IOException2: remote file operation failed: C:\Jenkins\workspace\Apollo_SKU_IT\test-output at hudson.remoting.Channel@c591b4:Robot-2

Jenkins JIRA | Kevin Ormbrek | 4 years ago
  1. 0

    Steps to reproduce: Have an output.xml file with broken XML when the plugin processes the results. After the job fails, try to delete the output.xml file. Expected: Can delete the file. Actual: File in use, cannot be deleted. The JVM's process keeps the file open. This causes subsequent job runs to fail until the slave agent is restarted to release the file. Stack trace from when the file is opened and not closed: hudson.util.IOException2: remote file operation failed: C:\Jenkins\workspace\Apollo_SKU_IT\test-output at hudson.remoting.Channel@c591b4:Robot-2 at hudson.FilePath.act(FilePath.java:861) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.robot.RobotParser.parse(RobotParser.java:45) at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:239) at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:261) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:786) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:733) at hudson.model.Run.execute(Run.java:1592) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: hudson.remoting.ProxyException: java.io.IOException: Parsing of output xml failed! at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:90) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:50) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) Caused by: hudson.remoting.ProxyException: com.ctc.wstx.exc.WstxEOFException: Unexpected end of input block in end tag at [row,col {unknown-source}]: [1649,61] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOB(StreamScanner.java:700) at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1054) at com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:811) at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3206) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2832) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at hudson.plugins.robot.RobotParser$RobotParserCallable.processTest(RobotParser.java:190) at hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:158) at hudson.plugins.robot.RobotParser$RobotParserCallable.parseResult(RobotParser.java:114) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:88) ... 12 more

    Jenkins JIRA | 4 years ago | Kevin Ormbrek
    hudson.util.IOException2: remote file operation failed: C:\Jenkins\workspace\Apollo_SKU_IT\test-output at hudson.remoting.Channel@c591b4:Robot-2
  2. 0

    Steps to reproduce: Have an output.xml file with broken XML when the plugin processes the results. After the job fails, try to delete the output.xml file. Expected: Can delete the file. Actual: File in use, cannot be deleted. The JVM's process keeps the file open. This causes subsequent job runs to fail until the slave agent is restarted to release the file. Stack trace from when the file is opened and not closed: hudson.util.IOException2: remote file operation failed: C:\Jenkins\workspace\Apollo_SKU_IT\test-output at hudson.remoting.Channel@c591b4:Robot-2 at hudson.FilePath.act(FilePath.java:861) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.robot.RobotParser.parse(RobotParser.java:45) at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:239) at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:261) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:786) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:733) at hudson.model.Run.execute(Run.java:1592) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: hudson.remoting.ProxyException: java.io.IOException: Parsing of output xml failed! at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:90) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:50) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) Caused by: hudson.remoting.ProxyException: com.ctc.wstx.exc.WstxEOFException: Unexpected end of input block in end tag at [row,col {unknown-source}]: [1649,61] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOB(StreamScanner.java:700) at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1054) at com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:811) at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3206) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2832) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at hudson.plugins.robot.RobotParser$RobotParserCallable.processTest(RobotParser.java:190) at hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:158) at hudson.plugins.robot.RobotParser$RobotParserCallable.parseResult(RobotParser.java:114) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:88) ... 12 more

    Jenkins JIRA | 4 years ago | Kevin Ormbrek
    hudson.util.IOException2: remote file operation failed: C:\Jenkins\workspace\Apollo_SKU_IT\test-output at hudson.remoting.Channel@c591b4:Robot-2
  3. 0

    Robot plug 1.2.1 is ok. When I update it to 1.2.2, after running test, it was wrong in parsing output.xml Same bug in 1.2.3 The message is : -Parsing output xml: Failed! hudson.util.IOException2: remote file operation failed: D:\JK\workspace\cfs_counter_reg\Result at hudson.remoting.Channel@132fd12:CNSH021691 at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.robot.RobotParser.parse(RobotParser.java:45) at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:235) at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:257) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.remoting.ProxyException: java.io.IOException: Parsing of output xml failed! at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:90) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:50) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2236) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: hudson.remoting.ProxyException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) excepted space, or '>' or "/>" at [row,col {unknown-source}]: [28,55] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648) at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:2965) at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2936) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at hudson.plugins.robot.RobotParser$RobotParserCallable.processTest(RobotParser.java:190) at hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:158) at hudson.plugins.robot.RobotParser$RobotParserCallable.parseResult(RobotParser.java:114) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:88) ... 12 more Build step 'Publish Robot Framework test results' changed build result to FAILURE Finished: FAILURE

    Jenkins JIRA | 4 years ago | Jacky qi
    hudson.util.IOException2: remote file operation failed: D:\JK\workspace\cfs_counter_reg\Result at hudson.remoting.Channel@132fd12:CNSH021691
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Robot plug 1.2.1 is ok. When I update it to 1.2.2, after running test, it was wrong in parsing output.xml Same bug in 1.2.3 The message is : -Parsing output xml: Failed! hudson.util.IOException2: remote file operation failed: D:\JK\workspace\cfs_counter_reg\Result at hudson.remoting.Channel@132fd12:CNSH021691 at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.robot.RobotParser.parse(RobotParser.java:45) at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:235) at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:257) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.remoting.ProxyException: java.io.IOException: Parsing of output xml failed! at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:90) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:50) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2236) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: hudson.remoting.ProxyException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) excepted space, or '>' or "/>" at [row,col {unknown-source}]: [28,55] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648) at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:2965) at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2936) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at hudson.plugins.robot.RobotParser$RobotParserCallable.processTest(RobotParser.java:190) at hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:158) at hudson.plugins.robot.RobotParser$RobotParserCallable.parseResult(RobotParser.java:114) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:88) ... 12 more Build step 'Publish Robot Framework test results' changed build result to FAILURE Finished: FAILURE

    Jenkins JIRA | 4 years ago | Jacky qi
    hudson.util.IOException2: remote file operation failed: D:\JK\workspace\cfs_counter_reg\Result at hudson.remoting.Channel@132fd12:CNSH021691
  6. 0

    Parsing output xml failed when I run the robot case. Attached file is the output.xml Below is the console log : {code} D:\jenkins_root\workspace\Format_HDD_Test>pybot -d logs/Format_HDD_Test_17 HDD_Format_Test.txt ============================================================================== HDD Format Test :: IPC Format Test Demo ============================================================================== Format all disk Test | PASS | ------------------------------------------------------------------------------ Format target disk Test | PASS | ------------------------------------------------------------------------------ Format unexist disk Test | PASS | ------------------------------------------------------------------------------ HDD Format Test :: IPC Format Test Demo | PASS | 3 critical tests, 3 passed, 0 failed 3 tests total, 3 passed, 0 failed ============================================================================== Output: D:\jenkins_root\workspace\Format_HDD_Test\logs\Format_HDD_Test_17\output.xml Log: D:\jenkins_root\workspace\Format_HDD_Test\logs\Format_HDD_Test_17\log.html Report: D:\jenkins_root\workspace\Format_HDD_Test\logs\Format_HDD_Test_17\report.html Build step 'Execute Windows batch command' marked build as failure Robot results publisher started... -Parsing output xml: Failed! hudson.util.IOException2: remote file operation failed: D:\jenkins_root\workspace\Format_HDD_Test\logs\Format_HDD_Test_17 at hudson.remoting.Channel@1f68336:pc-zhangzhile at hudson.FilePath.act(FilePath.java:848) at hudson.FilePath.act(FilePath.java:825) at hudson.plugins.robot.RobotParser.parse(RobotParser.java:45) at hudson.plugins.robot.RobotPublisher.parse(RobotPublisher.java:239) at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:261) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.remoting.ProxyException: java.io.IOException: Parsing of output xml failed! at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:90) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:50) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: hudson.remoting.ProxyException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </kw>; expected </doc>. at [row,col {unknown-source}]: [24,4] at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:630) at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461) at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3258) at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3200) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2832) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at hudson.plugins.robot.RobotParser$RobotParserCallable.processTest(RobotParser.java:190) at hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:158) at hudson.plugins.robot.RobotParser$RobotParserCallable.parseResult(RobotParser.java:114) at hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:88) ... 11 more Finished: FAILURE {code}

    Jenkins JIRA | 4 years ago | Aaron Zhang
    hudson.util.IOException2: remote file operation failed: D:\jenkins_root\workspace\Format_HDD_Test\logs\Format_HDD_Test_17 at hudson.remoting.Channel@1f68336:pc-zhangzhile

    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. hudson.remoting.ProxyException

      com.ctc.wstx.exc.WstxEOFException: Unexpected end of input block in end tag at [row,col {unknown-source}]: [1649,61]

      at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOB()
    2. Woodstox
      BasicStreamReader.next
      1. com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOB(StreamScanner.java:700)
      2. com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1054)
      3. com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:811)
      4. com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3206)
      5. com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2832)
      6. com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
      6 frames
    3. hudson.plugins.robot
      RobotParser$RobotParserCallable.invoke
      1. hudson.plugins.robot.RobotParser$RobotParserCallable.processTest(RobotParser.java:190)
      2. hudson.plugins.robot.RobotParser$RobotParserCallable.processSuite(RobotParser.java:158)
      3. hudson.plugins.robot.RobotParser$RobotParserCallable.parseResult(RobotParser.java:114)
      4. hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:88)
      5. hudson.plugins.robot.RobotParser$RobotParserCallable.invoke(RobotParser.java:50)
      5 frames
    4. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
      1 frame
    5. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    6. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      4 frames
    7. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:58)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame