Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-12962

Exception while executing "Purge unused docker manifests and images" task

    XMLWordPrintable

    Details

      Description

      I have created a task of the type "Purge unused docker manifests and images" and when I execute it I always get this exception:

      2017-04-19 15:55:39,553+0000 INFO [qtp604014720-3045] admin org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'purge unused docker manifests and images' [repository.docker.gc] runNow
      2017-04-19 15:55:39,553+0000 INFO [qtp604014720-3045] admin org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task nexus.ff43bb97-a7d6-444e-a3c3-f5c15228a77e : 'purge unused docker manifests and images' [repository.docker.gc] state change WAITING -> RUNNING
      2017-04-19 15:55:39,553+0000 DEBUG [qtp604014720-3045] admin org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Store trigger: trigger=Trigger 'DEFAULT.MT_1bjw07co2h1rp': triggerClass: 'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null' misfireInstruction: 0 nextFireTime: Wed Apr 19 15:55:39 UTC 2017, replaceExisting=false
      2017-04-19 15:55:39,554+0000 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Acquire next triggers: noLaterThan=1492617369554, maxCount=1, timeWindow=0
      2017-04-19 15:55:39,555+0000 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Triggers fired: [Trigger 'DEFAULT.MT_1bjw07co2h1rp': triggerClass: 'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null' misfireInstruction: 0 nextFireTime: Wed Apr 19 15:55:39 UTC 2017]
      2017-04-19 15:55:39,555+0000 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Trigger fired: Trigger 'DEFAULT.MT_1bjw07co2h1rp': triggerClass: 'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null' misfireInstruction: 0 nextFireTime: Wed Apr 19 15:55:39 UTC 2017
      2017-04-19 15:55:39,556+0000 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.JobFactoryImpl - New job: class org.sonatype.nexus.quartz.internal.task.QuartzTaskJob
      2017-04-19 15:55:39,557+0000 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Acquire next triggers: noLaterThan=1492617369557, maxCount=1, timeWindow=0
      2017-04-19 15:55:39,559+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskFuture - Task ff43bb97-a7d6-444e-a3c3-f5c15228a77e : 'purge unused docker manifests and images' [repository.docker.gc] runState transition STARTING -> RUNNING
      2017-04-19 15:55:39,559+0000 INFO [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.internal.DockerGCFacetImpl - Garbage collection starting on repository: RepositoryImpl$$EnhancerByGuice$$c5f0822b{type=hosted, format=docker, name='docker_dydu'}
      2017-04-19 15:55:39,559+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: OPEN -> ACTIVE
      2017-04-19 15:55:39,559+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioned: ACTIVE
      2017-04-19 15:55:39,559+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.ComponentEntityAdapter - Finding components with query: select from component where (attributes.docker.layerId IS NOT NULL) and (bucket=#37:3), parameters: {}
      2017-04-19 15:55:39,561+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.AssetEntityAdapter - Finding assets with query: select from asset where (attributes.docker.asset_kind = :p0 OR attributes.docker.asset_kind = :p1) and (bucket=#37:3), parameters: {p0=LAYER_CONTENT, p1=LAYER_METADATA}
      2017-04-19 15:55:39,595+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.AssetEntityAdapter - Finding assets with query: select from asset where (attributes.docker.asset_kind = :p0) and (bucket=#37:3), parameters: {p0=MANIFEST}
      2017-04-19 15:55:39,609+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.internal.V2ManifestUtilImpl - Parsing manifest v2/-/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 of type unspecified
      2017-04-19 15:55:39,609+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: ACTIVE -> OPEN
      2017-04-19 15:55:39,609+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioned: OPEN
      2017-04-19 15:55:39,609+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: OPEN -> CLOSED
      2017-04-19 15:55:39,609+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioned: CLOSED
      2017-04-19 15:55:39,610+0000 ERROR [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.internal.DockerGCTask - Failed to run task 'Purge unused docker manifests and images' on repository 'docker_dydu'
      org.sonatype.nexus.repository.docker.internal.V2Exception$ManifestInvalid: manifest invalid
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.8.0_112]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [na:1.8.0_112]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.8.0_112]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [na:1.8.0_112]
      at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83) [na:na]
      at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77) [na:na]
      at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84) [na:na]
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) [na:na]
      at org.sonatype.nexus.repository.docker.internal.V2ManifestUtilImpl.readManifest(V2ManifestUtilImpl.groovy:107) [na:na]
      at org.sonatype.nexus.repository.docker.internal.DockerGCFacetImpl.handleV2Assets(DockerGCFacetImpl.java:155) [na:na]
      at org.sonatype.nexus.repository.docker.internal.DockerGCFacetImpl.processRepository(DockerGCFacetImpl.java:90) [na:na]
      at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56) [org.sonatype.nexus.transaction:3.3.0.01]
      at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54) [org.sonatype.nexus.transaction:3.3.0.01]
      at org.sonatype.nexus.repository.docker.internal.DockerGCFacetImpl.deleteUnusedManifestsAndImages(DockerGCFacetImpl.java:74) [na:na]
      at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) [org.sonatype.nexus.common:3.3.0.01]
      at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270) [org.sonatype.nexus.common:3.3.0.01]
      at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53) [org.sonatype.nexus.common:3.3.0.01]
      at org.sonatype.nexus.repository.docker.internal.DockerGCTask.execute(DockerGCTask.java:42) [na:na]
      at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:56) [na:na]
      at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:89) [org.sonatype.nexus.scheduling:3.3.0.01]
      at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:145) [org.sonatype.nexus.quartz:3.3.0.01]
      at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106) [org.sonatype.nexus.quartz:3.3.0.01]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.quartz-scheduler.quartz:2.2.2]
      at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40) [org.sonatype.nexus.thread:3.3.0.01]
      at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [org.apache.shiro.core:1.3.2]
      at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [org.apache.shiro.core:1.3.2]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_112]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_112]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_112]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_112]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_112]
      2017-04-19 15:55:39,611+0000 WARN [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskJob - Task 48d6949e-9257-438f-93bb-06b784f7f2e6 : 'purge unused docker manifests and images' [repository.docker.gc] execution failure
      org.sonatype.goodies.common.MultipleFailures$MultipleFailuresException: Failed to run task 'Purge unused docker manifests and images'; 1 failure
      at org.sonatype.goodies.common.MultipleFailures.maybePropagate(MultipleFailures.java:95) [org.sonatype.goodies.common:2.2.3]
      at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:64) [na:na]
      at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:89) [org.sonatype.nexus.scheduling:3.3.0.01]
      at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:145) [org.sonatype.nexus.quartz:3.3.0.01]
      at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106) [org.sonatype.nexus.quartz:3.3.0.01]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.quartz-scheduler.quartz:2.2.2]
      at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40) [org.sonatype.nexus.thread:3.3.0.01]
      at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [org.apache.shiro.core:1.3.2]
      at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [org.apache.shiro.core:1.3.2]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_112]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_112]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_112]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_112]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_112]
      Suppressed: org.sonatype.nexus.repository.docker.internal.V2Exception$ManifestInvalid: manifest invalid
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.8.0_112]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [na:1.8.0_112]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.8.0_112]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [na:1.8.0_112]
      at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83) [na:na]
      at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77) [na:na]
      at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84) [na:na]
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) [na:na]
      at org.sonatype.nexus.repository.docker.internal.V2ManifestUtilImpl.readManifest(V2ManifestUtilImpl.groovy:107) [na:na]
      at org.sonatype.nexus.repository.docker.internal.DockerGCFacetImpl.handleV2Assets(DockerGCFacetImpl.java:155) [na:na]
      at org.sonatype.nexus.repository.docker.internal.DockerGCFacetImpl.processRepository(DockerGCFacetImpl.java:90) [na:na]
      at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56) [org.sonatype.nexus.transaction:3.3.0.01]
      at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54) [org.sonatype.nexus.transaction:3.3.0.01]
      at org.sonatype.nexus.repository.docker.internal.DockerGCFacetImpl.deleteUnusedManifestsAndImages(DockerGCFacetImpl.java:74) [na:na]
      at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) [org.sonatype.nexus.common:3.3.0.01]
      at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270) [org.sonatype.nexus.common:3.3.0.01]
      at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53) [org.sonatype.nexus.common:3.3.0.01]
      at org.sonatype.nexus.repository.docker.internal.DockerGCTask.execute(DockerGCTask.java:42) [na:na]
      at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:56) [na:na]
      ... 12 common frames omitted
      2017-04-19 15:55:39,612+0000 INFO [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task nexus.ff43bb97-a7d6-444e-a3c3-f5c15228a77e : 'purge unused docker manifests and images' [repository.docker.gc] state change RUNNING -> WAITING (FAILED)
      2017-04-19 15:55:39,612+0000 DEBUG [quartz-1-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Triggered job complete: trigger=Trigger 'DEFAULT.MT_1bjw07co2h1rp': triggerClass: 'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null' misfireInstruction: 0 nextFireTime: null, jobDetail=JobDetail 'nexus.ff43bb97-a7d6-444e-a3c3-f5c15228a77e': jobClass: 'org.sonatype.nexus.quartz.internal.task.QuartzTaskJob concurrentExectionDisallowed: true persistJobDataAfterExecution: true isDurable: false requestsRecovers: false, instruction=DELETE_TRIGGER
      2017-04-19 15:55:39,613+0000 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Acquire next triggers: noLaterThan=1492617369613, maxCount=1, timeWindow=0
      

      Before launching the task i have deleted some image from components UI

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jtom Joe Tom
              Reporter:
              ffleureau Fabien FLEUREAU
              Last Updated By:
              Peter Lynch
              Team:
              Nexus - Formats
              Votes:
              5 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title