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

Failed to run task 'Docker - Delete unused manifests and images' after update from 3.29.2-02 to 3.37.0-01

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.37.0
    • Fix Version/s: None
    • Component/s: Docker, Scheduled Tasks
    • Labels:
    • Sprint:
      NXRM Immortals Sprint 39

      Description

      Dear Mr. or Mrs.

      I updated nexus from 3.29.2-02 to 3.37.0-01 version. After update the task Delete unused manifests and images finished with this error:

      2021-11-26 18:53:07,428+0100 INFO [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.tasks.DockerGCTask - Task information:
      2021-11-26 18:53:07,429+0100 INFO [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.tasks.DockerGCTask - ID: 7db1f5ca-5e6e-4ba0-8a57-d6f9e87a7d2f
      2021-11-26 18:53:07,429+0100 INFO [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.tasks.DockerGCTask - Type: repository.docker.gc
      2021-11-26 18:53:07,429+0100 INFO [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.tasks.DockerGCTask - Name: Docker - Delete unused manifest and images - docker-internal
      2021-11-26 18:53:07,429+0100 INFO [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.tasks.DockerGCTask - Description: Docker - Delete unused manifests and images
      2021-11-26 18:53:07,430+0100 INFO [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl - Garbage collection starting on repository: RepositoryImpl$$EnhancerByGuice$$646758976\{type=hosted, format=docker, name='docker-internal'}
      2021-11-26 19:12:02,889+0100 WARN [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl - Unable to read V2 Manifest for asset Asset\{metadata=AttachedEntityMetadata{schema=asset, document=asset#91:759845{bucket:#49:15,attributes:[4],name:v2/-/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4,format:docker,last_updated:Mon Jun 17 16:14:05 CEST 2019,component:null,size:32,content_type:application/vnd.docker.image.rootfs.diff.tar.gzip,created_by:E_MMILKA,created_by_ip:10.3.61.92,blob_ref:docker@53AE974E-AA6977BB-876F64E4-20715310-2F0521C2:7c02445e-70a6-4380-8617-4fe70850feb2,last_downloaded:null,blob_created:Mon Jun 17 16:14:05 CEST 2019,blob_updated:Mon Jun 17 16:14:05 CEST 2019} v1}, name=v2/-/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4}, manifest invalid
      2021-11-26 19:12:04,823+0100 WARN [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl - Unable to read V2 Manifest for asset Asset\{metadata=AttachedEntityMetadata{schema=asset, document=asset#89:909013{bucket:#53:10,attributes:[4],name:v2/-/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4,format:docker,last_updated:Fri Jan 10 18:41:21 CET 2020,component:null,size:32,content_type:application/vnd.docker.image.rootfs.diff.tar.gzip,created_by:E_ZSIBLI,created_by_ip:10.3.60.139,blob_ref:docker-microsoft@53AE974E-AA6977BB-876F64E4-20715310-2F0521C2:16b4cce8-5165-4520-a30c-531df992aa19,last_downloaded:null,blob_created:Fri Jan 10 18:41:21 CET 2020,blob_updated:Fri Jan 10 18:41:21 CET 2020} v1}, name=v2/-/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4}, manifest invalid
      2021-11-26 19:12:05,487+0100 WARN [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl - Unable to read V2 Manifest for asset Asset\{metadata=AttachedEntityMetadata{schema=asset, document=asset#94:1307772{bucket:#49:24,attributes:[4],name:v2/-/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4,format:docker,last_updated:Wed Jun 16 11:47:54 CEST 2021,component:null,size:32,content_type:application/vnd.docker.image.rootfs.diff.tar.gzip,created_by:E_JVYTIS,created_by_ip:10.3.59.120,blob_ref:docker-oracleconsulting@53AE974E-AA6977BB-876F64E4-20715310-2F0521C2:4bf26bec-4662-4c1f-81b9-a318b98fe74d,last_downloaded:null,blob_created:Wed Jun 16 11:47:54 CEST 2021,blob_updated:Wed Jun 16 11:47:54 CEST 2021} v1}, name=v2/-/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4}, manifest invalid
      2021-11-26 19:12:08,005+0100 ERROR [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.tasks.DockerGCTask - Failed to run task 'Docker - Delete unused manifests and images' on repository 'docker-internal'
      java.lang.NullPointerException: Cannot get property 'digest' on null object
       at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60)
       at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:190)
       at org.codehaus.groovy.runtime.DefaultGroovyMethods.getAt(DefaultGroovyMethods.java:342)
       at org.codehaus.groovy.runtime.dgm$242.invoke(Unknown Source)
       at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:251)
       at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:71)
       at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
       at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:34)
       at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:58)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
       at org.sonatype.nexus.repository.docker.internal.V2Manifest.referencedDigests(V2Manifest.groovy:88)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.fetchDataForManifest(DockerGCFacetImpl.java:343)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.fetchDataForRepository(DockerGCFacetImpl.java:320)
       at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:58)
       at org.sonatype.nexus.transaction.TransactionInterceptor.proceedWithTransaction(TransactionInterceptor.java:66)
       at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.getExternalUsedLayersDigests(DockerGCFacetImpl.java:232)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.checkForReferencesInOtherRepositories(DockerGCFacetImpl.java:209)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.handleV2Assets(DockerGCFacetImpl.java:188)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.processRepository(DockerGCFacetImpl.java:117)
       at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:58)
       at org.sonatype.nexus.transaction.TransactionInterceptor.proceedWithTransaction(TransactionInterceptor.java:66)
       at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.deleteUnusedManifestsAndImages(DockerGCFacetImpl.java:100)
       at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
       at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
       at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
       at org.sonatype.nexus.repository.docker.tasks.DockerGCTask.execute(DockerGCTask.java:48)
       at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:79)
       at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:100)
       at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:143)
       at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
       at org.sonatype.nexus.quartz.internal.QuartzThreadPool.lambda$0(QuartzThreadPool.java:145)
       at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40)
       at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
       at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
       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:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
      2021-11-26 19:12:08,007+0100 ERROR [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.tasks.DockerGCTask - Failed to run task 'Docker - Delete unused manifests and images'
      org.sonatype.goodies.common.MultipleFailures$MultipleFailuresException: Failed to run task 'Docker - Delete unused manifests and images'; 1 failure
       at org.sonatype.goodies.common.MultipleFailures.maybePropagate(MultipleFailures.java:95)
       at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:90)
       at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:100)
       at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:143)
       at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
       at org.sonatype.nexus.quartz.internal.QuartzThreadPool.lambda$0(QuartzThreadPool.java:145)
       at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40)
       at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
       at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
       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:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
       Suppressed: java.lang.NullPointerException: Cannot get property 'digest' on null object
       at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60)
       at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:190)
       at org.codehaus.groovy.runtime.DefaultGroovyMethods.getAt(DefaultGroovyMethods.java:342)
       at org.codehaus.groovy.runtime.dgm$242.invoke(Unknown Source)
       at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:251)
       at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:71)
       at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
       at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:34)
       at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:58)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
       at org.sonatype.nexus.repository.docker.internal.V2Manifest.referencedDigests(V2Manifest.groovy:88)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.fetchDataForManifest(DockerGCFacetImpl.java:343)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.fetchDataForRepository(DockerGCFacetImpl.java:320)
       at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:58)
       at org.sonatype.nexus.transaction.TransactionInterceptor.proceedWithTransaction(TransactionInterceptor.java:66)
       at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.getExternalUsedLayersDigests(DockerGCFacetImpl.java:232)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.checkForReferencesInOtherRepositories(DockerGCFacetImpl.java:209)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.handleV2Assets(DockerGCFacetImpl.java:188)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.processRepository(DockerGCFacetImpl.java:117)
       at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:58)
       at org.sonatype.nexus.transaction.TransactionInterceptor.proceedWithTransaction(TransactionInterceptor.java:66)
       at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
       at org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl.deleteUnusedManifestsAndImages(DockerGCFacetImpl.java:100)
       at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
       at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
       at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
       at org.sonatype.nexus.repository.docker.tasks.DockerGCTask.execute(DockerGCTask.java:48)
       at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:79)
       ... 13 common frames omitted
      2021-11-26 19:12:08,007+0100 INFO [quartz-12-thread-20] *SYSTEM org.sonatype.nexus.repository.docker.tasks.DockerGCTask - Task complete
      

       

      Thank you for your help.

      Blessings,

      Petr Ročeň

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              procen Petr Ročeň
              Last Updated By:
              Frank Häfemeier Frank Häfemeier
              Team:
              NXRM - Optimus
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title