Jenkins / Hudson SVN Problem

I have a (weird) problem with my Jenkins installation, which basically leads to SVN crashes that don't work on an alternative basis.

The stack trace shows two problems:

hudson.util.IOException2: revision check failed on (my repo).... 

and

 Caused by: org.tmatesoft.svn.core.SVNException: svn: OPTIONS (my repo) 

If I restart the build after this, everything will be fine.

Mark

Editing with ganders with the same problem:

Here's the stack trace from my machine that is causing this error. It would seem that this happens when he tries to access the SVNExternals (... / trunk / common) directory, and for some reason he does not have credentials on the first access attempt. Then next time it works fine:

hudson.util.IOException2: version check failed https://myserver.com/....../TrialsMobile/trunk/common in hudson.scm.SubversionChangeLogBuilder.buildModule (SubversionChangeLogBuilder.java:189) in hudson.scm. SubversionChangeLogBuilder.run (SubversionChangeLogBuilder.java:132) in hudson.scm.SubversionSCM.calcChangeLog (SubversionSCM.java:738) in hudson.scm.SubversionSCM.checkout (SubversionSCM.java:899) in hudsonbProject.ProclcheckProject .java: 1414) in hudson.model.AbstractBuild $ AbstractBuildExecution.defaultCheckout (AbstractBuild.java:671) in jenkins.scm.SCMCheckoutStrategy.checkout (SCMCheckoutStrategy.java:88) in hudson.model.Abuubildild java: 580) in hudson.model.Run.execute (Run.java:1676) in hudson.model.FreeStyleBuild.run (FreeStyleBuild.java:43) in hudson.model.ResourceController.execute (ResourceController.java:88) on hudson.model.Executor.run (Executor.java:231) Invoked: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: OPTIONS / svn / mobilena / ios / TrialsMobile / trunk / common failed to execute org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request ( HTTPConnection.java{ 84) in org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request (HTTPConnection.javahaps73) in org.tmatesoft.svn.core.internal.io.dav.http. HTTPConnection.request (HTTPConnection.javahaps61) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest (DAVConnection.java:707) at org.tmatesoft.svn.core.internal.io.dav. DAVConnection.exchangeCapabilities (DAVConnection.java:627) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open (DAVConnection.java:102) at org.tmatesoft.svn.core.internal.io.dav. DAVRepository.openConnection (DAVRepository.java:1020) in org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision (DAVRepository.java:180) in org.tmatesoft.svn.core.internal.wc2.ng. SvnNgRepositoryAccess.getRevi sionNumber (SvnNgRepositoryAccess.java:118) in org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations (SvnRepositoryAccess.java:148) in org.tmatesoft.svn.core.internal.wc2.c.sepnngccess SvnNgRepositoryAccess.java:45) in org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run (SvnRemoteLog.java:160) in org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLogrun SvnRemoteLog.java:35) in org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run (SvnOperationRunner.java:20) in org.tmatesoft.svn.core.wc2.SvnOperationFactory.run (SvnOpeavaFactory.run (SvnOpeavaFactory.run (svnOpeavaFactory) at org.tmatesoft.svn.core.wc2.SvnOperation.run (SvnOperation.java:294) at org.tmatesoft.svn.core.wc.SVNLogClient.doLog (SVNLogClient.java:967) at org.tmatesoft.svn.core .wc.SVNLogClient.doLog (SVNLogClient.java:872) in hudson.scm.SubversionChangeLogBuilder.buildModule (SubversionChangeLogBuilder.java:177) ... 11 more Caused by: org.tmatesoft.svn.core.SVNCancelEx ception: svn: E200015: no credentials required. Authentication failed org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel (SVNErrorManager.java:37) in org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel (SVNErrorManager.java:32) in org. tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication (DefaultSVNAuthenticationManager.java:185) in org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request (HTTPConnection.ava. tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request (HTTPConnection.java{82) ... 29 more

+6
source share
3 answers

You are not the only one with this problem .

It seems that your assembly work is related to the fact that this happens when checking the revision (do I need to build?), And when you rebuild by clicking the "Create Now" button, it works fine. Try a few things:

  • First, do you use the latest version of the plugin? What if you revert to a previous version of the Subversion plugin? If you are not using the latest version of the plugin, can you update it?
  • Check the configuration. Do you provide credentials? If not, try providing credentials and see if that helps.
  • Take a look at this new feature (not the bug).
  • Take a look at this post.

It seems like there was a bug that added an added feature to the Jenkins SVN plugin in version 2.0, which changed the way authentication was external. Adding surprises is the main cause of death in the programmer community.

+1
source

none of these error lines shed much light on the problem. If you can get into svn magazines, post them.

If it is too much, it is a problem with access, perhaps you have permission to read, but not write to the repo, or one part of the system has the wrong username / password. You may have entered a typo in the svn url in one part of the jenkins configuration. These are the things where I would look first.

0
source

The error occurs from SVN. Therefore, you can try to create a new directory in SVN. You can also try using IP instead of the host name. If you can try, please contact a network expert.

-2
source

Source: https://habr.com/ru/post/921745/