hudson.util.IOException2: remote file operation failed: project at hudson.remoting.Channel@37393739:slave

Jenkins JIRA | a a | 4 years ago
  1. 0

    [JENKINS-14689] javax.xml.parsers.FactoryConfigurationError exception thrown by slaves. - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.util.IOException2: remote file operation failed: project at hudson.remoting.Channel@37393739:slave
  2. 0

    When configured as post-build action, both plugins attempt to parse XML documents using a third party xml parser (xerces) on the slave node. As this library is not part of most JDK's it is usually not installed on the slave nodes. This then fails with the cryptic stacktrace: [PMD] Collecting PMD analysis files... ERROR: Publisher hudson.plugins.pmd.PmdPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: project at hudson.remoting.Channel@37393739:slave at hudson.FilePath.act(FilePath.java:835) at hudson.FilePath.act(FilePath.java:821) at hudson.plugins.pmd.PmdPublisher.perform(PmdPublisher.java:134) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:358) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632) at hudson.model.Run.run(Run.java:1463) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Caused by: java.io.IOException: Remote call on yasser-windows-slave failed at hudson.remoting.Channel.call(Channel.java:672) at hudson.FilePath.act(FilePath.java:828) ... 12 more Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at org.apache.commons.digester.Digester.getFactory(Digester.java:490) at org.apache.commons.digester.Digester.getParser(Digester.java:693) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.pmd.parser.PmdParser.parse(PmdParser.java:70) at hudson.plugins.analysis.core.AbstractAnnotationParser.parse(AbstractAnnotationParser.java:54) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:261) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:220) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:169) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2193) 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) Downloading the xerces library manually and adding it to the classpath works on linux, but fails on windows. In that case Jenkins outputs the following message to stdout: <===[JENKINS REMOTING CAPACITY]===>rO0ABXNyABpodWRzb24ucmVtb3RpbmcuQ2FwYWJpbGl0eQAAAAAAAAABAgABSgAEbWFza3hwAAAAAAAAAAY= I would expect that: - complicated operations, such as parsing an xml file, are performed solely on the master node; - a slave node does never need any third party libraries; - plugins are not allowed to execute part of their code on the slave nodes.

    Jenkins JIRA | 4 years ago | a a
    hudson.util.IOException2: remote file operation failed: project at hudson.remoting.Channel@37393739:slave
  3. 0

    When configured as post-build action, both plugins attempt to parse XML documents using a third party xml parser (xerces) on the slave node. As this library is not part of most JDK's it is usually not installed on the slave nodes. This then fails with the cryptic stacktrace: [PMD] Collecting PMD analysis files... ERROR: Publisher hudson.plugins.pmd.PmdPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: project at hudson.remoting.Channel@37393739:slave at hudson.FilePath.act(FilePath.java:835) at hudson.FilePath.act(FilePath.java:821) at hudson.plugins.pmd.PmdPublisher.perform(PmdPublisher.java:134) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:358) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632) at hudson.model.Run.run(Run.java:1463) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Caused by: java.io.IOException: Remote call on yasser-windows-slave failed at hudson.remoting.Channel.call(Channel.java:672) at hudson.FilePath.act(FilePath.java:828) ... 12 more Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at org.apache.commons.digester.Digester.getFactory(Digester.java:490) at org.apache.commons.digester.Digester.getParser(Digester.java:693) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.pmd.parser.PmdParser.parse(PmdParser.java:70) at hudson.plugins.analysis.core.AbstractAnnotationParser.parse(AbstractAnnotationParser.java:54) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:261) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:220) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:169) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2193) 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) Downloading the xerces library manually and adding it to the classpath works on linux, but fails on windows. In that case Jenkins outputs the following message to stdout: <===[JENKINS REMOTING CAPACITY]===>rO0ABXNyABpodWRzb24ucmVtb3RpbmcuQ2FwYWJpbGl0eQAAAAAAAAABAgABSgAEbWFza3hwAAAAAAAAAAY= I would expect that: - complicated operations, such as parsing an xml file, are performed solely on the master node; - a slave node does never need any third party libraries; - plugins are not allowed to execute part of their code on the slave nodes.

    Jenkins JIRA | 4 years ago | a a
    hudson.util.IOException2: remote file operation failed: project at hudson.remoting.Channel@37393739:slave
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am running Jenkins 1.486 on an OpenSUSE linux with various plugins (see attached System_Info.pdf for full list). I have 2 Windows slaves attached on which I run FLEX build/analysis/unit-test/flexcover. For the static analysis, I use FlexPMD which produces pmd.xml and cpd.xml files. Whenever I try to publish either of these files, I get an exception with basically the same stack trace in either case. It does not matter if I use one, or the other (or both), I get a build failure because of the exception. When I do not use either, the build is successful. I am using the DRY (v2.33) publisher and PMD (v3.33) publisher plugins, with the analysis-collector (v1.34) and analysis-core (v1.48). The DRY publisher plugin gives the following error [DRY] Collecting duplicate code analysis files... ERROR: Publisher hudson.plugins.dry.DryPublisher aborted due to exception The PMD publisher plugin gives the following error [PMD] Collecting PMD analysis files... ERROR: Publisher hudson.plugins.pmd.PmdPublisher aborted due to exception The following stack trace follows either error: [DRY] Collecting duplicate code analysis files... ERROR: Publisher hudson.plugins.dry.DryPublisher aborted due to exception [PMD] Collecting PMD analysis files... ERROR: Publisher hudson.plugins.pmd.PmdPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: d:\views\jenkins\workspace\KH_............._efx at hudson.remoting.Channel@512c512c:Slave Windows-HW-10.X.Y.Z at hudson.FilePath.act(FilePath.java:847) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.pmd.PmdPublisher.perform(PmdPublisher.java:139) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:144) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:329) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1541) 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: java.io.IOException: Remote call on Slave Windows-HW-10.244.160.82 failed at hudson.remoting.Channel.call(Channel.java:673) at hudson.FilePath.act(FilePath.java:840) ... 13 more Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at org.apache.commons.digester.Digester.getFactory(Digester.java:490) at org.apache.commons.digester.Digester.getParser(Digester.java:693) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.pmd.parser.PmdParser.parse(PmdParser.java:70) at hudson.plugins.analysis.core.AbstractAnnotationParser.parse(AbstractAnnotationParser.java:53) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:261) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:220) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:169) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2308) 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)

    Jenkins JIRA | 4 years ago | Bob Ballantyne
    hudson.util.IOException2: remote file operation failed: d:\views\jenkins\workspace\KH_............._efx at hudson.remoting.Channel@512c512c:Slave Windows-HW-10.X.Y.Z
  6. 0

    I am running Jenkins 1.486 on an OpenSUSE linux with various plugins (see attached System_Info.pdf for full list). I have 2 Windows slaves attached on which I run FLEX build/analysis/unit-test/flexcover. For the static analysis, I use FlexPMD which produces pmd.xml and cpd.xml files. Whenever I try to publish either of these files, I get an exception with basically the same stack trace in either case. It does not matter if I use one, or the other (or both), I get a build failure because of the exception. When I do not use either, the build is successful. I am using the DRY (v2.33) publisher and PMD (v3.33) publisher plugins, with the analysis-collector (v1.34) and analysis-core (v1.48). The DRY publisher plugin gives the following error [DRY] Collecting duplicate code analysis files... ERROR: Publisher hudson.plugins.dry.DryPublisher aborted due to exception The PMD publisher plugin gives the following error [PMD] Collecting PMD analysis files... ERROR: Publisher hudson.plugins.pmd.PmdPublisher aborted due to exception The following stack trace follows either error: [DRY] Collecting duplicate code analysis files... ERROR: Publisher hudson.plugins.dry.DryPublisher aborted due to exception [PMD] Collecting PMD analysis files... ERROR: Publisher hudson.plugins.pmd.PmdPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: d:\views\jenkins\workspace\KH_............._efx at hudson.remoting.Channel@512c512c:Slave Windows-HW-10.X.Y.Z at hudson.FilePath.act(FilePath.java:847) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.pmd.PmdPublisher.perform(PmdPublisher.java:139) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:144) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:329) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1541) 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: java.io.IOException: Remote call on Slave Windows-HW-10.244.160.82 failed at hudson.remoting.Channel.call(Channel.java:673) at hudson.FilePath.act(FilePath.java:840) ... 13 more Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at org.apache.commons.digester.Digester.getFactory(Digester.java:490) at org.apache.commons.digester.Digester.getParser(Digester.java:693) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.pmd.parser.PmdParser.parse(PmdParser.java:70) at hudson.plugins.analysis.core.AbstractAnnotationParser.parse(AbstractAnnotationParser.java:53) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:261) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:220) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:169) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2308) 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)

    Jenkins JIRA | 4 years ago | Bob Ballantyne
    hudson.util.IOException2: remote file operation failed: d:\views\jenkins\workspace\KH_............._efx at hudson.remoting.Channel@512c512c:Slave Windows-HW-10.X.Y.Z

    3 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. javax.xml.parsers.FactoryConfigurationError

      Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found

      at javax.xml.parsers.SAXParserFactory.newInstance()
    2. Java RT
      SAXParserFactory.newInstance
      1. javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
      1 frame
    3. Commons Digester
      Digester.parse
      1. org.apache.commons.digester.Digester.getFactory(Digester.java:490)
      2. org.apache.commons.digester.Digester.getParser(Digester.java:693)
      3. org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
      4. org.apache.commons.digester.Digester.parse(Digester.java:1666)
      4 frames
    4. PMD Plug-in
      PmdParser.parse
      1. hudson.plugins.pmd.parser.PmdParser.parse(PmdParser.java:70)
      1 frame
    5. Static Analysis Utilities
      FilesParser.invoke
      1. hudson.plugins.analysis.core.AbstractAnnotationParser.parse(AbstractAnnotationParser.java:54)
      2. hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:261)
      3. hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:220)
      4. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:169)
      5. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)
      5 frames
    6. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2193)
      1 frame
    7. 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
    8. 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
    9. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:60)
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame