Closed AFriemann closed 1 year ago
Jenkins version 2.346.3
JTE version 2.5.3
pipeline was waiting for user input: input(submitter: 'xxx', message: 'confirm please')
Resuming build at ... after Jenkins restart
[Pipeline] End of pipeline
java.lang.ClassNotFoundException: org.boolzallen.plugins.jte.init.primitives.injectors.StepWrapperCPS
...
at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader$SandboxedUnmarshaller.lambda$readObject0(RiverReader.java:259)
...
Caused: java.io.IOException: failed to load build state
Sorry can't provide the full trace right now. Nor the full pipeline config. But ask me what you need to know.
Jenkins Version 2.332.3
JTE Version 2.5.3
Bug Description Same issue here as @AFriemann. Pipelines that have run successfully last week Friday; today show as failed, as they are trying to be resumed after supposed Jenkins restart (that restart didn't actually happen, last restart was even before successful job run).
Relevant log output
2023-03-10 18:00:33 [JTE][@AfterStep - utils/logger.post_step]
2023-03-10 18:00:34 [Pipeline] echo
2023-03-10 18:00:34 ℹ️ INFO ℹ️ - POST-STEP: k8s.apply
2023-03-10 18:00:34 [Pipeline] cleanWs
2023-03-10 18:00:34 [WS-CLEANUP] Deleting project workspace...
2023-03-10 18:00:34 [WS-CLEANUP] Deferred wipeout is used...
2023-03-10 18:00:34 [WS-CLEANUP] done
2023-03-10 18:00:34 [Pipeline] }
2023-03-10 18:00:34 [Pipeline] // node
2023-03-10 18:00:34 [JTE][@AfterStep - utils/logger.post_step]
2023-03-10 18:00:34 [Pipeline] echo
2023-03-10 18:00:34 ℹ️ INFO ℹ️ - POST-STEP: jenkins.in_node
2023-03-10 18:00:34 [Pipeline] End of Pipeline
2023-03-10 18:00:35 Finished: SUCCESS
2023-03-13 06:59:24 Resuming build at Mon Mar 13 05:59:24 GMT 2023 after Jenkins restart
2023-03-13 06:59:24 [Pipeline] End of Pipeline
2023-03-13 06:59:24 java.io.FileNotFoundException: /var/jenkins_home/jobs/*foldername*/jobs/*jobname*/builds/228/program.dat (No such file or directory)
2023-03-13 06:59:24 at java.base/java.io.FileInputStream.open0(Native Method)
2023-03-13 06:59:24 at java.base/java.io.FileInputStream.open(Unknown Source)
2023-03-13 06:59:24 at java.base/java.io.FileInputStream.<init>(Unknown Source)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader.openStreamAt(RiverReader.java:196)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader.restorePickles(RiverReader.java:140)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.loadProgramAsync(CpsFlowExecution.java:774)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.onLoad(CpsFlowExecution.java:740)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.job.WorkflowRun.getExecution(WorkflowRun.java:701)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.job.WorkflowRun.onLoad(WorkflowRun.java:560)
2023-03-13 06:59:24 at hudson.model.RunMap.retrieve(RunMap.java:234)
2023-03-13 06:59:24 at hudson.model.RunMap.retrieve(RunMap.java:62)
2023-03-13 06:59:24 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:653)
2023-03-13 06:59:24 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:635)
2023-03-13 06:59:24 at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:533)
2023-03-13 06:59:24 at jenkins.model.lazy.LazyBuildMixIn.getBuildByNumber(LazyBuildMixIn.java:229)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.job.WorkflowJob.getBuildByNumber(WorkflowJob.java:244)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.job.WorkflowJob.getBuildByNumber(WorkflowJob.java:105)
2023-03-13 06:59:24 at jenkins.model.PeepholePermalink.resolve(PeepholePermalink.java:104)
2023-03-13 06:59:24 at hudson.model.Job.getLastSuccessfulBuild(Job.java:946)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.job.WorkflowJob.getSCMs(WorkflowJob.java:545)
2023-03-13 06:59:24 at hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener.onNotifyCommit(GitStatus.java:368)
2023-03-13 06:59:24 at hudson.plugins.git.GitStatus.doNotifyCommit(GitStatus.java:177)
2023-03-13 06:59:24 at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
2023-03-13 06:59:24 at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:398)
2023-03-13 06:59:24 at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:410)
2023-03-13 06:59:24 at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:208)
2023-03-13 06:59:24 at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:141)
2023-03-13 06:59:24 at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:558)
2023-03-13 06:59:24 at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59)
2023-03-13 06:59:24 at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
2023-03-13 06:59:24 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
2023-03-13 06:59:24 at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:475)
2023-03-13 06:59:24 at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
2023-03-13 06:59:24 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
2023-03-13 06:59:24 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:694)
2023-03-13 06:59:24 at org.kohsuke.stapler.Stapler.service(Stapler.java:240)
2023-03-13 06:59:24 at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:157)
2023-03-13 06:59:24 at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:129)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:112)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:81)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:60)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)
2023-03-13 06:59:24 at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)
2023-03-13 06:59:24 at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)
2023-03-13 06:59:24 at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:121)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:64)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2023-03-13 06:59:24 at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:160)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2023-03-13 06:59:24 at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:160)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:94)
2023-03-13 06:59:24 at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
2023-03-13 06:59:24 at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
2023-03-13 06:59:24 at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:122)
2023-03-13 06:59:24 at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:116)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
2023-03-13 06:59:24 at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:109)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
2023-03-13 06:59:24 at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:136)
2023-03-13 06:59:24 at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:93)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
2023-03-13 06:59:24 at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:219)
2023-03-13 06:59:24 at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:213)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
2023-03-13 06:59:24 at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
2023-03-13 06:59:24 at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
2023-03-13 06:59:24 at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
2023-03-13 06:59:24 at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
2023-03-13 06:59:24 at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:111)
2023-03-13 06:59:24 at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:172)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2023-03-13 06:59:24 at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2023-03-13 06:59:24 at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2023-03-13 06:59:24 at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2023-03-13 06:59:24 at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
2023-03-13 06:59:24 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
2023-03-13 06:59:24 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
2023-03-13 06:59:24 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
2023-03-13 06:59:24 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
2023-03-13 06:59:24 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
2023-03-13 06:59:24 at org.eclipse.jetty.server.Server.handle(Server.java:516)
2023-03-13 06:59:24 at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
2023-03-13 06:59:24 at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
2023-03-13 06:59:24 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
2023-03-13 06:59:24 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
2023-03-13 06:59:24 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
2023-03-13 06:59:24 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
2023-03-13 06:59:24 at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
2023-03-13 06:59:24 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
2023-03-13 06:59:24 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
2023-03-13 06:59:24 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
2023-03-13 06:59:24 at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
2023-03-13 06:59:24 at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
2023-03-13 06:59:24 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
2023-03-13 06:59:24 at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
2023-03-13 06:59:24 Caused: java.io.IOException: Failed to load build state
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$3.onSuccess(CpsFlowExecution.java:848)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$3.onSuccess(CpsFlowExecution.java:844)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5$1.run(CpsFlowExecution.java:920)
2023-03-13 06:59:24 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)
2023-03-13 06:59:24 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
2023-03-13 06:59:24 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
2023-03-13 06:59:24 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
2023-03-13 06:59:24 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
2023-03-13 06:59:24 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
2023-03-13 06:59:24 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
2023-03-13 06:59:24 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
2023-03-13 06:59:24 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2023-03-13 06:59:24 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2023-03-13 06:59:24 at java.base/java.lang.Thread.run(Unknown Source)
2023-03-13 06:59:26 Finished: FAILURE
@steven-terrana @cokieffebah Any chance to solve this? Or any hint of some conflicting configuration in my Jenkins instance that could cause this problem?
I work for the flagship app of a well-known company and we have done a JTE PoC with the intention to migrate all our pipelines to JTE. But this issue is preventing us to do so, as it would generate too much confusion for developers.
Thanks!
So I tried turning off resuming entirely and ran into an interesting new error
package library.ruby.steps
void call(Map args = [:], body) {
def version = config.version ?: '2.7'
podTemplate(
containers: [containerTemplate(name: 'ruby', image: "ruby:${version}", command: 'sleep', args: '99d')]
) {
node(POD_LABEL) {
properties([disableResume()]) // <---- this
container('ruby') {
body()
}
}
}
}
this results in the same problem but a different exception
15:57:24 Finished: SUCCESS
18:18:26 Resuming build at Thu Mar 30 16:18:26 GMT 2023 after Jenkins restart
18:18:26 [Pipeline] End of Pipeline
18:18:26 Ready to run at Thu Mar 30 16:18:26 GMT 2023
18:18:26 java.lang.IllegalStateException: JENKINS-50407: no loaded shell in CpsFlowExecution[Owner[**** #1]]
18:18:26 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:35)
18:18:26 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:187)
18:18:26 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:420)
18:18:26 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:330)
18:18:26 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:294)
18:18:26 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
18:18:26 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
18:18:26 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
18:18:26 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
18:18:26 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
18:18:26 at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
18:18:26 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
18:18:26 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
18:18:26 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
18:18:26 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
18:18:26 at java.base/java.lang.Thread.run(Unknown Source)
which pointed me there: https://issues.jenkins.io/browse/JENKINS-64021?attachmentOrder=asc
not sure what do do with this yet though :)
Will reopen if steps are found to reliably reproduce the issue
The problem definitely exists. We also have some successful JTE pipeline jobs that restart for inexplicable reasons. Probably independent of the Jenkins server restart. My developers are visibly annoyed by this. We have not yet found a reliable way to reproduce this. It would be nice if the problem would not get out of focus.
Hello,
I am also having the same issue with all my jobs using JTE pipeline :(
Finished: SUCCESS Resuming build at Mon Jul 31 23:18:56 CEST 2023 after Jenkins restart [Pipeline] End of Pipeline java.io.FileNotFoundException: /var/jenkins_home/jobs/XXX/jobs/auth-wall/jobs/auth-wall-nginx/builds/12/program.dat (No such file or directory) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(Unknown Source) at java.base/java.io.FileInputStream.
(Unknown Source) at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader.openStreamAt(RiverReader.java:196) at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader.restorePickles(RiverReader.java:140) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.loadProgramAsync(CpsFlowExecution.java:787) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.onLoad(CpsFlowExecution.java:753) at org.jenkinsci.plugins.workflow.job.WorkflowRun.getExecution(WorkflowRun.java:720) at org.jenkinsci.plugins.workflow.job.WorkflowRun.onLoad(WorkflowRun.java:578) at hudson.model.RunMap.retrieve(RunMap.java:233) at hudson.model.RunMap.retrieve(RunMap.java:61) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:650) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:632) at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:530) at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:495) at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:428) at jenkins.model.lazy.LazyBuildMixIn.getLastBuild(LazyBuildMixIn.java:254) at org.jenkinsci.plugins.workflow.job.WorkflowJob.getLastBuild(WorkflowJob.java:242) at org.jenkinsci.plugins.workflow.job.WorkflowJob.getLastBuild(WorkflowJob.java:105) at hudson.model.Job.getIconColor(Job.java:1177) at org.jenkinsci.plugins.workflow.job.WorkflowJob.getIconColor(WorkflowJob.java:282) at jdk.internal.reflect.GeneratedMethodAccessor400.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:76) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsString(ExpressionSupport.java:46) at org.apache.commons.jelly.expression.CompositeExpression.evaluateAsString(CompositeExpression.java:256) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.buildAttributes(ReallyStaticTagLibrary.java:113) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:97) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:122) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:265) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:101) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:101) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:101) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:122) at org.kohsuke.stapler.jelly.groovy.JellyBuilder.doInvokeMethod(JellyBuilder.java:284) at org.kohsuke.stapler.jelly.groovy.Namespace$ProxyImpl.invoke(Namespace.java:94) at jdk.proxy2/jdk.proxy2.$Proxy91.projectView(Unknown Source) at lib.JenkinsTagLib$projectView.call(Unknown Source) at hudson.model.View.main.run(main.groovy:16) at org.kohsuke.stapler.jelly.groovy.GroovierJellyScript.run(GroovierJellyScript.java:94) at org.kohsuke.stapler.jelly.groovy.GroovierJellyScript.run(GroovierJellyScript.java:71) at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:172) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:265) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:101) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:265) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:122) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:101) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:265) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:101) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:101) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:101) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:101) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:101) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:265) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:122) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:122) at org.kohsuke.stapler.jelly.CompressTag.doTag(CompressTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:265) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:99) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:66) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:55) at org.kohsuke.stapler.jelly.ScriptInvoker.execute(ScriptInvoker.java:56) at org.kohsuke.stapler.jelly.ScriptInvoker.execute(ScriptInvoker.java:43) at org.kohsuke.stapler.Facet.handleIndexRequest(Facet.java:284) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:104) at org.kohsuke.stapler.IndexViewDispatcher.dispatch(IndexViewDispatcher.java:32) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:836) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:289) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:289) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:698) at org.kohsuke.stapler.Stapler.service(Stapler.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:163) at jenkins.util.HttpServletFilter$1.doFilter(HttpServletFilter.java:76) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:160) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:166) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:160) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:94) at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:110) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:117) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:111) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:172) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:549) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) at org.eclipse.jetty.server.Server.handle(Server.java:563) at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:140) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149) Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 5c88129e-6947-4ae2-8066-4cf2c26a075d Caused: java.io.IOException: Failed to load build state at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$3.onSuccess(CpsFlowExecution.java:861) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$3.onSuccess(CpsFlowExecution.java:857) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5$1.run(CpsFlowExecution.java:934) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Finished: FAILURE
This it was it looks like if builds are are in status unstable and the JTE restart devil of error strikes.
Before all jobs did show more steps and the overall error was only unstable. Please fix this!
And even if the Job result was succesful the JTE Templating job is arbitary restarted:
10:52:37 stepFailed: false 10:52:37 result: null 10:52:37 current: SUCCESS 10:52:37 ------------------------------------------------------------------------------------------------- 10:52:37 end Notify step null/null (Lifecycle Hook) 10:52:37 ------------------------------------------------------------------------------------------------- 10:52:37 ------------------------------------------------------------------------------------------------- 10:52:37 [Pipeline] End of Pipeline 10:52:37 Finished: SUCCESS 09:06:15 Resuming build at Sat Sep 23 09:06:15 CEST 2023 after Jenkins restart 09:06:15 [Pipeline] End of Pipeline 09:06:15 java.io.FileNotFoundException: /var/jenkins_home/jobs/MarketData/jobs/XENTRIC/jobs/visitorscenter/jobs/external-ui/jobs/build-ui/branches/develop/builds/41/program.dat (No such file or directory) 09:06:15 at java.base/java.io.FileInputStream.open0(Native Method) 09:06:15 at java.base/java.io.FileInputStream.open(FileInputStream.java:219) 09:06:15 at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) 09:06:15 at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader.openStreamAt(RiverReader.java:196) 09:06:15 at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverReader.restorePickles(RiverReader.java:140) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.loadProgramAsync(CpsFlowExecution.java:804) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.onLoad(CpsFlowExecution.java:770) 09:06:15 at org.jenkinsci.plugins.workflow.job.WorkflowRun.getExecution(WorkflowRun.java:728) 09:06:15 at org.jenkinsci.plugins.workflow.job.WorkflowRun.onLoad(WorkflowRun.java:582) 09:06:15 at hudson.model.RunMap.retrieve(RunMap.java:233) 09:06:15 at hudson.model.RunMap.retrieve(RunMap.java:61) 09:06:15 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:660) 09:06:15 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:642) 09:06:15 at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:540) 09:06:15 at jenkins.model.lazy.LazyBuildMixIn.getBuildByNumber(LazyBuildMixIn.java:240) 09:06:15 at org.jenkinsci.plugins.workflow.job.WorkflowJob.getBuildByNumber(WorkflowJob.java:234) 09:06:15 at org.jenkinsci.plugins.workflow.job.WorkflowJob.getBuildByNumber(WorkflowJob.java:105) 09:06:15 at jenkins.model.PeepholePermalink.resolve(PeepholePermalink.java:105) 09:06:15 at hudson.model.Job.getLastCompletedBuild(Job.java:990) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$PipelineInternalCalls$1.writeTo(CpsFlowExecution.java:2052) 09:06:15 at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:418) 09:06:15 at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:353) 09:06:15 at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl.lambda$doRun$0(SupportPlugin.java:946) 09:06:15 Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 121af19f-483b-46d0-8c50-87e831d00429 09:06:15 Caused: java.io.IOException: Failed to load build state 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$3.onSuccess(CpsFlowExecution.java:878) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$3.onSuccess(CpsFlowExecution.java:874) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5$1.run(CpsFlowExecution.java:951) 09:06:15 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38) 09:06:15 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 09:06:15 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 09:06:15 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139) 09:06:15 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) 09:06:15 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) 09:06:15 at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51) 09:06:15 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 09:06:15 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 09:06:15 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 09:06:15 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 09:06:15 at java.base/java.lang.Thread.run(Thread.java:829) 09:06:18 Finished: FAILURE
And than it looks like: All jobs went from green to red. This is more then annoying.
Before the JTE devil of error has striked all jobs where green as the one at the top row.
Is there a solution for this problem? We have the same problem in our organization too.
Hello madhu91s,
I am very sorry to hear that your company is also affected by the same problem that I reported a few weeks ago in the Github Issue-Chat. It is frustrating to hear that the Repository-Owner has not found a solution to the problem and that you and your team are still struggling with it.
I hope that your post will motivate the Repository-Owner to take action and find a solution to the problem.
I will take a look at this issue. @brosmar realize that this issue was closed because we could not consistently reproduce the issue to troubleshoot it. We never implied the issue did not exist
Jenkins Version
2.366
JTE Version
2.5.2
Bug Description
Kind of re-opening from https://github.com/jenkinsci/templating-engine-plugin/issues/187 since I'm not sure anyone sees my comment.
Multibranch job using JTE on a PR was green and finished, then looking at it later it is failed (see log output).
There was no restart of Jenkins around that time and no second job running either.
Relevant log output
Steps to Reproduce
Attaching the templates in a tar; this is the pipeline config used on the multibranch project:
jenkins-templates.tgz