[JIRA] (JENKINS-50925) jenkins returns internal server error (500) when sending a push hook from GitLab

586 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
Apr 22, 2018, 3:02:02 AM4/22/18
to jenkinsc...@googlegroups.com
Oleg Nenashev moved an issue
 
Jenkins / Bug JENKINS-50925
jenkins returns internal server error (500) when sending a push hook from GitLab
Change By: Oleg Nenashev
Project: Infrastructure Jenkins
Key: INFRA JENKINS - 1567 50925
Workflow: classic default workflow JNJira + In-Review
Component/s: gitlab-plugin
Component/s: core
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Apr 22, 2018, 3:03:05 AM4/22/18
to jenkinsc...@googlegroups.com

owen@nerdnetworks.org (JIRA)

unread,
Apr 22, 2018, 8:48:03 PM4/22/18
to jenkinsc...@googlegroups.com
Owen Mehegan commented on Bug JENKINS-50925
 
Re: jenkins returns internal server error (500) when sending a push hook from GitLab

What versions of GitLab and gitlab-plugin are you using? How exactly are you sending the test webhook request?

JesseKPhillips@gmail.com (JIRA)

unread,
Jul 19, 2018, 6:17:02 PM7/19/18
to jenkinsc...@googlegroups.com

I hit this upgrading from Gitlab-Plugin 1.5.6 to 1.5.8

 GitLab Community Edition 11.0.3

This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

JesseKPhillips@gmail.com (JIRA)

unread,
Jul 19, 2018, 6:18:02 PM7/19/18
to jenkinsc...@googlegroups.com
Jesse Phillips edited a comment on Bug JENKINS-50925
I hit this upgrading from Gitlab-Plugin 1.5.6 to 1.5.8

 GitLab Community Edition 11.0.3


Problem was solved downgrading.

JesseKPhillips@gmail.com (JIRA)

unread,
Jul 19, 2018, 6:21:02 PM7/19/18
to jenkinsc...@googlegroups.com
Jesse Phillips edited a comment on Bug JENKINS-50925
I hit this upgrading from Gitlab-Plugin 1.5.6 to 1.5.8

 GitLab Community Edition 11.0.3

Problem was solved downgrading.


Might be related: Looks like my I made a cross reference problem. That is I triggered Project B from a Commit Hook coming from project A.

owen@nerdnetworks.org (JIRA)

unread,
Jul 19, 2018, 7:56:02 PM7/19/18
to jenkinsc...@googlegroups.com

Jesse Phillips can you attach the stack trace from Jenkins that you got? I don't think it should be a problem that you triggered a build of one repo from another's webhook.

JesseKPhillips@gmail.com (JIRA)

unread,
Jul 20, 2018, 11:38:03 AM7/20/18
to jenkinsc...@googlegroups.com
<h2>Stack trace</h2><pre style="margin:2em; clear:both">java.lang.NullPointerException
 at com.dabsquared.gitlabjenkins.trigger.handler.pipeline.PipelineHookTriggerHandlerImpl.handle(PipelineHookTriggerHandlerImpl.java:66)
 at com.dabsquared.gitlabjenkins.trigger.handler.pipeline.PipelineHookTriggerHandlerImpl.handle(PipelineHookTriggerHandlerImpl.java:32)
 at com.dabsquared.gitlabjenkins.GitLabPushTrigger.onPost(GitLabPushTrigger.java:460)
 at com.dabsquared.gitlabjenkins.webhook.build.PipelineBuildAction$1.performOnPost(PipelineBuildAction.java:62)
 at com.dabsquared.gitlabjenkins.webhook.build.BuildWebHookAction$TriggerNotifier.run(BuildWebHookAction.java:54)
 at hudson.security.ACL.impersonate(ACL.java:273)
 at com.dabsquared.gitlabjenkins.webhook.build.PipelineBuildAction.execute(PipelineBuildAction.java:59)
 at com.dabsquared.gitlabjenkins.webhook.build.BuildWebHookAction.execute(BuildWebHookAction.java:31)
 at com.dabsquared.gitlabjenkins.webhook.GitLabWebHook.getDynamic(GitLabWebHook.java:44)
 at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
 at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
 at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
 at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:372)
 at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
Caused: javax.servlet.ServletException
 at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:765)
 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
 at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
 at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
 at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
 at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at com.dabsquared.gitlabjenkins.webhook.GitLabWebHook$GitlabWebHookCrumbExclusion.process(GitLabWebHook.java:53)
 at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:73)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
 at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
 at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
 at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
 at org.eclipse.jetty.server.Server.handle(Server.java:531)
 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
 at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
 at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
 at winstone.BoundedExecutorService.lambda$scheduleNext$0(BoundedExecutorService.java:80)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
</pre>

JesseKPhillips@gmail.com (JIRA)

unread,
Jul 27, 2018, 5:44:02 PM7/27/18
to jenkinsc...@googlegroups.com

I seem to hit this when I have GitLab run a pipeline off the same commit as a previous pipeline.

I'm thinking this isn't going to work though since it is trying to checkout the commit for the hook rather than the repository branch I'm actually specifying to checkout from. Understandable since I'm using it different than intended.

owen@nerdnetworks.org (JIRA)

unread,
Aug 16, 2018, 2:05:02 AM8/16/18
to jenkinsc...@googlegroups.com

Stack trace is the same as the one in https://github.com/jenkinsci/gitlab-plugin/issues/794 There is a PR to fix that, it will be in the next plugin release. Please watch that issue for updates.

owen@nerdnetworks.org (JIRA)

unread,
Aug 16, 2018, 2:06:02 AM8/16/18
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages