Uploaded image for project: 'Community Support - Open Source Project Repository Hosting'
  1. Community Support - Open Source Project Repository Hosting
  2. OSSRH-33105

Please explai how Cleanup Unused Snapshots should works ?

    XMLWordPrintable

    Details

    • Type: Publishing Support
    • Status: Closed
    • Priority: Major
    • Resolution: Out of scope
    • Labels:
    • Environment:
      Sonatype Nexus™ 2.11.2-06
    • Group Id:
      null
    • Publishing Hostname:
      oss.sonatype.org
    • Modify publishing permissions?:
      No

      Description

      Hi, 

      We are faced with problem , when old snapshots are groving in our nexus repo , and tried to use Cleanup Unused Snapshots scheduled task to cleanup it.

      But , 

      jvm 1 | 2017-07-11 16:19:32,787+0200 INFO [pxpool-1-thread-5] admin org.sonatype.nexus.maven.tasks.UnusedSnapshotRemoverTask - Scheduled task (Cleanup Unused Snapshots) started :: Removing unused snapshots from repository Snapshots
      jvm 1 | 2017-07-12 00:15:00,902+0200 INFO [pxpool-1-thread-11] *TASK org.sonatype.nexus.tasks.EvictUnusedProxiedItemsTask - Scheduled task (Unused Proxied Items Maven Central) started :: Evicting unused proxied items for repository Central.
      jvm 1 | 2017-07-12 00:17:29,458+0200 INFO [pxpool-1-thread-11] *TASK org.sonatype.nexus.tasks.EvictUnusedProxiedItemsTask - Scheduled task (Unused Proxied Items Maven Central) finished :: Evicting unused proxied items for repository Central. (started 2017-07-12T00:15:00+02:00, runtime 0:02:28.555)
      jvm 1 | 2017-07-12 01:00:00,410+0200 INFO [pxpool-1-thread-3] *TASK org.sonatype.nexus.index.tasks.OptimizeIndexTask - Scheduled task (Optimize Releases Index) started :: Optimizing repository Releases index.
      jvm 1 | 2017-07-12 01:00:17,810+0200 INFO [pxpool-1-thread-3] *TASK org.sonatype.nexus.index.tasks.OptimizeIndexTask - Scheduled task (Optimize Releases Index) finished :: Optimizing repository Releases index. (started 2017-07-12T01:00:00+02:00, runtime 0:00:17.399)
      jvm 1 | 2017-07-12 01:30:00,556+0200 INFO [pxpool-1-thread-4] *TASK org.sonatype.nexus.index.tasks.OptimizeIndexTask - Scheduled task (Optimize Central Repository Index) started :: Optimizing repository Central index.
      jvm 1 | 2017-07-12 01:30:08,730+0200 INFO [pxpool-1-thread-4] *TASK org.sonatype.nexus.index.tasks.OptimizeIndexTask - Scheduled task (Optimize Central Repository Index) finished :: Optimizing repository Central index. (started 2017-07-12T01:30:00+02:00, runtime 0:00:08.174)
      jvm 1 | 2017-07-12 12:32:29,326+0200 INFO [pxpool-1-thread-5] admin org.sonatype.nexus.maven.tasks.UnusedSnapshotRemoverTask - Scheduled task (Cleanup Unused Snapshots) finished :: Removing unused snapshots from repository Snapshots (started 2017-07-11T16:19:32+02:00, runtime 20:12:56.538)
      jvm 1 | 2017-07-12 12:32:37,767+0200 INFO [pxpool-1-thread-7] admin org.sonatype.nexus.tasks.EmptyTrashTask - Scheduled task (Empty Snapshot Trash) started :: Emptying Trash.
      jvm 1 | 2017-07-12 12:37:18,890+0200 INFO [pxpool-1-thread-7] admin org.sonatype.nexus.tasks.EmptyTrashTask - Scheduled task (Empty Snapshot Trash) finished :: Emptying Trash. (started 2017-07-12T12:32:37+02:00, runtime 0:04:41.122)

       

      After 20 hours task was finished, but seems nothing was changed:

       

      root@vmnexus01:~# ll /opt/nexus-repositories/storage/snapshots/xxx/xxx/xxx-api/
      total 900
      drwxr-xr-x 14 nexus nexus 8192 Jul 12 16:02 .
      drwxr-xr-x 73 nexus nexus 20480 Jul 12 12:32 ..
      drwxr-xr-x 2 nexus nexus 8192 Apr 18 2016 1.0.26-SNAPSHOT

       

      snapshots from April still there, even after 

       

      Scheduled task (Empty Snapshot Trash) finished

      Can you please explain how we can figure out with it ?

       

      The current setup of scheduled task is:

      Our current version it Sonatype Nexus™ 2.11.2-06

       

      Thanks in advance!

        Attachments

          Activity

            People

            Assignee:
            jorlina Joel Orlina
            Reporter:
            ASmirnov Aleksandr Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                tigCommentSecurity.panel-title