Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65802

SVN Exception on M1 Mac/BigSur 11.4

    XMLWordPrintable

Details

    Description

      Starting from a completely wiped out work space, the svn plugin will checkout the project and start retrieving the files. After a few seconds to a minute (having already processed many files), an exception relating to unfinished transactions will happen. This seems specific to M1 based macs, and possibly specific to BigSur 11.4 update. The issue cannot be reproduced on non M1 macs, even on BigSur 11.4.

       

      11:48:06 org.tmatesoft.svn.core.SVNException: svn: E200030: There are unfinished transactions detected in '/Users/automation/.jenkins/workspace/xxxx/xxxx/Build'11:48:06 org.tmatesoft.svn.core.SVNException: svn: E200030: There are unfinished transactions detected in '/Users/automation/.jenkins/workspace/xxxx/xxxx/Build'11:48:06 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)11:48:06 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)11:48:06 at org.tmatesoft.svn.core.internal.wc17.db.SVNWCDbRoot.ensureNoUnfinishedTransactions(SVNWCDbRoot.java:177)11:48:06 at org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.ensureNoUnfinishedTransactions(SVNWCDb.java:212)11:48:06 at org.tmatesoft.svn.core.internal.wc17.SVNWCContext.ensureNoUnfinishedTransactions(SVNWCContext.java:5185)11:48:06 at org.tmatesoft.svn.core.wc2.SvnOperationFactory.releaseWcContext(SvnOperationFactory.java:1275)11:48:06 at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1255)11:48:06 at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)11:48:06 at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:130)11:48:06 Caused: java.io.IOException: Failed to check out svn://xxxx/xxxx/trunk11:48:06 at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:141)11:48:06 at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)11:48:06 at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:176)11:48:06 at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:132)11:48:06 at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)11:48:06 at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1040)11:48:06 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:1016)11:48:06 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:989)11:48:06 at hudson.FilePath.act(FilePath.java:1165)11:48:06 at hudson.FilePath.act(FilePath.java:1148)11:48:06 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:936)11:48:06 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:867)11:48:06 at hudson.scm.SCM.checkout(SCM.java:505)11:48:06 at hudson.model.AbstractProject.checkout(AbstractProject.java:1211)11:48:06 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:636)11:48:06 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)11:48:06 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:508)11:48:06 at hudson.model.Run.execute(Run.java:1906)11:48:06 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)11:48:06 at hudson.model.ResourceController.execute(ResourceController.java:97)11:48:06 at hudson.model.Executor.run(Executor.java:429)

      Attachments

        Activity

          • org.tmatesoft.svn.core.SVNException: svn: E200030: There are unfinished transactions detected in '[...]'
          • org.tmatesoft.svn.core.SVNException: svn: E155018: '[...]' already exists and is not a directory
          • org.tmatesoft.svn.core.SVNException: svn: E155004: Error writing entries file for '[...]'
          • org.tmatesoft.svn.core.SVNException: svn: E200030: BUSY

          Issue persists with Darwin 21.5 (macOS 12.4) and Subversion Plugin 2.16.0.

          niklas_the2nd Niklas Confidential added a comment - org.tmatesoft.svn.core.SVNException: svn: E200030: There are unfinished transactions detected in ' [...] ' org.tmatesoft.svn.core.SVNException: svn: E155018: ' [...] ' already exists and is not a directory org.tmatesoft.svn.core.SVNException: svn: E155004: Error writing entries file for ' [...] ' org.tmatesoft.svn.core.SVNException: svn: E200030: BUSY Issue persists with Darwin 21.5 (macOS 12.4) and Subversion Plugin 2.16.0.
          niklas_the2nd Niklas Confidential added a comment - - edited

          The issue is caused by SVN Kit.
          The current plugin uses SVN Kit 1.10.1. The issue persists in the current SVN Kit version (1.10.8).

          I fixed the issue by recompiling SVN Kit 1.10.8 with changes in
          core/internal/wc/SVNFileUtil.java
          SVNFileUtil.java.patch

          core/internal/util/jna/SVNLinuxUtil.java
          SVNLinuxUtil.java.patch

          From the resulting build folder I took svnkit-1.10.8-SNAPSHOT.jar to replace /var/lib/jenkins/plugins/subversion/WEB-INF/lib/svnkit-1.10.1.jar
          svnkit-1.10.8-SNAPSHOT.jar

          niklas_the2nd Niklas Confidential added a comment - - edited The issue is caused by SVN Kit. The current plugin uses SVN Kit 1.10.1. The issue persists in the current SVN Kit version (1.10.8). I fixed the issue by recompiling SVN Kit 1.10.8 with changes in core/internal/wc/SVNFileUtil.java SVNFileUtil.java.patch core/internal/util/jna/SVNLinuxUtil.java SVNLinuxUtil.java.patch From the resulting build folder I took svnkit-1.10.8-SNAPSHOT.jar to replace /var/lib/jenkins/plugins/subversion/WEB-INF/lib/svnkit-1.10.1.jar svnkit-1.10.8-SNAPSHOT.jar
          ivanhw Ivan Neeson added a comment -

          Great work! I've posted a thread on SVNKit's forum (couldn't find anywhere else to report bugs): https://support.tmatesoft.com/t/svn-exception-on-m1-mac-bigsur-11-4/2927

          Hopefully we can get an official update one day!

          ivanhw Ivan Neeson added a comment - Great work! I've posted a thread on SVNKit's forum (couldn't find anywhere else to report bugs): https://support.tmatesoft.com/t/svn-exception-on-m1-mac-bigsur-11-4/2927 Hopefully we can get an official update one day!
          ivanhw Ivan Neeson added a comment -

          SVNKit 1.10.10 has been released which should fix this bug. We just need the SVN plugin to update to SVNKit 1.10.10 now I think?

          ivanhw Ivan Neeson added a comment - SVNKit 1.10.10 has been released which should fix this bug. We just need the SVN plugin to update to SVNKit 1.10.10 now I think?
          cap Daniel Groh added a comment -

          I updated subversion-plugin to 2.17.1, which uses SVNKit 1.10.10. Issue seems to be solved!

          cap Daniel Groh added a comment - I updated subversion-plugin to 2.17.1, which uses SVNKit 1.10.10. Issue seems to be solved!

          People

            Unassigned Unassigned
            gadgetfreakuk Richard
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: