[workflow plugin] how to force stop stuck build?

1,169 views
Skip to first unread message

Christoph Vogtländer

unread,
Apr 7, 2015, 5:36:54 PM4/7/15
to Jenkinsci Users
Hi,

I'm not able to abort a stuck workflow. The workflow is waiting for
another job started with a "build" step which crashed with a exception
(some random problem I have with the copy to CIFS plug in).
Trying to abort the workflow build using the "stop" button does not
work. In the log I only see "Aborted by MyUsername". But nothing happens
and the build continues. Unfortunately, restarting Jenkins will not
solve the problem as the workflow will be resumed. In the meanwhile
another build was triggered and is waiting for the older build to
finish. I'm not able to stop this build as well.

How can I force stop these workflow builds?


Baptiste Mathus

unread,
Apr 8, 2015, 5:02:56 AM4/8/15
to jenkins...@googlegroups.com




--
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/438d071aad152200f8cb1eb6ca93cd03%40kfpc.de.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Christoph Vogtländer

unread,
Apr 8, 2015, 6:19:38 AM4/8/15
to jenkins...@googlegroups.com

Workaround does not work for me (see stack trace below). Any other
options?

java.io.IOException: D:\Jenkins\jobs\job\builds\2015-04-05_00-41-16 is
in use
at hudson.model.Run.delete(Run.java:1523)
at hudson.model.Run.doDoDelete(Run.java:2193)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at
org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:46)
at
org.kohsuke.stapler.Function$InterceptedFunction.invoke(Function.java:399)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:391)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
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:848)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:117)
at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
at
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at
com.marvelution.jenkins.plugins.jira.filter.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:51)
at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
at
com.marvelution.jenkins.plugins.jira.filter.OAuthFilter.doFilter(OAuthFilter.java:87)
at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
at
hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
at
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
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:142)
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:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:168)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at
org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at
winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Am 08.04.2015 11:01, schrieb Baptiste Mathus:
> Hi,
>
> Known issue: https://issues.jenkins-ci.org/browse/JENKINS-25550 [3]
>
> Cheers
>
> 2015-04-07 17:53 GMT+02:00 Christoph Vogtländer <jen...@mockies.de>:
>
>> Hi,
>>
>> I'm not able to abort a stuck workflow. The workflow is waiting for
>> another job started with a "build" step which crashed with a
>> exception (some random problem I have with the copy to CIFS plug
>> in).
>> Trying to abort the workflow build using the "stop" button does not
>> work. In the log I only see "Aborted by MyUsername". But nothing
>> happens and the build continues. Unfortunately, restarting Jenkins
>> will not solve the problem as the workflow will be resumed. In the
>> meanwhile another build was triggered and is waiting for the older
>> build to finish. I'm not able to stop this build as well.
>>
>> How can I force stop these workflow builds?
>>
>> --
>> 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.
>> [1].
>> For more options, visit https://groups.google.com/d/optout [2].
>
> --
>
> Baptiste <Batmat> MATHUS - http://batmat.net [4]
> Sauvez un arbre,
> Mangez un castor !
>
> --
> 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/CANWgJS423KUcwh6zMFT692oa%2BmeRBQigTQbH%2BQS4Rp8zxf9%2BoA%40mail.gmail.com
> [5].
> For more options, visit https://groups.google.com/d/optout [2].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/jenkinsci-users/438d071aad152200f8cb1eb6ca93cd03%40kfpc.de
> [2] https://groups.google.com/d/optout
> [3] https://issues.jenkins-ci.org/browse/JENKINS-25550
> [4] http://batmat.net
> [5]
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS423KUcwh6zMFT692oa%2BmeRBQigTQbH%2BQS4Rp8zxf9%2BoA%40mail.gmail.com?utm_medium=email&utm_source=footer

Jesse Glick

unread,
Jun 16, 2015, 3:10:03 PM6/16/15
to jenkins...@googlegroups.com, jen...@mockies.de
On Wednesday, April 8, 2015 at 6:19:38 AM UTC-4, Christoph Vogtländer wrote:
Workaround does not work for me

Right, the workaround is not available on Windows nor or NFS. You would need to shut down Jenkins, delete the build directory from a command prompt, and restart. Sorry. 
Reply all
Reply to author
Forward
0 new messages