Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52969

java.lang.InterruptedException: sleep interrupted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None

      I sometimes get the below error from the anchore plugin. The anchore server doesn't report any errors and says the image is analyzed. 

      {{15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker Jenkins version: 2.125
      15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker Anchore Container Image Scanner Plugin version: 1.0.17
      15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [global] debug: false
      15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [global] enginemode: anchoreengine
      15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [build] engineurl: http://anchore.platform.vivint.com/v1
      15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [build] engineuser: admin
      15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [build] enginepass: ****
      15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] engineverify: false
      15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] name: anchore_images
      15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] engineRetries: 1000
      15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] policyBundleId:
      15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] bailOnFail: true
      15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] bailOnPluginFail: true
      15:13:42 2018-08-09T15:13:42.926 INFO AnchoreWorker Submitting tp-registry.vivint.com:5005/test/vivint-base-prod:2.feature-pl-6145-xconfig-65bd876 for analysis
      15:13:43 2018-08-09T15:13:43.696 INFO AnchoreWorker Analysis request accepted, received image digest sha256:9a1ee582d150bbd9f1b0338e04f9f439e671d1c8fbe10039e2e2d7b35734a17b
      15:13:43 2018-08-09T15:13:43.697 INFO AnchoreWorker Waiting for analysis of tp-registry.vivint.com:5005/test/vivint-base-prod:2.feature-pl-6145-xconfig-65bd876, polling status periodically
      15:14:45 2018-08-09T15:14:45.465 ERROR AnchoreWorker Failed to execute anchore-engine policy evaluation due to an unexpected error
      15:14:45 java.lang.InterruptedException: sleep interrupted
      15:14:45 at java.lang.Thread.sleep(Native Method)
      15:14:45 at com.anchore.jenkins.plugins.anchore.BuildWorker.runGatesEngine(BuildWorker.java:395)
      15:14:45 at com.anchore.jenkins.plugins.anchore.BuildWorker.runGates(BuildWorker.java:343)
      15:14:45 at com.anchore.jenkins.plugins.anchore.AnchoreBuilder.perform(AnchoreBuilder.java:338)
      15:14:45 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      15:14:45 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      15:14:45 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
      15:14:45 at hudson.security.ACL.impersonate(ACL.java:290)
      15:14:45 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
      15:14:45 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      15:14:45 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      15:14:45 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      15:14:45 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      15:14:45 at java.lang.Thread.run(Thread.java:745)
      15:14:45 2018-08-09T15:14:45.465 ERROR AnchorePlugin Failing Anchore Container Image Scanner Plugin step due to errors in plugin execution
      15:14:45 hudson.AbortException: Failed to execute anchore-engine policy evaluation due to an unexpected error. Please refer to above logs for more information
      15:14:45 at com.anchore.jenkins.plugins.anchore.BuildWorker.runGatesEngine(BuildWorker.java:508)
      15:14:45 at com.anchore.jenkins.plugins.anchore.BuildWorker.runGates(BuildWorker.java:343)
      15:14:45 at com.anchore.jenkins.plugins.anchore.AnchoreBuilder.perform(AnchoreBuilder.java:338)
      15:14:45 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      15:14:45 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      15:14:45 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
      15:14:45 at hudson.security.ACL.impersonate(ACL.java:290)
      15:14:45 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
      15:14:45 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      15:14:45 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      15:14:45 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      15:14:45 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      15:14:45 at java.lang.Thread.run(Thread.java:745)
      15:14:45 2018-08-09T15:14:45.467 INFO AnchorePlugin Completed Anchore Container Image Scanner step}}

            swathigangisetty Swathi Gangisetty
            benm Ben Mathews
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: