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

Running "docker delete unused manifests and images" task when blob storage is not available deletes all layers

    XMLWordPrintable

    Details

    • Notability:
      2

      Description

      Running a "docker delete unused manifests and images" when a repository's blob storage is not available causes all docker layers in the target repository to be removed.

      Expected:  That task should not remove layers simply because their underlying blobs are missing.   

       

      2020-07-28 11:47:51,909-0500 INFO [quartz-7-thread-4] *SYSTEM org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl - Garbage collection starting on repository: RepositoryImpl$$EnhancerByGuice$$6e46ea48

      Unknown macro: {type=hosted, format=docker, name='docker-hosted'}

      2020-07-28 11:47:51,999-0500 WARN [quartz-7-thread-4] *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access non-existent blob a116eb31-cb5e-4a4d-9686-883430f2409c (/Users/rseddon/temp/sonatype-work/nexus3/blobs/default/content/vol-21/chap-42/a116eb31-cb5e-4a4d-9686-883430f2409c.properties)
      2020-07-28 11:47:52,002-0500 WARN [quartz-7-thread-4] *SYSTEM org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl - Unable to read V2 Manifest for asset Asset{metadata=AttachedEntityMetadata{schema=asset, document=asset#40:0

      Unknown macro: {bucket}

      v1}, name=v2/hello-world/manifests/latest}, Blob default@7137D4AF-C1807AC6-A7F17383-6F1AE542-61E4E66A:a116eb31-cb5e-4a4d-9686-883430f2409c exists in metadata, but is missing from the blobstore
      2020-07-28 11:47:52,070-0500 WARN [quartz-7-thread-4] *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access non-existent blob 66d2241d-f033-4606-bcb8-2fa58835de54 (/Users/rseddon/temp/sonatype-work/nexus3/blobs/default/content/vol-24/chap-28/66d2241d-f033-4606-bcb8-2fa58835de54.properties)
      2020-07-28 11:47:52,071-0500 WARN [quartz-7-thread-4] *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to mark-for-delete non-existent blob 66d2241d-f033-4606-bcb8-2fa58835de54, hard deleting instead

       

        Attachments

        1. nexus.log
          490 kB
        2. nexus.log
          268 kB
        3. nexus.log
          273 kB
        4. repository.docker.gc-20200909155827853.log
          9 kB
        5. repository.docker.gc-20200910110911751.log
          9 kB
        6. repository.docker.gc-20200910114443474.log
          15 kB
        7. Screen Shot 2020-09-09 at 3.49.53 PM.png
          Screen Shot 2020-09-09 at 3.49.53 PM.png
          1.60 MB

          Issue Links

            Activity

              People

              Assignee:
              mallen Mick Allen
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Joe Tom
              Team:
              NXRM - Operations/Groot
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title