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

Subversion SCM plugin fails to do an svn update

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am able to checkout using svn command line while logged in a jenkins user.
      I have setup credentials for my user in Jenkins.
      The configuration is able to detect the svn url exists by changing url to an path that does not exist and then back to the original. So the project configuration works with the saved credential.

      Using Jenkins Subversion plugin 2.4.4.
      Credentials Plugin v1.10

      All Jenkins jobs were getting svn updates but then I started to get these errors:

      -----------------ERROR STARTS HERE -------------------------------------
      Started by user Enrique Riddle
      Building remotely on SlvBld01 (windows) in workspace D:\SlvBld01\workspace\CFOARTB-HF
      Updating https://abcd.abcd.com/amplify_tfe/branches/HF at revision '2014-10-21T11:09:37.255 -0600'
      ERROR: Failed to update https://abcd.abcd.com/amplify_tfe/branches/HF
      org.tmatesoft.svn.core.SVNException: svn: E175002: OPTIONS /amplify_tfe/branches/HF failed
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:388)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:373)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:361)
      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)
      at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:148)
      at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.createRepository(SvnRepositoryAccess.java:106)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepository(SvnNgRepositoryAccess.java:210)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.updateInternal(SvnNgAbstractUpdate.java:144)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.update(SvnNgAbstractUpdate.java:76)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:38)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
      at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)
      at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1238)
      at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
      at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311)
      at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291)
      at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387)
      at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:157)
      at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:161)
      at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1004)
      at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:985)
      at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:961)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2476)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at hudson.remoting.Engine$1$1.run(Engine.java:63)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: svn: E175002: OPTIONS /amplify_tfe/branches/HF failed
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154)
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97)
      ... 36 more
      Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: OPTIONS request failed on '/amplify_tfe/branches/HF'
      svn: E175002: Unsupported record version Unknown-0.0
      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.io.dav.http.HTTPConnection._request(HTTPConnection.java:777)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:382)
      ... 35 more
      Caused by: svn: E175002: OPTIONS request failed on '/amplify_tfe/branches/HF'
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:775)
      ... 36 more
      Caused by: svn: E175002: Unsupported record version Unknown-0.0
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:109)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:526)
      ... 36 more
      Caused by: javax.net.ssl.SSLException: Unsupported record version Unknown-0.0
      at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:524)
      at sun.security.ssl.InputRecord.read(InputRecord.java:506)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
      at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
      at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
      at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.sendData(HTTPConnection.java:323)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:170)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:480)
      ... 36 more
      ERROR: Subversion update failed
      java.io.IOException: remote file operation failed: D:\SlvBld01\workspace\CFOARTB-HF at hudson.remoting.Channel@6cf469:SlvBld01
      at hudson.FilePath.act(FilePath.java:914)
      at hudson.FilePath.act(FilePath.java:896)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:910)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:845)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1258)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      at hudson.model.Run.execute(Run.java:1759)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      Caused by: java.io.IOException
      at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:211)
      at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:161)
      at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1004)
      at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:985)
      at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:961)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2476)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at hudson.remoting.Engine$1$1.run(Engine.java:63)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: hudson.scm.subversion.UpdaterException: failed to perform svn update
      ... 15 more
      Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: OPTIONS /amplify_tfe/branches/HF failed
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:388)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:373)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:361)
      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)
      at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:148)
      at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.createRepository(SvnRepositoryAccess.java:106)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepository(SvnNgRepositoryAccess.java:210)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.updateInternal(SvnNgAbstractUpdate.java:144)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.update(SvnNgAbstractUpdate.java:76)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:38)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18)
      at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
      at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)
      at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1238)
      at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
      at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311)
      at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291)
      at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387)
      at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:157)
      ... 14 more
      Caused by: svn: E175002: OPTIONS /amplify_tfe/branches/HF failed
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154)
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97)
      ... 36 more
      Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: OPTIONS request failed on '/amplify_tfe/branches/HF'
      svn: E175002: Unsupported record version Unknown-0.0
      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.io.dav.http.HTTPConnection._request(HTTPConnection.java:777)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:382)
      ... 35 more
      Caused by: svn: E175002: OPTIONS request failed on '/amplify_tfe/branches/HF'
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:775)
      ... 36 more
      Caused by: svn: E175002: Unsupported record version Unknown-0.0
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:109)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:526)
      ... 36 more
      Caused by: javax.net.ssl.SSLException: Unsupported record version Unknown-0.0
      at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:524)
      at sun.security.ssl.InputRecord.read(InputRecord.java:506)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
      at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
      at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
      at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.sendData(HTTPConnection.java:323)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:170)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:480)
      ... 36 more
      [WARNINGS] Skipping publisher since build result is FAILURE
      Archiving artifacts
      Finished: FAILURE

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Also, make sure to use the same JRE as used to run the slave.

          Show
          danielbeck Daniel Beck added a comment - Also, make sure to use the same JRE as used to run the slave.
          Hide
          eoriddle Enrique Riddle added a comment -

          jsvn worked like a champ even when setting to same JRE run by the Jenkins Slave windows service.
          D:\>SET JAVA_HOME=c:\Java\jdk1.7.0_40

          D:\>d:\Builds\svnkit-1.8.6\bin\jsvn checkout https://merchantservices.svn.cloudforge.com/softwarebuilds/BuildScripts/Jenkins/PrePROD/CMTools d:\SlvBld01\workspace\testSVN\WCopy3
          A SlvBld01\workspace\testSVN\WCopy3\AdminScripts
          A SlvBld01\workspace\testSVN\WCopy3\AdminScripts\FindPrivateMSMQ.ps1

          Show
          eoriddle Enrique Riddle added a comment - jsvn worked like a champ even when setting to same JRE run by the Jenkins Slave windows service. D:\>SET JAVA_HOME=c:\Java\jdk1.7.0_40 D:\>d:\Builds\svnkit-1.8.6\bin\jsvn checkout https://merchantservices.svn.cloudforge.com/softwarebuilds/BuildScripts/Jenkins/PrePROD/CMTools d:\SlvBld01\workspace\testSVN\WCopy3 A SlvBld01\workspace\testSVN\WCopy3\AdminScripts A SlvBld01\workspace\testSVN\WCopy3\AdminScripts\FindPrivateMSMQ.ps1
          Hide
          eoriddle Enrique Riddle added a comment -

          Daniel,
          Solved the problem your diagnosis of ssl problems and then using jsvn got me to thinking about the jnlp file that launches the Jenkins Slave Windows Service.
          I dropped the extra argument -Dsvnkit.http.sslProtocols="SSLv3"
          so in the jnlp this does not work:
          <!-- arguments>-Xrs -Dsvnkit.http.sslProtocols="SSLv3" -jar "%BASE%\slave.jar" -jnlpUrl http://10.80.66.189:8080/computer/SlvBld01/slave-agent.jnlp -secret fsdfasdfasdfasdfasdfsadfasdfsdfasdfsdfsadf</arguments>
          but this now does:
          <!-- arguments>-Xrs -jar "%BASE%\slave.jar" -jnlpUrl http://10.80.66.189:8080/computer/SlvBld01/slave-agent.jnlp -secret fsdfasdfasdfasdfasdfsadfasdfsdfasdfsdfsadf</arguments>

          Thanks for your help.
          Enrique

          Show
          eoriddle Enrique Riddle added a comment - Daniel, Solved the problem your diagnosis of ssl problems and then using jsvn got me to thinking about the jnlp file that launches the Jenkins Slave Windows Service. I dropped the extra argument -Dsvnkit.http.sslProtocols="SSLv3" so in the jnlp this does not work: <!-- arguments>-Xrs -Dsvnkit.http.sslProtocols="SSLv3" -jar "%BASE%\slave.jar" -jnlpUrl http://10.80.66.189:8080/computer/SlvBld01/slave-agent.jnlp -secret fsdfasdfasdfasdfasdfsadfasdfsdfasdfsdfsadf</arguments> but this now does: <!-- arguments>-Xrs -jar "%BASE%\slave.jar" -jnlpUrl http://10.80.66.189:8080/computer/SlvBld01/slave-agent.jnlp -secret fsdfasdfasdfasdfasdfsadfasdfsdfasdfsdfsadf</arguments> Thanks for your help. Enrique
          Hide
          danielbeck Daniel Beck added a comment -

          Not a defect: Reporter explicitly configured a now no longer supported SSL version.

          Show
          danielbeck Daniel Beck added a comment - Not a defect: Reporter explicitly configured a now no longer supported SSL version.
          Hide
          mgainty Martin Gainty added a comment -

          This looks to be a problem with the Windows Based Jenkins Slave:

          open a command line window cmd.exe
          sc qc "JenkinsSlave" (if that's what your service name is)
          select and copy the BINARY_PATH_NAME value
          change it, adding -Dsvnkit.http.sslProtocols=""TLSv1"" after the jar path - mind the double quote
          sc config "JenkinsSlave" binPath= <paste the changed value copied earlier>
          Replace JenkinsSlave with your service name.

          then restart jenkins webapp with the following arg:
          -Dsvnkit.http.sslProtocols="TLSv1"

          Show
          mgainty Martin Gainty added a comment - This looks to be a problem with the Windows Based Jenkins Slave: open a command line window cmd.exe sc qc "JenkinsSlave" (if that's what your service name is) select and copy the BINARY_PATH_NAME value change it, adding -Dsvnkit.http.sslProtocols=""TLSv1"" after the jar path - mind the double quote sc config "JenkinsSlave" binPath= <paste the changed value copied earlier> Replace JenkinsSlave with your service name. then restart jenkins webapp with the following arg: -Dsvnkit.http.sslProtocols="TLSv1"

            People

            • Assignee:
              eoriddle Enrique Riddle
              Reporter:
              eoriddle Enrique Riddle
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: