org.tmatesoft.svn.core.SVNException: svn: Error restoring text for '/tmp/hudson/workspace/Data-Trunk-FT/data/DecisionTreeBuilder/src/test/java/com/contextweb/data/id3/cli/RemoveOldFilesTest.java'

Jenkins JIRA | alexrovner | 6 years ago
  1. 0

    I get the following error when Hudson tries to revert svn working copy on a slave node. This doesn't seem to happen on every build but once the working copy is in this state manual intervention is required. Based on SVN history this seems to happen when the parent folder of a file was renamed. In this particular case we have renamed the package names. Started by timer Building remotely on cw-grid50 Reverting http://cwsvn.contextweb.corp/svn/contextad/trunk/JavaProjects/maven-projects/data ERROR: Failed to update http://cwsvn.contextweb.corp/svn/contextad/trunk/JavaProjects/maven-projects/data org.tmatesoft.svn.core.SVNException: svn: Error restoring text for '/tmp/hudson/workspace/Data-Trunk-FT/data/DecisionTreeBuilder/src/test/java/com/contextweb/data/id3/cli/RemoveOldFilesTest.java' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.wc.SVNWCClient.revert(SVNWCClient.java:3477) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3357) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:1876) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:696) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899) at hudson.remoting.UserRequest.perform(UserRequest.java:114) 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) Email was triggered for: Failure Email was triggered for: Still Failing Trigger Failure was overridden by another trigger and will not send an email. Sending email for trigger: Still Failing Sending email to: hadoopdev@contextweb.com Finished: FAILURE

    Jenkins JIRA | 6 years ago | alexrovner
    org.tmatesoft.svn.core.SVNException: svn: Error restoring text for '/tmp/hudson/workspace/Data-Trunk-FT/data/DecisionTreeBuilder/src/test/java/com/contextweb/data/id3/cli/RemoveOldFilesTest.java'
  2. 0

    I get the following error when Hudson tries to revert svn working copy on a slave node. This doesn't seem to happen on every build but once the working copy is in this state manual intervention is required. Based on SVN history this seems to happen when the parent folder of a file was renamed. In this particular case we have renamed the package names. Started by timer Building remotely on cw-grid50 Reverting http://cwsvn.contextweb.corp/svn/contextad/trunk/JavaProjects/maven-projects/data ERROR: Failed to update http://cwsvn.contextweb.corp/svn/contextad/trunk/JavaProjects/maven-projects/data org.tmatesoft.svn.core.SVNException: svn: Error restoring text for '/tmp/hudson/workspace/Data-Trunk-FT/data/DecisionTreeBuilder/src/test/java/com/contextweb/data/id3/cli/RemoveOldFilesTest.java' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.wc.SVNWCClient.revert(SVNWCClient.java:3477) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3357) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:1876) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:696) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899) at hudson.remoting.UserRequest.perform(UserRequest.java:114) 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) Email was triggered for: Failure Email was triggered for: Still Failing Trigger Failure was overridden by another trigger and will not send an email. Sending email for trigger: Still Failing Sending email to: hadoopdev@contextweb.com Finished: FAILURE

    Jenkins JIRA | 6 years ago | alexrovner
    org.tmatesoft.svn.core.SVNException: svn: Error restoring text for '/tmp/hudson/workspace/Data-Trunk-FT/data/DecisionTreeBuilder/src/test/java/com/contextweb/data/id3/cli/RemoveOldFilesTest.java'
  3. 0

    After upgrading from 1.346 to 1.348, jobs that used svn and the "upgrade" and "revert" checkboxes checked would fail to build: {noformat} Console Output View as plain text Started by an SCM change Building remotely on SNIP Reverting http://svn. SNIP ERROR: Failed to update http://svn. SNIP org.tmatesoft.svn.core.SVNException: svn: Directory '/SNIP/target/.svn' containing working copy admin area is missing at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.retrieve(SVNWCAccess.java:681) at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeRetrieve(SVNWCAccess.java:446) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3290) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:1876) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:629) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:593) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1962) at hudson.remoting.UserRequest.perform(UserRequest.java:114) 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: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:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) FATAL: null java.lang.NullPointerException at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:653) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:593) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1962) at hudson.remoting.UserRequest.perform(UserRequest.java:114) 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: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:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) {noformat}

    Jenkins JIRA | 7 years ago | mrobertm
    org.tmatesoft.svn.core.SVNException: svn: Directory '/SNIP/target/.svn' containing working copy admin area is missing
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After upgrading from 1.346 to 1.348, jobs that used svn and the "upgrade" and "revert" checkboxes checked would fail to build: {noformat} Console Output View as plain text Started by an SCM change Building remotely on SNIP Reverting http://svn. SNIP ERROR: Failed to update http://svn. SNIP org.tmatesoft.svn.core.SVNException: svn: Directory '/SNIP/target/.svn' containing working copy admin area is missing at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.retrieve(SVNWCAccess.java:681) at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeRetrieve(SVNWCAccess.java:446) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3290) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398) at org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:1876) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:629) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:593) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1962) at hudson.remoting.UserRequest.perform(UserRequest.java:114) 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: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:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) FATAL: null java.lang.NullPointerException at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:653) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:593) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1962) at hudson.remoting.UserRequest.perform(UserRequest.java:114) 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: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:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) {noformat}

    Jenkins JIRA | 7 years ago | mrobertm
    org.tmatesoft.svn.core.SVNException: svn: Directory '/SNIP/target/.svn' containing working copy admin area is missing
  6. 0

    SVNKit could show slowness for file:// protocol although native svn client is very responsive. Eg. native client returned very quickly {code} $ svn diff --summarize -r 44421:44422 file:///home/czawadka/repos/X@44422 real 4m3.358s user 1m54.759s sys 0m52.803s {code} but the same command using jsvn has been running for over 1h still without success. Eventually Fisheye using SVNKit fails with {code} 2014-04-14 11:15:21,785 ERROR - Problem processing revisions from repo X due to class com.cenqua.fisheye.rep.RepositoryClientException - org.apache.subversion.javahl.ClientException: svn: E135003: Unable to make name for '/data/atlas sian/fisheye/data/var/tmp/svn' com.cenqua.fisheye.rep.RepositoryClientException: org.apache.subversion.javahl.ClientException: svn: E135003: Unable to make name for '/data/atlassian/fisheye/data/var/tmp/svn' at com.cenqua.fisheye.svn.SvnThrottledClient.executeNoThrottle(SvnThrottledClient.java:176) at com.cenqua.fisheye.svn.SvnThrottledClient.execute(SvnThrottledClient.java:145) at com.cenqua.fisheye.svn.SvnThrottledClient.diff(SvnThrottledClient.java:201) at com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiffPaths(Svn2Infill2Processor.java:742) at com.atlassian.fisheye.svn.Svn2Infill2Processor.infillChangeSet(Svn2Infill2Processor.java:256) at com.atlassian.fisheye.svn.Svn2Infill2Processor.access$100(Svn2Infill2Processor.java:81) at com.atlassian.fisheye.svn.Svn2Infill2Processor$1.perform(Svn2Infill2Processor.java:128) at com.atlassian.fisheye.svn.Svn2Infill2Processor$1.perform(Svn2Infill2Processor.java:113) at com.cenqua.fisheye.cache.BaseRevisionCache.withDbWriteLock(BaseRevisionCache.java:1014) at com.atlassian.fisheye.svn.Svn2Infill2Processor.process(Svn2Infill2Processor.java:113) at com.atlassian.fisheye.svn.Svn2Scanner.slurpRepository(Svn2Scanner.java:210) at com.atlassian.fisheye.svn.Svn2Scanner.doSlurpTransaction(Svn2Scanner.java:179) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:75) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:397) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:25) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:54) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:219) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:56) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:175) 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:744) Caused by: org.apache.subversion.javahl.ClientException: svn: E135003: Unable to make name for '/data/atlassian/fisheye/data/var/tmp/svn' at org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68) at org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1294) at org.tmatesoft.svn.core.javahl17.SVNClientImpl.diff(SVNClientImpl.java:1008) at org.apache.subversion.javahl.SVNClient.diff(SVNClient.java:182) at com.cenqua.fisheye.svn.SvnThrottledClient$3.call(SvnThrottledClient.java:205) at com.cenqua.fisheye.svn.SvnThrottledClient$3.call(SvnThrottledClient.java:202) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at com.cenqua.fisheye.svn.SvnTask.run(SvnTask.java:34) ... 3 more Caused by: org.tmatesoft.svn.core.SVNException: svn: E135003: Unable to make name for '/data/atlassian/fisheye/data/var/tmp/svn' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.createUniqueFile(SVNFileUtil.java:544) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRemoteDiffEditor2.applyTextDelta(SvnNgRemoteDiffEditor2.java:315) {code} which suggests the SVNKit failed to create temporary file after 99999 tries. There are two problems: * svnkit should use much less expensive way to find unique file * tmp files are not removed from tmp folder h3. Workaround 0 Use native SVN client as described in https://confluence.atlassian.com/display/FISHEYE/Native+Subversion+Client h3. Workaround 1 Stop Fisheye, remove FISHEYE_INST/var/tmp/svn folder and start Fisheye again - https://answers.atlassian.com/questions/279448/deleting-fisheye-temporary-files h3. Workaround 2 another workaround is to change the URL from file:// to be remote URL (eg: HTTP) to index the problematic changeset and switch back to file:// protocol later on

    Atlassian JIRA | 3 years ago | Cezary Zawadka
    com.cenqua.fisheye.rep.RepositoryClientException: org.apache.subversion.javahl.ClientException: svn: E135003: Unable to make name for '/data/atlassian/fisheye/data/var/tmp/svn'

    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.tmatesoft.svn.core.SVNException

      svn: Error restoring text for '/tmp/hudson/workspace/Data-Trunk-FT/data/DecisionTreeBuilder/src/test/java/com/contextweb/data/id3/cli/RemoveOldFilesTest.java'

      at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error()
    2. SVNKit Library
      SVNWCClient.doRevert
      1. org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
      2. org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
      3. org.tmatesoft.svn.core.wc.SVNWCClient.revert(SVNWCClient.java:3477)
      4. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3357)
      5. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      6. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      7. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      8. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      9. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      10. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      11. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      12. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      13. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      14. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:3398)
      15. org.tmatesoft.svn.core.wc.SVNWCClient.doRevert(SVNWCClient.java:1876)
      15 frames
    3. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:696)
      2. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660)
      3. hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)
      3 frames
    4. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.perform(UserRequest.java:114)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:270)
      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:886)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      6. java.lang.Thread.run(Thread.java:619)
      6 frames