java.lang.Exception: Resume after a restart not supported for non-blocking synchronous steps

Jenkins JIRA | James Nord | 1 year ago
  1. 0

    It appears as though if the Jenkins master crashes whilst it is archiving artifacts then the workflow fails to resume. archiveArtifacts should be idempotent so it should be able to try again (if the slave / workspace still exists) In this case they should as I was only using dumb slaves. THe message should also say which step (class) could not be resumed - as I am just guessing it was the last one before the "resuming build" message {noformat} ... Running: Stash some files to be used later in the build 14:23:10 Stashed 1 file(s) Running: Allocate node : Body : End Running: Allocate node : End Running: Change Directory : Start 14:23:11 Running in /home/jenkins/slave/workspace/automated_release/packaging/target Running: Change Directory : Body : Start Running: Change Directory : Start 14:23:11 Running in /home/jenkins/slave/workspace/automated_release/packaging/target/msi Running: Change Directory : Body : Start Running: Restore files previously stashed Running: Change Directory : Body : End Running: Change Directory : End Running: Change Directory : Body : End Running: Change Directory : End Running: Change Directory : Start 14:23:29 Running in /home/jenkins/slave/workspace/automated_release/packaging/target Running: Change Directory : Body : Start Running: Archive Artifacts Resuming build Running: Change Directory : Body : End Running: Change Directory : End Running: Change Directory : Body : End Running: Change Directory : End Running: General Build Wrapper : Body : End Running: General Build Wrapper : End Running: Allocate node : Body : End Running: Allocate node : End Running: End of Workflow java.lang.Exception: Resume after a restart not supported for non-blocking synchronous steps at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution.onResume(AbstractSynchronousNonBlockingStepExecution.java:73) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:176) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:172) at com.google.common.util.concurrent.Futures$6.run(Futures.java:975) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:627) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:605) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4$1.run(CpsFlowExecution.java:546) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:32) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Finished: FAILURE {noformat}

    Jenkins JIRA | 1 year ago | James Nord
    java.lang.Exception: Resume after a restart not supported for non-blocking synchronous steps
  2. 0

    It appears as though if the Jenkins master crashes whilst it is archiving artifacts then the workflow fails to resume. archiveArtifacts should be idempotent so it should be able to try again (if the slave / workspace still exists) In this case they should as I was only using dumb slaves. THe message should also say which step (class) could not be resumed - as I am just guessing it was the last one before the "resuming build" message {noformat} ... Running: Stash some files to be used later in the build 14:23:10 Stashed 1 file(s) Running: Allocate node : Body : End Running: Allocate node : End Running: Change Directory : Start 14:23:11 Running in /home/jenkins/slave/workspace/automated_release/packaging/target Running: Change Directory : Body : Start Running: Change Directory : Start 14:23:11 Running in /home/jenkins/slave/workspace/automated_release/packaging/target/msi Running: Change Directory : Body : Start Running: Restore files previously stashed Running: Change Directory : Body : End Running: Change Directory : End Running: Change Directory : Body : End Running: Change Directory : End Running: Change Directory : Start 14:23:29 Running in /home/jenkins/slave/workspace/automated_release/packaging/target Running: Change Directory : Body : Start Running: Archive Artifacts Resuming build Running: Change Directory : Body : End Running: Change Directory : End Running: Change Directory : Body : End Running: Change Directory : End Running: General Build Wrapper : Body : End Running: General Build Wrapper : End Running: Allocate node : Body : End Running: Allocate node : End Running: End of Workflow java.lang.Exception: Resume after a restart not supported for non-blocking synchronous steps at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution.onResume(AbstractSynchronousNonBlockingStepExecution.java:73) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:176) at org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:172) at com.google.common.util.concurrent.Futures$6.run(Futures.java:975) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:627) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:605) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4$1.run(CpsFlowExecution.java:546) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:32) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Finished: FAILURE {noformat}

    Jenkins JIRA | 1 year ago | James Nord
    java.lang.Exception: Resume after a restart not supported for non-blocking synchronous steps
  3. 0

    Jenkins Using OpenShift Plugin To Deploy a New Image Version To It's Own DC Fails the Job

    GitHub | 1 month ago | sherl0cks
    java.lang.Exception: Resume after a restart not supported for non-blocking synchronous steps
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Strange Server Error

    Oracle Community | 1 decade ago | 397713
    java.lang.Exception: composeRawMetadata is not supported for OKRL4PRecord
  6. 0

    Error: composeRawMetaData is not supported for OKRL4PRecord

    Oracle Community | 1 decade ago | 412391
    java.lang.Exception: composeRawMetadata is not supported for OKRL4PRecord

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Exception

      Resume after a restart not supported for non-blocking synchronous steps

      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution.onResume()
    2. org.jenkinsci.plugins
      FlowExecutionList$ItemListenerImpl$1.onSuccess
      1. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution.onResume(AbstractSynchronousNonBlockingStepExecution.java:73)
      2. org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:176)
      3. org.jenkinsci.plugins.workflow.flow.FlowExecutionList$ItemListenerImpl$1.onSuccess(FlowExecutionList.java:172)
      3 frames
    3. Guava
      SettableFuture.set
      1. com.google.common.util.concurrent.Futures$6.run(Futures.java:975)
      2. com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
      3. com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149)
      4. com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134)
      5. com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170)
      6. com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53)
      6 frames
    4. org.jenkinsci.plugins
      CpsVmExecutorService$1.run
      1. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:627)
      2. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$5.onSuccess(CpsFlowExecution.java:605)
      3. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4$1.run(CpsFlowExecution.java:546)
      4. org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:32)
      4 frames
    5. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2 frames
    6. Hudson :: Remoting Layer
      SingleLaneExecutorService$1.run
      1. hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
      1 frame
    7. jenkins.util
      ContextResettingExecutorService$1.run
      1. jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      1 frame
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames