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

Unable to access the Repository

    XMLWordPrintable

Details

    Description

      I am using SSH private key based user to access svn repo. 

      It was working fine toll I changed the private key because if security issue.

       

      Now in jenkins it's saying that the user is unable to access the repository.

       

      FYI, I am able to checkout the code using the same user from command line

       

      Attachments

        1. jenkinsjira.PNG
          18 kB
          Pragati Kumari
        2. jenkinsjira2.PNG
          28 kB
          Pragati Kumari

        Activity

          jvz Matt Sicker added a comment -

          Do you have any error log messages? What key type and parameters are you using for SSH?

          jvz Matt Sicker added a comment - Do you have any error log messages? What key type and parameters are you using for SSH?

          Error log is :

           
          10:51:08 org.tmatesoft.svn.core.SVNAuthenticationCancelledException: svn: E200015: Authentication cancelled*10:51:08* at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancelAuthentication(SVNErrorManager.java:43)10:51:08 at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getNextAuthentication(DefaultSVNAuthenticationManager.java:230)10:51:08 at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:134)10:51:08 at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:77)10:51:08 at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1274)10:51:08 at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.testConnection(SVNRepositoryImpl.java:99)10:51:08 at org.tmatesoft.svn.core.io.SVNRepository.getRepositoryUUID(SVNRepository.java:268)10:51:08 at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.createRepository(SvnRepositoryAccess.java:103)10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepository(SvnNgRepositoryAccess.java:211)10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.updateInternal(SvnNgAbstractUpdate.java:210)10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.update(SvnNgAbstractUpdate.java:115)10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:40)10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18)10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)10:51:08 at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)10:51:08 at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)10:51:08 at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)10:51:08 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311)10:51:08 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291)10:51:08 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387)10:51:08 at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:161)10:51:08 at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)10:51:08 at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1041)10:51:08 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:1017)10:51:08 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:990)10:51:08 at hudson.FilePath.act(FilePath.java:1078)10:51:08 at hudson.FilePath.act(FilePath.java:1061)10:51:08 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:937)10:51:08 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:864)10:51:08 at hudson.scm.SCM.checkout(SCM.java:504)10:51:08 at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)10:51:08 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)10:51:08 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)10:51:08 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)10:51:08 at hudson.model.Run.execute(Run.java:1810)10:51:08 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)10:51:08 at hudson.model.ResourceController.execute(ResourceController.java:97)10:51:08 at hudson.model.Executor.run(Executor.java:429)10:51:08 ERROR: Subversion update has been canceled*10:51:08* Build was aborted

          I have also attached the error details

          pragatikumari Pragati Kumari added a comment - Error log is :   10:51:08 org.tmatesoft.svn.core.SVNAuthenticationCancelledException: svn: E200015: Authentication cancelled*10:51:08* at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancelAuthentication(SVNErrorManager.java:43) 10:51:08 at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getNextAuthentication(DefaultSVNAuthenticationManager.java:230) 10:51:08 at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:134) 10:51:08 at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:77) 10:51:08 at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1274) 10:51:08 at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.testConnection(SVNRepositoryImpl.java:99) 10:51:08 at org.tmatesoft.svn.core.io.SVNRepository.getRepositoryUUID(SVNRepository.java:268) 10:51:08 at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.createRepository(SvnRepositoryAccess.java:103) 10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepository(SvnNgRepositoryAccess.java:211) 10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.updateInternal(SvnNgAbstractUpdate.java:210) 10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.update(SvnNgAbstractUpdate.java:115) 10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:40) 10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18) 10:51:08 at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20) 10:51:08 at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21) 10:51:08 at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239) 10:51:08 at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294) 10:51:08 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311) 10:51:08 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291) 10:51:08 at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387) 10:51:08 at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:161) 10:51:08 at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168) 10:51:08 at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1041) 10:51:08 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:1017) 10:51:08 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:990) 10:51:08 at hudson.FilePath.act(FilePath.java:1078) 10:51:08 at hudson.FilePath.act(FilePath.java:1061) 10:51:08 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:937) 10:51:08 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:864) 10:51:08 at hudson.scm.SCM.checkout(SCM.java:504) 10:51:08 at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) 10:51:08 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) 10:51:08 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 10:51:08 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 10:51:08 at hudson.model.Run.execute(Run.java:1810) 10:51:08 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 10:51:08 at hudson.model.ResourceController.execute(ResourceController.java:97) 10:51:08 at hudson.model.Executor.run(Executor.java:429) 10:51:08 ERROR: Subversion update has been canceled*10:51:08* Build was aborted I have also attached the error details

          I am using SSH username with private key

          pragatikumari Pragati Kumari added a comment - I am using SSH username with private key

          jvz

          Posting here to bump*. This is happening with the following versions as well:
          Jenkins - 2.332.1
          Plugin - 2.14.4

          The original SVN key was an RSA key. Due to security issues, we are trying to change all our keys to ECDSA or ED25519.
          However, on updating the key in the credential store (or adding a new key and trying to use it), SVN clone fails.

          I know the new keys work - I've tried them on command line locally. 

          Please let me know if you need more logs. I'm not seeing anything specific in the system log.

          Cleaning local Directory test
          Checking out svn+ssh://svn@sw-bin-vc.mainserver.com/Verification/results/system at revision '2022-05-17T09:20:36.102 -0500' --quiet
          Using sole credentials svn (svn_test_key) in realm ‘svn@svn+ssh://sw-bin-vc.mainserver.com’
          Using sole credentials svn (svn_test_key) in realm ‘svn@svn+ssh://sw-bin-vc.mainserver.com’
          ERROR: Subversion checkout has been canceled
          hudson.remoting.ProxyException: org.tmatesoft.svn.core.SVNAuthenticationCancelledException: svn: E200015: Authentication cancelled
          	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancelAuthentication(SVNErrorManager.java:43)
          	at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getNextAuthentication(DefaultSVNAuthenticationManager.java:230)
          	at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:134)
          	at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:79)
          	at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1282)
          	at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLatestRevision(SVNRepositoryImpl.java:173)
          	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:119)
          	at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:180)
          	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:43)
          	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.checkout(SvnNgAbstractUpdate.java:831)
          	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCheckout.run(SvnNgCheckout.java:26)
          	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCheckout.run(SvnNgCheckout.java:11)
          	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
          	at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
          	at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
          	at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
          	at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:130)
          Caused: hudson.remoting.ProxyException: java.lang.InterruptedException
          
          skhushalani Sagar Khushalani added a comment - jvz Posting here to bump*. This is happening with the following versions as well: Jenkins - 2.332.1 Plugin - 2.14.4 The original SVN key was an RSA key. Due to security issues, we are trying to change all our keys to ECDSA or ED25519. However, on updating the key in the credential store (or adding a new key and trying to use it), SVN clone fails. I know the new keys work - I've tried them on command line locally.  Please let me know if you need more logs. I'm not seeing anything specific in the system log. Cleaning local Directory test Checking out svn+ssh://svn@sw-bin-vc.mainserver.com/Verification/results/system at revision '2022-05-17T09:20:36.102 -0500' --quiet Using sole credentials svn (svn_test_key) in realm ‘svn@svn+ssh://sw-bin-vc.mainserver.com’ Using sole credentials svn (svn_test_key) in realm ‘svn@svn+ssh://sw-bin-vc.mainserver.com’ ERROR: Subversion checkout has been canceled hudson.remoting.ProxyException: org.tmatesoft.svn.core.SVNAuthenticationCancelledException: svn: E200015: Authentication cancelled at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancelAuthentication(SVNErrorManager.java:43) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getNextAuthentication(DefaultSVNAuthenticationManager.java:230) at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:134) at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:79) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1282) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLatestRevision(SVNRepositoryImpl.java:173) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:119) at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:180) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:43) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.checkout(SvnNgAbstractUpdate.java:831) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCheckout.run(SvnNgCheckout.java:26) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCheckout.run(SvnNgCheckout.java:11) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20) at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21) at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239) at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294) at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:130) Caused: hudson.remoting.ProxyException: java.lang.InterruptedException

          People

            jvz Matt Sicker
            pragatikumari Pragati Kumari
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: