# Delete SNAPSHOT Task failed and could not deploy JAR files

## post by FirstLast on Jun 18, 2024

Sonatype Nexus Repository: OSS 3.55.0-01

```
2024-06-18 12:00:00,010+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.tasks.RemoveSnapshotsTask - Task information: 
2024-06-18 12:00:00,011+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.tasks.RemoveSnapshotsTask -  ID: 2262aec4-1c09-4fa3-84a6-8f6bfc0dcd86
2024-06-18 12:00:00,011+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.tasks.RemoveSnapshotsTask -  Type: repository.maven.remove-snapshots
2024-06-18 12:00:00,011+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.tasks.RemoveSnapshotsTask -  Name: Delete SNAPSHOT Task
2024-06-18 12:00:00,011+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.tasks.RemoveSnapshotsTask -  Description: Remove Maven snapshots from maven-snapshots
2024-06-18 12:00:00,012+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.tasks.RemoveSnapshotsTask - Executing removal of snapshots on repository 'maven-snapshots'
2024-06-18 12:00:00,013+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.internal.orient.RemoveSnapshotsFacetImpl - Beginning snapshot removal on repository 'maven-snapshots' with configuration: RemoveSnapshotsConfig{minimumRetained=5, snapshotRetentionDays=30, removeIfReleased=false, gracePeriod=-1}
2024-06-18 12:00:00,014+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.internal.orient.RemoveSnapshotsFacetImpl - Begin processing snapshots in repository 'maven-snapshots'
2024-06-18 12:00:00,014+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.internal.orient.RemoveSnapshotsFacetImpl - Searching for GAVS with snapshots that qualify for deletion on repository 'maven-snapshots'
2024-06-18 12:00:00,625+0800 INFO  [quartz-10-thread-19]  *SYSTEM org.sonatype.nexus.repository.maven.internal.orient.RemoveSnapshotsFacetImpl - Found 3084 snapshot GAVs to analyze
2024-06-18 12:00:01,369+0800 ERROR [quartz-10-thread-19 <command>sql.LET $records = (SELECT FROM component WHERE group = ? AND name=?);SELECT FROM $records WHERE (    (bucket=? AND attributes.maven2.baseVersion = ?)    OR (attributes.maven2.baseVersion = ?));</command>]  *SYSTEM com.orientechnologies.orient.core.storage.cache.local.OWOWCache - $ANSI{green {db=component}} Magic number verification failed for page '154' of 'component_group_name_version_ci_idx.sbt'.  
```

=========================

```
2024-06-18 20:01:50,172+0800 INFO  [qtp2030840259-259302]  mavenpublic org.sonatype.nexus.scheduling.TaskSchedulerImpl - Task 'Delete SNAPSHOT Task' [repository.maven.remove-snapshots] scheduled: daily
2024-06-18 20:01:59,917+0800 WARN  [qtp2030840259-259322]  mavenpublic org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: PUT /repository/maven-snapshots/a/0.9.0-SNAPSHOT/a-0.9.0-20240618.120157-52.pom com.orientechnologies.orient.core.exception.OPageIsBrokenException: Following files and pages are detected to be broken ['component_group_name_version_ci_idx.sbt' :154;], storage is switched to 'read only' mode. Any modification operations are prohibited. To restore database and make it fully operational you may export and import database to and from JSON.  
```

## post by mpiggott on Jun 20, 2024

This suggests database corruption

**Topic list, column headers with buttons are sortable.**

| Topic | Replies | Views | Activity |
| --- | --- | --- | --- |
| [Does the warning message “delete will not be added to metrics” have any impact?](https://community.sonatype.com/t/does-the-warning-message-delete-will-not-be-added-to-metrics-have-any-impact/15512) | [2](https://community.sonatype.com/t/does-the-warning-message-delete-will-not-be-added-to-metrics-have-any-impact/15512/1) | 106 | [Sep 2025](https://community.sonatype.com/t/does-the-warning-message-delete-will-not-be-added-to-metrics-have-any-impact/15512/3) |
| [Docker artifacts being automatically deleted despite no policies/tasks enabled](https://community.sonatype.com/t/docker-artifacts-being-automatically-deleted-despite-no-policies-tasks-enabled/15528) | [0](https://community.sonatype.com/t/docker-artifacts-being-automatically-deleted-despite-no-policies-tasks-enabled/15528/1) | 48 | [Sep 2025](https://community.sonatype.com/t/docker-artifacts-being-automatically-deleted-despite-no-policies-tasks-enabled/15528/1) |
| [The official Nexus3.80.0 + version claims that there is a built-in task that can implement this function (Migrating User Tokens from LDAP to SAML), but there is no such built-in task in the UI page. What is the reason for this?](https://community.sonatype.com/t/the-official-nexus3-80-0-version-claims-that-there-is-a-built-in-task-that-can-implement-this-function-migrating-user-tokens-from-ldap-to-saml-but-there-is-no-such-built-in-task-in-the-ui-page-what-is-the-reason-for-this/15543) | [4](https://community.sonatype.com/t/the-official-nexus3-80-0-version-claims-that-there-is-a-built-in-task-that-can-implement-this-function-migrating-user-tokens-from-ldap-to-saml-but-there-is-no-such-built-in-task-in-the-ui-page-what-is-the-reason-for-this/15543/1) | 81 | [Sep 2025](https://community.sonatype.com/t/the-official-nexus3-80-0-version-claims-that-there-is-a-built-in-task-that-can-implement-this-function-migrating-user-tokens-from-ldap-to-saml-but-there-is-no-such-built-in-task-in-the-ui-page-what-is-the-reason-for-this/15543/5) |
| [Custom Auth Plugin Supports Basic Auth but Not Bearer Token (Realm Not Invoked for Bearer Tokens)](https://community.sonatype.com/t/custom-auth-plugin-supports-basic-auth-but-not-bearer-token-realm-not-invoked-for-bearer-tokens/15610) | [0](https://community.sonatype.com/t/custom-auth-plugin-supports-basic-auth-but-not-bearer-token-realm-not-invoked-for-bearer-tokens/15610/1) | 57 | [Sep 2025](https://community.sonatype.com/t/custom-auth-plugin-supports-basic-auth-but-not-bearer-token-realm-not-invoked-for-bearer-tokens/15610/1) |
| [How to set up Cleanup Policies?](https://community.sonatype.com/t/how-to-set-up-cleanup-policies/15467) | [2](https://community.sonatype.com/t/how-to-set-up-cleanup-policies/15467/1) | 157 | [Aug 2025](https://community.sonatype.com/t/how-to-set-up-cleanup-policies/15467/3) |
