org.tmatesoft.svn.core.SVNException: svn: E200030: READONLY

Stack Overflow | firasKoubaa | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    SVNKit - Users - SVNkit on OpenVMS Alpha V8.3 with Java 1.5...

    nabble.com | 1 year ago
    org.tmatesoft.svn.core.SVNException: svn: E200030: BUSY
  2. 0

    h3. Summary If we start a build but then choose to stop the build while it's in the middle of the _Source Code Checkout_, Bamboo leaves the SVN working copy in a locked state and therefore the next time we start the build, it will fail with the {{"svn: E155004"}} error stating the directory is locked. It would be nice if Bamboo could clean up the working copy after stopping a build or if the build was interrupted to avoid this problem. h3. Steps to Reproduce # Run a build configured to checkout code from a [Subversion|https://confluence.atlassian.com/display/BAMBOO/Subversion] repository. # Stop build while Bamboo is executing the _Source Code Checkout_ task. # Start a new build. h3. Expected Results The new build should run without any problems. h3. Actual Results The new build fails with the following exception: {noformat} error 01-Aug-2016 17:46:39 Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout. error 01-Aug-2016 17:46:39 java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code for revision '2', plan 'SVN-SUB-JOB1': svn: E155004: Working copy '/Users/bamboo/Documents/Atlassian/bamboo/bamboo-5.10.3/home/xml-data/build-dir/163841/SVN-SUB-JOB1' locked error 01-Aug-2016 17:46:39 svn: E155004: '/Users/bamboo/Documents/Atlassian/bamboo/bamboo-5.10.3/home/xml-data/build-dir/163841/SVN-SUB-JOB1' is already locked. error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:144) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:203) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:145) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$125(TaskExecutorImpl.java:273) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:83) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:74) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:215) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:137) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 01-Aug-2016 17:46:39 at java.lang.Thread.run(Thread.java:745) error 01-Aug-2016 17:46:39 Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code for revision '2', plan 'SVN-SUB-JOB1': svn: E155004: Working copy '/Users/bamboo/Documents/Atlassian/bamboo/bamboo-5.10.3/home/xml-data/build-dir/163841/SVN-SUB-JOB1' locked error 01-Aug-2016 17:46:39 svn: E155004: '/Users/bamboo/Documents/Atlassian/bamboo/bamboo-5.10.3/home/xml-data/build-dir/163841/SVN-SUB-JOB1' is already locked. error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCode(SvnRepository.java:627) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:280) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:57) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:150) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:146) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) error 01-Aug-2016 17:46:39 ... 20 more error 01-Aug-2016 17:46:39 Caused by: org.tmatesoft.svn.core.SVNException: svn: E155004: Working copy '/Users/bamboo/Documents/Atlassian/bamboo/bamboo-5.10.3/home/xml-data/build-dir/163841/SVN-SUB-JOB1' locked error 01-Aug-2016 17:46:39 svn: E155004: '/Users/bamboo/Documents/Atlassian/bamboo/bamboo-5.10.3/home/xml-data/build-dir/163841/SVN-SUB-JOB1' is already locked. error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb$WCLockObtain.transaction(SVNWCDb.java:5722) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.db.SVNSqlJetDb.runTransaction(SVNSqlJetDb.java:256) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.db.SVNSqlJetDb.runTransaction(SVNSqlJetDb.java:250) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.obtainWCLock(SVNWCDb.java:5655) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc17.SVNWCContext.acquireWriteLock(SVNWCContext.java:1632) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.update(SvnNgAbstractUpdate.java:106) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:38) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291) error 01-Aug-2016 17:46:39 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.repository.svn.SvnRepository.update(SvnRepository.java:1315) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCodeWithException(SvnRepository.java:735) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCodeWithCleanup(SvnRepository.java:661) error 01-Aug-2016 17:46:39 at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCode(SvnRepository.java:604) error 01-Aug-2016 17:46:39 ... 25 more {noformat} h3.Workaround It is necessary to manually clear the SVN working copy for the failing plan at *$BAMBOO_HOME/xml-data/build-dir/PROJ-PLAN-JOB1* to be able to start new builds. Update and [clean|http://www.tigris.org/nonav/scdocs/ddUsingSVN_command-line.html.en#svnclean] your working copy: {noformat} svn update svn cleanup {noformat}

    Atlassian JIRA | 8 months ago | Bruno Rosa
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code for revision '2', plan 'SVN-SUB-JOB1': svn: E155004: Working copy '/Users/bamboo/Documents/Atlassian/bamboo/bamboo-5.10.3/home/xml-data/build-dir/163841/SVN-SUB-JOB1' locked svn: E155004: '/Users/bamboo/Documents/Atlassian/bamboo/bamboo-5.10.3/home/xml-data/build-dir/163841/SVN-SUB-JOB1' is already locked.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    After upgrading Jenkins, SVN checkouts started to fail. An exception is thrown during working copy revert: {noformat} org.tmatesoft.svn.core.SVNException: svn: E200030: Index not exists: I_NODES_MOVED 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.db.SVNSqlJetDb.createSqlJetError(SVNSqlJetDb.java:195) at org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.openCursor(SVNSqlJetSelectStatement.java:63) at org.tmatesoft.svn.core.internal.db.SVNSqlJetStatement.next(SVNSqlJetStatement.java:90) at org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.next(SVNSqlJetSelectStatement.java:108) at org.tmatesoft.svn.core.internal.wc17.db.SvnWcDbRevert.revertRecursive(SvnWcDbRevert.java:329) [complete stacktrace attached] {noformat} This seems to be triggered by _Check-out Strategy_ being set to _Use 'svn update' as much as possible, with 'svn revert' before update_ in project settings (which causes SVN revert to run as a result). The origin seems to be [SVNKIT-582|https://issues.tmatesoft.com/issue/SVNKIT-582]. According to the [change log|https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin#SubversionPlugin-ChangeLog], the regression seems to have been introduced in {{2.5.5}} with _SVNKit library upgraded to 1.8.11_. Although this seems to be a [known issue|https://www.mail-archive.com/dev@wso2.org/msg50593.html], I believe reporting it here can be valuable as while the original issue isn't fixed people may decide to downgrade the plug-in or plug-in developers may downgrade the library within the plug-in to the latest working version (which is...?).

    Jenkins JIRA | 1 year ago | Helder Magalhães
    org.tmatesoft.svn.core.SVNException: svn: E200030: Index not exists: I_NODES_MOVED

    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.sqljet.core.SqlJetException

      READONLY: error code is READONLY

      at org.tmatesoft.sqljet.core.internal.btree.SqlJetBtree.beginTrans()
    2. SqlJet Library
      SqlJetEngine.beginTransaction
      1. org.tmatesoft.sqljet.core.internal.btree.SqlJetBtree.beginTrans(SqlJetBtree.java:894)
      2. org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.doBeginTransaction(SqlJetEngine.java:561)
      3. org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.access$100(SqlJetEngine.java:55)
      4. org.tmatesoft.sqljet.core.table.engine.SqlJetEngine$9.runSynchronized(SqlJetEngine.java:475)
      5. org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runSynchronized(SqlJetEngine.java:217)
      6. org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.beginTransaction(SqlJetEngine.java:471)
      6 frames
    3. SVNKit Library
      SVNUpdateClient.doUpdate
      1. org.tmatesoft.svn.core.internal.db.SVNSqlJetDb.beginTransaction(SVNSqlJetDb.java:206)
      2. org.tmatesoft.svn.core.internal.db.SVNSqlJetDb.runTransaction(SVNSqlJetDb.java:257)
      3. org.tmatesoft.svn.core.internal.db.SVNSqlJetDb.runTransaction(SVNSqlJetDb.java:252)
      4. org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.obtainWCLock(SVNWCDb.java:5661)
      5. org.tmatesoft.svn.core.internal.wc17.SVNWCContext.acquireWriteLock(SVNWCContext.java:1637)
      6. org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.update(SvnNgAbstractUpdate.java:106)
      7. org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:38)
      8. org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18)
      9. org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
      10. org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
      11. org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235)
      12. org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
      13. org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311)
      14. org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291)
      15. org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387)
      15 frames
    4. Hudson Subversion Plug-in
      WorkspaceUpdater$UpdateTask.delegateTo
      1. hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:158)
      2. hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162)
      2 frames
    5. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:996)
      2. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:972)
      3. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:948)
      4. hudson.FilePath.act(FilePath.java:1018)
      5. hudson.FilePath.act(FilePath.java:996)
      6. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:897)
      7. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:833)
      8. hudson.scm.SCM.checkout(SCM.java:495)
      9. hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
      10. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      10 frames
    6. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      2. hudson.model.Run.execute(Run.java:1720)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:404)
      5 frames