hudson.util.IOException2: remote file operation failed

osdir.com | 4 months ago
  1. 0

    Tests results are lost since 1.337 (or maybe 1.336 since I went from 1.335 to 1.337). Tests results are produced in Junit format and collected with "Publish JUnit tests reports results" option. This is the error message as displayed in Console Output: {quote} Recording test results ERROR: Failed to archive test reports hudson.util.IOException2: remote file operation failed at hudson.FilePath.act(FilePath.java:672) at hudson.FilePath.act(FilePath.java:660) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:583) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:551) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535) at hudson.model.Run.run(Run.java:1202) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) Caused by: hudson.util.IOException2: Failed to read /home/hudson-dec/hudson/workspace/Archi-1.5_lenny64/PLEIADES/TEST-arch.xml at hudson.tasks.junit.TestResult.parse(TestResult.java:195) at hudson.tasks.junit.TestResult.parse(TestResult.java:136) at hudson.tasks.junit.TestResult.<init>(TestResult.java:99) at hudson.tasks.junit.JUnitResultArchiver$ParseResultCallable.invoke(JUnitResultArchiver.java:234) at hudson.tasks.junit.JUnitResultArchiver$ParseResultCallable.invoke(JUnitResultArchiver.java:209) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2062) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.dom4j.DocumentException: null Nested exception: null at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:264) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:93) at hudson.tasks.junit.TestResult.parse(TestResult.java:180) ... 14 more Caused by: java.lang.NullPointerException at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:98) at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894) at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715) at org.dom4j.io.SAXReader.read(SAXReader.java:435) ... 17 more Sending e-mails to: <hidden mail> Build failed. Publishing Doxygen skipped. Finished: FAILURE {quote} And the corresponding node log : {quote} [12/16/09 12:59:34] [SSH] Checking java version of java [12/16/09 12:59:34] [SSH] java -version returned 1.6.0_12. [12/16/09 12:59:34] [SSH] Starting sftp client. [12/16/09 12:59:34] [SSH] Copying latest slave.jar... [12/16/09 12:59:35] [SSH] Copied 212,574 bytes. [12/16/09 12:59:35] [SSH] Starting slave process: cd '/home/hudson-dec/hudson' && java -jar slave.jar <===[HUDSON REMOTING CAPACITY]===>channel started Slave.jar version: 1.337 (private-12/11/2009 03:49-kohsuke) This is a Unix slave Copied maven-agent.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Warning: Caught exception attempting to use SAX to load a SAX XMLReader Warning: Exception was: java.lang.NullPointerException Warning: I will print the stack trace then carry on using the default SAX parser java.lang.NullPointerException at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.hashCode(RemoteClassLoader.java:396) at java.util.HashMap.get(HashMap.java:343) at hudson.remoting.ExportTable.export(ExportTable.java:155) at hudson.remoting.Channel.export(Channel.java:468) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:318) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch2(RemoteClassLoader.java:350) at sun.reflect.GeneratedMethodAccessor1157.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) {quote}

    Jenkins JIRA | 7 years ago | sbernaud
    hudson.util.IOException2: remote file operation failed
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Tests results are lost since 1.337 (or maybe 1.336 since I went from 1.335 to 1.337). Tests results are produced in Junit format and collected with "Publish JUnit tests reports results" option. This is the error message as displayed in Console Output: {quote} Recording test results ERROR: Failed to archive test reports hudson.util.IOException2: remote file operation failed at hudson.FilePath.act(FilePath.java:672) at hudson.FilePath.act(FilePath.java:660) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:583) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:551) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535) at hudson.model.Run.run(Run.java:1202) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) Caused by: hudson.util.IOException2: Failed to read /home/hudson-dec/hudson/workspace/Archi-1.5_lenny64/PLEIADES/TEST-arch.xml at hudson.tasks.junit.TestResult.parse(TestResult.java:195) at hudson.tasks.junit.TestResult.parse(TestResult.java:136) at hudson.tasks.junit.TestResult.<init>(TestResult.java:99) at hudson.tasks.junit.JUnitResultArchiver$ParseResultCallable.invoke(JUnitResultArchiver.java:234) at hudson.tasks.junit.JUnitResultArchiver$ParseResultCallable.invoke(JUnitResultArchiver.java:209) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2062) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.dom4j.DocumentException: null Nested exception: null at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:264) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:93) at hudson.tasks.junit.TestResult.parse(TestResult.java:180) ... 14 more Caused by: java.lang.NullPointerException at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:98) at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894) at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715) at org.dom4j.io.SAXReader.read(SAXReader.java:435) ... 17 more Sending e-mails to: <hidden mail> Build failed. Publishing Doxygen skipped. Finished: FAILURE {quote} And the corresponding node log : {quote} [12/16/09 12:59:34] [SSH] Checking java version of java [12/16/09 12:59:34] [SSH] java -version returned 1.6.0_12. [12/16/09 12:59:34] [SSH] Starting sftp client. [12/16/09 12:59:34] [SSH] Copying latest slave.jar... [12/16/09 12:59:35] [SSH] Copied 212,574 bytes. [12/16/09 12:59:35] [SSH] Starting slave process: cd '/home/hudson-dec/hudson' && java -jar slave.jar <===[HUDSON REMOTING CAPACITY]===>channel started Slave.jar version: 1.337 (private-12/11/2009 03:49-kohsuke) This is a Unix slave Copied maven-agent.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Warning: Caught exception attempting to use SAX to load a SAX XMLReader Warning: Exception was: java.lang.NullPointerException Warning: I will print the stack trace then carry on using the default SAX parser java.lang.NullPointerException at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.hashCode(RemoteClassLoader.java:396) at java.util.HashMap.get(HashMap.java:343) at hudson.remoting.ExportTable.export(ExportTable.java:155) at hudson.remoting.Channel.export(Channel.java:468) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:318) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch2(RemoteClassLoader.java:350) at sun.reflect.GeneratedMethodAccessor1157.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) {quote}

    Jenkins JIRA | 7 years ago | sbernaud
    hudson.util.IOException2: remote file operation failed
  4. 0

    https://jenkins.ci.cloudbees.com/job/core/job/jenkins_main_trunk/1082/ was marked as FAILED because of {code:none} [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 59:47.169s [INFO] Finished at: Mon Aug 12 20:14:25 EDT 2013 [INFO] Final Memory: 90M/727M [INFO] ------------------------------------------------------------------------ Archiving artifacts Recording test results ERROR: Failed to archive test reports hudson.util.IOException2: remote file operation failed: /scratch/jenkins/workspace/core/jenkins_main_trunk at hudson.remoting.Channel@6c5632d0:s-bd117189 at hudson.FilePath.act(FilePath.java:900) at hudson.FilePath.act(FilePath.java:877) at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:87) at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:122) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:134) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:812) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:784) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:734) at hudson.model.Run.execute(Run.java:1600) 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.util.IOException2: Failed to read /scratch/jenkins/workspace/core/jenkins_main_trunk/test/target/surefire-reports/TEST-hudson.tasks.EnvVarsInConfigTasksTest.xml at hudson.tasks.junit.TestResult.parse(TestResult.java:284) at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:223) at hudson.tasks.junit.TestResult.parse(TestResult.java:158) at hudson.tasks.junit.TestResult.parse(TestResult.java:141) at hudson.tasks.junit.TestResult.<init>(TestResult.java:117) at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:117) at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:90) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387) 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(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) 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:724) Caused by: org.dom4j.DocumentException: Error on line 118 of document file:///scratch/jenkins/workspace/core/jenkins_main_trunk/test/target/surefire-reports/TEST-hudson.tasks.EnvVarsInConfigTasksTest.xml : The reference to entity "amp" must end with the ';' delimiter. Nested exception: The reference to entity "amp" must end with the ';' delimiter. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:264) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:129) at hudson.tasks.junit.TestResult.parse(TestResult.java:267) ... 16 more Caused by: org.xml.sax.SAXParseException; systemId: file:///scratch/jenkins/workspace/core/jenkins_main_trunk/test/target/surefire-reports/TEST-hudson.tasks.EnvVarsInConfigTasksTest.xml; lineNumber: 118; columnNumber: 26; The reference to entity "amp" must end with the ';' delimiter. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1388) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1810) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2994) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568) at org.dom4j.io.SAXReader.read(SAXReader.java:465) ... 19 more Build step 'Publish JUnit test result report' changed build result to FAILURE {code} https://jenkins.ci.cloudbees.com/job/core/job/jenkins_main_trunk/ws/test/target/surefire-reports/TEST-hudson.tasks.EnvVarsInConfigTasksTest.xml is in fact not well-formed XML (perhaps a Surefire bug): {code:xml} <system-out>=== Starting EnvVarsInConfigTasksTest.testNativeMavenOnSlave #1 completed Legacy code started this job. No cause information is available Building remotely on &amp#;[8mha:AAAAnB+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAy2EgYB/eT83ILSktQi/eKcxLJUQwA49mDyxQAAAA==&amp#;[0mslave1 in workspace /scratch/jenkins/workspace/core/jenkins_main_trunk/test/target/hudson8856170059407332280test/workspace/test0 Deleting existing workspace /scratch/jenkins/workspace/core/jenkins_main_trunk/test/target/hudson8856170059407332280test/workspace/test0 Staging file:/scratch/jenkins/workspace/core/jenkins_main_trunk/test/target/classes/simple-projects.zip ERROR: Maven Home /scratch/jenkins/workspace/core/jenkins_main_trunk/test/target/apache-maven-2.2.1${TOOLS_DUMMY_LOCATION} doesn't exist &amp#;[8mha:AAAAWB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=&amp#;[0mFinished: FAILURE #2 completed </system-out> {code} The fix of JENKINS-3149 is supposed to address this by adding a fake test failure. But it leaves in the older code which aborts the test archiving!

    Jenkins JIRA | 3 years ago | Jesse Glick
    hudson.util.IOException2: remote file operation failed: /scratch/jenkins/workspace/core/jenkins_main_trunk at hudson.remoting.Channel@6c5632d0:s-bd117189

    41 unregistered visitors
    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. org.dom4j.DocumentException

      Error on line 95 of document file:///some/corupted/junit/xml/reports/TEST-result.xml: Content is not allowed in trailing section. Nested exception: Content is not allowed in trailing section.

      at org.dom4j.io.SAXReader.read()
    2. dom4j
      SAXReader.read
      1. org.dom4j.io.SAXReader.read(SAXReader.java:350)
      2. org.dom4j.io.SAXReader.read(SAXReader.java:222)
      2 frames
    3. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:63)
      2. hudson.tasks.junit.TestResult.parse(TestResult.java:139)
      3. hudson.tasks.junit.TestResult.parse(TestResult.java:95)
      4. hudson.tasks.junit.TestResult.<init>(TestResult.java:72)
      5. hudson.tasks.junit.JUnitResultArchiver$1.invoke(JUnitResultArchiver.java:67)
      6. hudson.tasks.junit.JUnitResultArchiver$1.invoke(JUnitResultArchiver.java:54)
      7. hudson.FilePath$FileCallableWrapper.call(FilePath.java:1122)
      7 frames
    4. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.perform(UserRequest.java:69)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:23)
      3. hudson.remoting.Request$2.run(Request.java:206)
      3 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      6. java.lang.Thread.run(Thread.java:619)
      6 frames