rundeck
rundeck copied to clipboard
Rundeck (v3.3.2) - SCM Import/Export plugin failed to auth gitlab
Describe the bug
Unable to perform SCM Import/Export
actions from rundeck. Getting error: failed to push to git@<git-repo>:ta/rundeck-jobs.git git: Auth failed.
My Rundeck detail
- Rundeck version: [3.3.2-20200817]
- install type: [deb]
- OS Name/version: [ubuntu 18.04]
- DB Type/version: [Default DB/H2]
To Reproduce Steps to reproduce the behavior:
- Go to Any project
- Click on Project Settings --> Setup SCM configuration --> Enable/Configure
- (or) Perform SCM Import/Export on any projects
Expected behavior We should be able to import (or) export jobs to Gitlab successfully.
Screenshots
Desktop (please complete the following information):
- OS: [Windows]
- Browser [chrome]
- Version [10]
Additional context
From the rundeck server, If I use the same private key referred by the SCM Import/Export
manually, it works fine. i.e `ssh -i
I tried also generating new SSH Keys(both ed25519 & RSA 4096) & adding it to the Gitlab server which also didn't work. As mentioned before, it works manually from the terminal
we've been using the same setup for quite some time (around 2 years). We've recently upgraded the Gitlab Server to the version 15.8
on Ubuntu 22.04
. Couldn't tell whether it is causing any trouble because I am not able to capture the errors on the GitLab
end with respect to this.
Error Log generates in rundeck server:
[2023-03-22T08:14:59,256] ERROR services.ScmService [qtp141213117-19] - Failed to initialize SCM export plugin git-export for Labs: Failed fetch from the repository: [email protected]:ta/rundeck-jobs.git: Auth fail
com.dtolabs.rundeck.plugins.scm.ScmPluginException: Failed fetch from the repository: [email protected]:ta/rundeck-jobs.git: Auth fail
at sun.reflect.GeneratedConstructorAccessor596.newInstance(Unknown Source) ~[?:?]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_342]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_342]
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:80) ~[groovy-2.5.6.jar!/:2.5.6]
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:74) ~[groovy-2.5.6.jar!/:2.5.6]
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84) ~[groovy-2.5.6.jar!/:2.5.6]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:257) ~[groovy-2.5.6.jar!/:2.5.6]
at org.rundeck.plugin.scm.git.BaseGitPlugin.cloneOrCreate(BaseGitPlugin.groovy:581) ~[?:?]
at sun.reflect.GeneratedMethodAccessor2142.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43) ~[groovy-2.5.6.jar!/:2.5.6]
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190) ~[groovy-2.5.6.jar!/:2.5.6]
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58) ~[groovy-2.5.6.jar!/:2.5.6]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:184) ~[groovy-2.5.6.jar!/:2.5.6]
at org.rundeck.plugin.scm.git.GitExportPlugin.setup(GitExportPlugin.groovy:124) ~[?:?]
at org.rundeck.plugin.scm.git.GitExportPlugin$setup$0.callCurrent(Unknown Source) ~[?:?]
at org.rundeck.plugin.scm.git.GitExportPlugin.initialize(GitExportPlugin.groovy:70) ~[?:?]
at org.rundeck.plugin.scm.git.GitExportPlugin$initialize.call(Unknown Source) ~[?:?]
at org.rundeck.plugin.scm.git.GitExportPluginFactory.createPlugin(GitExportPluginFactory.groovy:71) ~[?:?]
at com.dtolabs.rundeck.plugins.scm.ScmExportPluginFactory$createPlugin.call(Unknown Source) ~[?:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) ~[groovy-2.5.6.jar!/:2.5.6]
at com.dtolabs.rundeck.plugins.scm.ScmExportPluginFactory$createPlugin.call(Unknown Source) ~[?:?]
at rundeck.services.ScmService.loadExportPluginWithConfig(ScmService.groovy:796) ~[classes!/:?]
at rundeck.services.ScmService$loadExportPluginWithConfig$12.callCurrent(Unknown Source) ~[?:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) ~[groovy-2.5.6.jar!/:2.5.6]
at rundeck.services.ScmService$loadExportPluginWithConfig$12.callCurrent(Unknown Source) ~[?:?]
at rundeck.services.ScmService.loadPluginWithConfig(ScmService.groovy:779) ~[classes!/:?]
at rundeck.services.ScmService$loadPluginWithConfig$11.callCurrent(Unknown Source) ~[?:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) ~[groovy-2.5.6.jar!/:2.5.6]
at rundeck.services.ScmService$loadPluginWithConfig$11.callCurrent(Unknown Source) ~[?:?]
at rundeck.services.ScmService.initPlugin(ScmService.groovy:438) ~[classes!/:?]
at rundeck.services.ScmService$initPlugin$8.callCurrent(Unknown Source) ~[?:?]
at rundeck.services.ScmService.initProject(ScmService.groovy:145) ~[classes!/:?]
at rundeck.services.ScmService$initProject$3.callCurrent(Unknown Source) ~[?:?]
at rundeck.services.ScmService.initProject(ScmService.groovy:116) ~[classes!/:?]
at rundeck.services.ScmService$initProject$2.callCurrent(Unknown Source) ~[?:?]
at rundeck.services.ScmService.projectHasConfiguredExportPlugin(ScmService.groovy:205) ~[classes!/:?]
at rundeck.services.ScmService$projectHasConfiguredExportPlugin$1.callCurrent(Unknown Source) ~[?:?]
at rundeck.services.ScmService.projectHasConfiguredPlugin(ScmService.groovy:200) ~[classes!/:?]
at rundeck.services.ScmService$projectHasConfiguredPlugin$17.call(Unknown Source) ~[?:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) ~[groovy-2.5.6.jar!/:2.5.6]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115) ~[groovy-2.5.6.jar!/:2.5.6]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:135) ~[groovy-2.5.6.jar!/:2.5.6]
at rundeck.controllers.ScmController.performAction(ScmController.groovy:1140) ~[classes!/:?]
at rundeck.controllers.ScmController.performAction(ScmController.groovy) ~[classes!/:?]
at org.grails.core.DefaultGrailsControllerClass$MethodHandleInvoker.invoke(DefaultGrailsControllerClass.java:223) ~[grails-core-4.0.3.jar!/:4.0.3]
at org.grails.core.DefaultGrailsControllerClass.invoke(DefaultGrailsControllerClass.java:188) ~[grails-core-4.0.3.jar!/:4.0.3]
at org.grails.web.mapping.mvc.UrlMappingsInfoHandlerAdapter.handle(UrlMappingsInfoHandlerAdapter.groovy:90) ~[grails-web-url-mappings-4.0.3.jar!/:4.0.3]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:645) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) ~[javax.servlet-api-4.0.1.jar!/:4.0.1]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.springframework.security.web.jaasapi.JaasApiIntegrationFilter$1.run(JaasApiIntegrationFilter.java:96) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_342]
at javax.security.auth.Subject.doAs(Subject.java:422) ~[?:1.8.0_342]
at org.springframework.security.web.jaasapi.JaasApiIntegrationFilter.doFilter(JaasApiIntegrationFilter.java:105) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at javax.servlet.FilterChain$doFilter.call(Unknown Source) ~[?:?]
at org.rundeck.grails.plugins.securityheaders.RundeckSecurityHeadersFilter.doFilterInternal(RundeckSecurityHeadersFilter.groovy:67) ~[grails-securityheaders-3.3.2-20200817.jar!/:?]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) ~[spring-boot-actuator-2.1.13.RELEASE.jar!/:2.1.13.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at grails.plugin.springsecurity.web.UpdateRequestContextHolderExceptionTranslationFilter.doFilter(UpdateRequestContextHolderExceptionTranslationFilter.groovy:64) ~[spring-security-core-4.0.2.jar!/:?]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:54) ~[spring-security-core-4.0.2.jar!/:?]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:158) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.jaasapi.JaasApiIntegrationFilter$1.run(JaasApiIntegrationFilter.java:96) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_342]
at javax.security.auth.Subject.doAs(Subject.java:422) ~[?:1.8.0_342]
at org.springframework.security.web.jaasapi.JaasApiIntegrationFilter.doFilter(JaasApiIntegrationFilter.java:105) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:64) ~[spring-security-core-4.0.2.jar!/:?]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58) ~[spring-security-core-4.0.2.jar!/:?]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) ~[spring-security-web-5.1.11.RELEASE.jar!/:5.1.11.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:77) ~[grails-web-mvc-4.0.3.jar!/:4.0.3]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67) ~[grails-web-mvc-4.0.3.jar!/:4.0.3]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) ~[spring-boot-actuator-2.1.13.RELEASE.jar!/:2.1.13.RELEASE]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) ~[spring-boot-actuator-2.1.13.RELEASE.jar!/:2.1.13.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:97) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590) ~[jetty-security-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) ~[jetty-servlet-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.Server.handle(Server.java:500) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) ~[jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) [jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) [jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270) [jetty-server-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [jetty-io-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [jetty-io-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [jetty-io-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [jetty-util-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [jetty-util-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [jetty-util-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [jetty-util-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388) [jetty-util-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) [jetty-util-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) [jetty-util-9.4.26.v20200117.jar!/:9.4.26.v20200117]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_342]
Caused by: org.eclipse.jgit.api.errors.TransportException: [email protected]:ta/rundeck-jobs.git: Auth fail
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:255) ~[?:?]
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:1) ~[?:?]
at java_util_concurrent_Callable$call$0.call(Unknown Source) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin.fetchFromRemote(BaseGitPlugin.groovy:255) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin$fetchFromRemote.callCurrent(Unknown Source) ~[?:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) ~[groovy-2.5.6.jar!/:2.5.6]
at org.rundeck.plugin.scm.git.BaseGitPlugin$fetchFromRemote.callCurrent(Unknown Source) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin.cloneOrCreate(BaseGitPlugin.groovy:577) ~[?:?]
... 141 more
Caused by: org.eclipse.jgit.errors.TransportException: [email protected]:ta/rundeck-jobs.git: Auth fail
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:191) ~[?:?]
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:140) ~[?:?]
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:280) ~[?:?]
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:170) ~[?:?]
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:138) ~[?:?]
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:124) ~[?:?]
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1293) ~[?:?]
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:244) ~[?:?]
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:1) ~[?:?]
at java_util_concurrent_Callable$call$0.call(Unknown Source) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin.fetchFromRemote(BaseGitPlugin.groovy:255) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin$fetchFromRemote.callCurrent(Unknown Source) ~[?:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) ~[groovy-2.5.6.jar!/:2.5.6]
at org.rundeck.plugin.scm.git.BaseGitPlugin$fetchFromRemote.callCurrent(Unknown Source) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin.cloneOrCreate(BaseGitPlugin.groovy:577) ~[?:?]
... 141 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:519) ~[jsch-0.1.55.jar!/:?]
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:145) ~[?:?]
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:140) ~[?:?]
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:280) ~[?:?]
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:170) ~[?:?]
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:138) ~[?:?]
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:124) ~[?:?]
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1293) ~[?:?]
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:244) ~[?:?]
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:1) ~[?:?]
at java_util_concurrent_Callable$call$0.call(Unknown Source) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin.fetchFromRemote(BaseGitPlugin.groovy:255) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin$fetchFromRemote.callCurrent(Unknown Source) ~[?:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) ~[groovy-2.5.6.jar!/:2.5.6]
at org.rundeck.plugin.scm.git.BaseGitPlugin$fetchFromRemote.callCurrent(Unknown Source) ~[?:?]
at org.rundeck.plugin.scm.git.BaseGitPlugin.cloneOrCreate(BaseGitPlugin.groovy:577) ~[?:?]
... 141 more
Hello,
one year and some versions later I am able to reproduce almost exactly the same behaviour. Happens to us also when trying to import an SCM repository.
We had working projects with SCM enabled without any issue, but after using the newer Gitlab version (16.0.6 and 16.1.1), as well as Gitlab.com, we are facing the same error:
Rundeck version: 4.14.1 and 4.4 tested. Previously (we had version 4.4.0) the error was just "Auth failed" (same as @fidalcastro)
Currently we are not able to use the SCM Plugin anymore, so it has gotten quite a big problem.
Hello,
one year and some versions later I am able to reproduce almost exactly the same behaviour. Happens to us also when trying to import an SCM repository.
We had working projects with SCM enabled without any issue, but after using the newer Gitlab version (16.0.6 and 16.1.1), as well as Gitlab.com, we are facing the same error:
Rundeck version: 4.14.1 and 4.4 tested. Previously (we had version 4.4.0) the error was just "Auth failed" (same as @fidalcastro)
Currently we are not able to use the SCM Plugin anymore, so it has gotten quite a big problem.
Rundeck only allows ed25519 rsa keys, I was facing the same problem and managed to configure scm import/export generating a new key of this type and importing it into github.
Rundeck version 4.14.2.
@laryssasre Thanks for sharing this. I guess, you may be right that the recent version of Rundeck allows ed25519
SSH keys. But our setup is old v3.3.2
. We do have a newer setup where we are using the ed25519
, where we don't have any issues.
BTW, I am able to workaround the issue with Gitlab Personal Access Token with Rundeck Version of v.3.3.2
. No other solutions works for me.
@rubjurgens I am curious to know that whether ed25519
worked for you ?
The same problem. SSH key format ed25519. Rundeck 5.1.2-20240328