hudson.util.IOException2: Failed to copy D:\jenkins\jobs\Workspace Processor\builds\2012-10-22_07-43-43\archive\install\Proxy\build.xml to D:\jenkins\jobs\Common\workspace\install\Proxy\build.xml

Jenkins JIRA | Andrew Kujtan | 4 years ago
  1. 0

    After a power failure a bunch of fingerprint files were corrupted and were just filled with 5kb of null chars. This caused any build that ran after to fail on the copyartifacts task. It should probably be made to handle parse exceptions. As I understand it there is a fingerprint cleanup thread that runs periodically, can it be triggered manually? and will it remove fingerprint files that can't be parsed? To fix the below error I just deleted all the corrupted files. ERROR: Failed to copy artifacts from Workspace Processor with filter: install/** hudson.util.IOException2: Failed to copy D:\jenkins\jobs\Workspace Processor\builds\2012-10-22_07-43-43\archive\install\Proxy\build.xml to D:\jenkins\jobs\Common\workspace\install\Proxy\build.xml at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:97) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:64) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589) at hudson.model.Run.execute(Run.java:1516) 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.util.IOException2: Unable to read D:\jenkins\fingerprints\0a\f0\9d4fd69dbb48671e2b504323d9b8.xml at hudson.XmlFile.read(XmlFile.java:139) at hudson.model.Fingerprint.load(Fingerprint.java:910) at hudson.model.Fingerprint.load(Fingerprint.java:898) at hudson.model.FingerprintMap.load(FingerprintMap.java:94) at hudson.model.FingerprintMap.load(FingerprintMap.java:45) at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:154) at hudson.model.FingerprintMap.get(FingerprintMap.java:79) at hudson.model.FingerprintMap.get(FingerprintMap.java:45) at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:108) at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:65) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:90) ... 12 more Caused by: com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:154) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:147) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:126) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:111) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:864) at hudson.XmlFile.read(XmlFile.java:137) ... 22 more Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63) ... 31 more

    Jenkins JIRA | 4 years ago | Andrew Kujtan
    hudson.util.IOException2: Failed to copy D:\jenkins\jobs\Workspace Processor\builds\2012-10-22_07-43-43\archive\install\Proxy\build.xml to D:\jenkins\jobs\Common\workspace\install\Proxy\build.xml
  2. 0

    [JENKINS-15595] XmlPullParserException when reading corrupted fingerprint file. - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    hudson.util.IOException2: Failed to copy D:\jenkins\jobs\Workspace Processor\builds\2012-10-22_07-43-43\archive\install\Proxy\build.xml to D:\jenkins\jobs\Common\workspace\install\Proxy\build.xml
  3. 0

    After a power failure a bunch of fingerprint files were corrupted and were just filled with 5kb of null chars. This caused any build that ran after to fail on the copyartifacts task. It should probably be made to handle parse exceptions. As I understand it there is a fingerprint cleanup thread that runs periodically, can it be triggered manually? and will it remove fingerprint files that can't be parsed? To fix the below error I just deleted all the corrupted files. ERROR: Failed to copy artifacts from Workspace Processor with filter: install/** hudson.util.IOException2: Failed to copy D:\jenkins\jobs\Workspace Processor\builds\2012-10-22_07-43-43\archive\install\Proxy\build.xml to D:\jenkins\jobs\Common\workspace\install\Proxy\build.xml at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:97) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:64) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589) at hudson.model.Run.execute(Run.java:1516) 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.util.IOException2: Unable to read D:\jenkins\fingerprints\0a\f0\9d4fd69dbb48671e2b504323d9b8.xml at hudson.XmlFile.read(XmlFile.java:139) at hudson.model.Fingerprint.load(Fingerprint.java:910) at hudson.model.Fingerprint.load(Fingerprint.java:898) at hudson.model.FingerprintMap.load(FingerprintMap.java:94) at hudson.model.FingerprintMap.load(FingerprintMap.java:45) at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:154) at hudson.model.FingerprintMap.get(FingerprintMap.java:79) at hudson.model.FingerprintMap.get(FingerprintMap.java:45) at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:108) at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:65) at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:90) ... 12 more Caused by: com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:154) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:147) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:126) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:111) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:864) at hudson.XmlFile.read(XmlFile.java:137) ... 22 more Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63) ... 31 more

    Jenkins JIRA | 4 years ago | Andrew Kujtan
    hudson.util.IOException2: Failed to copy D:\jenkins\jobs\Workspace Processor\builds\2012-10-22_07-43-43\archive\install\Proxy\build.xml to D:\jenkins\jobs\Common\workspace\install\Proxy\build.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins users - IOException2 reading fingerprints

    nabble.com | 1 year ago
    java.util.concurrent.ExecutionException: hudson.util.IOException2: Unable to read C:\hudson\hudson_master\bin\..\data\fingerprints\bc\3a\50120bbb72afe43a8d26d1633d0d.xml
  6. 0

    Jenkins users - ERROR: Asynchronous execution failure

    nabble.com | 1 year ago
    java.util.concurrent.ExecutionException: hudson.util.IOException2: Unable to read d:\work\software\data\hudson\fingerprints\56\28\65ae650a067a0c92aa2fca26dd73.xml

    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. org.xmlpull.v1.XmlPullParserException

      only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)

      at org.xmlpull.mxp1.MXParser.parseProlog()
    2. MXP1: Xml Pull Parser 3rd Edition (XPP3)
      MXParser.next
      1. org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
      2. org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
      3. org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
      3 frames
    3. XStream Core
      XStream.fromXML
      1. com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63)
      2. com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:154)
      3. com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:147)
      4. com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:126)
      5. com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:111)
      6. com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48)
      7. com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44)
      8. com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49)
      9. com.thoughtworks.xstream.XStream.fromXML(XStream.java:864)
      9 frames
    4. Hudson
      FingerprintMap.getOrCreate
      1. hudson.XmlFile.read(XmlFile.java:137)
      2. hudson.model.Fingerprint.load(Fingerprint.java:910)
      3. hudson.model.Fingerprint.load(Fingerprint.java:898)
      4. hudson.model.FingerprintMap.load(FingerprintMap.java:94)
      5. hudson.model.FingerprintMap.load(FingerprintMap.java:45)
      6. hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:154)
      7. hudson.model.FingerprintMap.get(FingerprintMap.java:79)
      8. hudson.model.FingerprintMap.get(FingerprintMap.java:45)
      9. hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:108)
      10. hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:65)
      10 frames
    5. hudson.plugins.copyartifact
      CopyArtifact.perform
      1. hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:90)
      2. hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:64)
      3. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243)
      4. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215)
      4 frames
    6. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807)
      3. hudson.model.Build$BuildExecution.build(Build.java:199)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589)
      6. hudson.model.Run.execute(Run.java:1516)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames