Blue Ocean and Git connectivity issue

55 views
Skip to first unread message

Theo W

unread,
Apr 8, 2018, 8:44:17 AM4/8/18
to Jenkins Users
Hi,

I am currently running jenkins/blueocean in Docker along with Gitea as my Git server.

When creating a new pipeline, I run into a message saying that there is an Error :


I am not sure what could be the problem here as I have already added the generated SSH public key to my Gitea user account.  I can push/pull from the Gitea account with no issue from localhost but Jenkins is unable to.  


Could someone please advise


Vivek Pandey

unread,
Apr 9, 2018, 1:02:49 PM4/9/18
to jenkins...@googlegroups.com
Push validation failed. In this process it tries to create a test branch on your repo.  Can you provide full stack trace from jenkins log? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/32ab0352-323d-47dd-b306-4a90100720dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my iPhone

Theo W

unread,
Apr 10, 2018, 4:10:45 AM4/10/18
to jenkins...@googlegroups.com
Hi Vivek,

I was able to get past that screen and get to the pipeline editor interface, but did notice the following exception trace being output from the jenkinsci/blueocean official image:

jenkins_1  | Apr 10, 2018 8:00:27 AM org.eclipse.jetty.server.handler.ContextHandler$Context log
jenkins_1  | WARNING: Error while serving http://localhost:8080/blue/rest/pipeline-metadata/agentMetadata
jenkins_1  | java.lang.reflect.InvocationTargetException
jenkins_1  | at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
jenkins_1  | at org.kohsuke.stapler.ForwardingFunction.invoke(ForwardingFunction.java:63)
jenkins_1  | at io.jenkins.blueocean.commons.stapler.TreeResponse$Processor.invoke(TreeResponse.java:43)
jenkins_1  | at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
jenkins_1  | at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
jenkins_1  | at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
jenkins_1  | at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
jenkins_1  | at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
jenkins_1  | at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
jenkins_1  | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
jenkins_1  | at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
jenkins_1  | at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
jenkins_1  | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
jenkins_1  | at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
jenkins_1  | at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
jenkins_1  | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
jenkins_1  | at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:686)
jenkins_1  | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
jenkins_1  | at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
jenkins_1  | at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
jenkins_1  | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
jenkins_1  | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
jenkins_1  | at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
jenkins_1  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
jenkins_1  | at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
jenkins_1  | at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225)
jenkins_1  | at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
jenkins_1  | at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
jenkins_1  | at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
jenkins_1  | at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)
jenkins_1  | at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
jenkins_1  | at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1  | at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:105)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1  | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
jenkins_1  | at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
jenkins_1  | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1  | at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
jenkins_1  | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1  | at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
jenkins_1  | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1  | at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
jenkins_1  | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1  | at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
jenkins_1  | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1  | at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
jenkins_1  | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1  | at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
jenkins_1  | at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
jenkins_1  | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1  | at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
jenkins_1  | at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1  | at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1  | at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1  | at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
jenkins_1  | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
jenkins_1  | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
jenkins_1  | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
jenkins_1  | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
jenkins_1  | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
jenkins_1  | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
jenkins_1  | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
jenkins_1  | at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
jenkins_1  | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
jenkins_1  | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
jenkins_1  | at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
jenkins_1  | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
jenkins_1  | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
jenkins_1  | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
jenkins_1  | at org.eclipse.jetty.server.Server.handle(Server.java:564)
jenkins_1  | at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
jenkins_1  | at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
jenkins_1  | at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
jenkins_1  | at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
jenkins_1  | at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
jenkins_1  | at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
jenkins_1  | at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
jenkins_1  | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
jenkins_1  | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
jenkins_1  | at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
jenkins_1  | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
jenkins_1  | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
jenkins_1  | at java.lang.Thread.run(Thread.java:748)
jenkins_1  | Caused by: java.lang.NoSuchMethodError: org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgentDescriptor.all()Lhudson/ExtensionList;
jenkins_1  | at io.blueocean.rest.pipeline.editor.PipelineMetadataService.doAgentMetadata(PipelineMetadataService.java:70)
jenkins_1  | at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
jenkins_1  | at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
jenkins_1  | ... 90 more
jenkins_1  |


I don't add any stages to the pipeline and then click Save&Run and it gets stuck here:


If I refresh the page, I return to the Pipeline Editor.  Here I add a simple Build stage that prints "Hello World" and then save again.  Now it proceeds back to the project page and says that there is no Jenkinsfile that could be found.  When I check the repo however, I do see the Jenkinsfile there.  Clicking on "Create Pipeline" then takes me to my previous pipeline (with just the simple Build stage).  So even though it said there was no Jenkinsfile, it did end up finding it.

As a bit of background, I'm running the jenkinsci/blueocean:latest image in its own container, and Gitea in another container (on Docker for Mac).  I haven't modified the jenkins image at all, so wondering if this is the expected behavior at this point?




On Tue, Apr 10, 2018 at 1:02 AM, Vivek Pandey <vivek....@gmail.com> wrote:
Push validation failed. In this process it tries to create a test branch on your repo.  Can you provide full stack trace from jenkins log? 
On Sun, Apr 8, 2018 at 5:44 AM Theo W <fob...@gmail.com> wrote:
Hi,

I am currently running jenkins/blueocean in Docker along with Gitea as my Git server.

When creating a new pipeline, I run into a message saying that there is an Error :


I am not sure what could be the problem here as I have already added the generated SSH public key to my Gitea user account.  I can push/pull from the Gitea account with no issue from localhost but Jenkins is unable to.  


Could someone please advise


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
--
Sent from my iPhone

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKT4V1_m1ahC_QE8hsz8GOYtSax%3DS%2BHmN%3DqyG_L7bXLSCjiF2g%40mail.gmail.com.

Vivek Pandey

unread,
Apr 17, 2018, 2:38:55 PM4/17/18
to jenkins...@googlegroups.com
Theo,

Ah, you encountered whats reported here: https://issues.jenkins-ci.org/browse/JENKINS-50833. There was an incompatible change in method signature introduced in pipeline-demos-definition:1.2.8. Its been fixed and released in 1.2.9. You can try upgrading to 1.2.9.


Reply all
Reply to author
Forward
0 new messages