All nodes of label are offline

Hi,

I am newbie in k8s cluster and Jenkins, I have issue with Jenkins script, its not running.
I standard situations Jenkins file create pod, script located in Gitlab and Jenkins run a script, but at now i have script with failure. Any suggestions?
Logs of Jenkins script:

type or paste code hereStarted by timer
Obtained CRONJOBS/JUPYTER/jupyter-trip-planning-data/Jenkinsfile from git https://gitlab.energo.lv/repo/jenkins/jenkins-pipelines-test.git
Resume disabled by user, switching to high-performance, low-durability mode.
[Pipeline] Start of Pipeline
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘label name’ are offline
Created Pod: kubernetes jenkins/pod name
Created Pod: kubernetes jenkins/pod name
Failing build: shutting down controller and build is marked to not resume
Terminating node
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
Resuming build at Mon Jan 08 06:53:24 EET 2024 after Jenkins restart
[Pipeline] End of Pipeline
Ready to run at Mon Jan 08 06:53:25 EET 2024
Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 98027619-bef6-44b4-ba76-c0a5ed7fccbe
java.lang.IllegalStateException: JENKINS-50407: no loaded shell in CpsFlowExecution[Owner[CRONJOBS/JUPYTER/jupyter-trip-planning-data/61555:CRONJOBS/JUPYTER/jupyter-trip-planning-data #61555]]
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:35)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:187)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:420)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:330)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:294)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	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(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Finished: FAILURE

You configured your pipeline to be not resumable. While waiting for the node you shutdown Jenkins. So after the restart your pipeline couldn’t continue.

1 Like