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

Stack Overflow | firasKoubaa | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  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
    samebug tip
    If your external is in another server, you have to do a workaround to add the credentials: enter a second svn url for the external on the jenkins job, enter the credentials, and then you can delete the second svn url, as the credentials will be saved!
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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 | 10 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.

    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