RebuildMaven2MetadataTask fails - Sonatype Nexus Repository - Sonatype Community
RebuildMaven2MetadataTask fails
post by robin.laegler on Feb 6, 2023
I have the problem that the Repair task fails everytime I try to run it, but the metadata is visible on the Nexus UI:
2023-02-06 22:14:52,218+0100 INFO [quartz-3-thread-18] *SYSTEM org.sonatype.nexus.repository.maven.tasks.RebuildMaven2MetadataTask - Task information:
2023-02-06 22:14:52,221+0100 INFO [quartz-3-thread-18] *SYSTEM org.sonatype.nexus.repository.maven.tasks.RebuildMaven2MetadataTask - ID: 7cbab4be-4443-46e9-afe7-957a60c32e58
2023-02-06 22:14:52,221+0100 INFO [quartz-3-thread-18] *SYSTEM org.sonatype.nexus.repository.maven.tasks.RebuildMaven2MetadataTask - Type: repository.maven.rebuild-metadata
2023-02-06 22:14:52,221+0100 INFO [quartz-3-thread-18] *SYSTEM org.sonatype.nexus.repository.maven.tasks.RebuildMaven2MetadataTask - Name: maven releases rebuild maven repository metadata
2023-02-06 22:14:52,226+0100 INFO [quartz-3-thread-18] *SYSTEM org.sonatype.nexus.repository.maven.tasks.RebuildMaven2MetadataTask - Description: Rebuilding Maven Metadata of releases
2023-02-06 22:15:02,241+0100 INFO [quartz-3-thread-18] *SYSTEM org.sonatype.nexus.repository.maven.internal.hosted.metadata.MetadataUpdater - metadata for MavenPath{path=‘com/durr/mes/product/messuite/modules/prodtrack/maven-metadata.xml’, fileName=‘maven-metadata.xml’, hashType=null} hasn’t changed, skipping
2023-02-06 22:15:03,732+0100 INFO [quartz-3-thread-18] *SYSTEM org.sonatype.nexus.repository.maven.internal.hosted.metadata.MetadataUpdater - metadata for MavenPath{path=‘com/durr/ecoemos/erp-backend/erp-backend-impl/maven-metadata.xml’, fileName=‘maven-metadata.xml’, hashType=null} hasn’t changed, skipping
2023-02-06 22:15:05,002+0100 WARN [quartz-3-thread-18] *SYSTEM org.sonatype.nexus.blobstore.file.FileBlobStore - Attempt to access soft-deleted blob 42c0eadd-e536-4500-8a4e-6e27ad69e702 attributes: D:\Data\Nexus\sonatype-work\nexus3\blobs\default\content\vol-25\chap-05\42c0eadd-e536-4500-8a4e-6e27ad69e702.properties {deletedDateTime=1674198839859, deleted=true, @BlobStore.created-by=anonymous, creationTime=1673953083116, @BlobStore.created-by-ip=10.150.46.211, @BlobStore.content-type=text/plain, sha1=548f50c5a5a22e18da546791a3baadba7aa46c9c, @BlobStore.blob-name=com/durr/mes/product/messuite/modules/materialflowtracking/materialflowtracking-rest/2.0.11/materialflowtracking-rest-2.0.11.war.sha1, deletedReason=Updating asset AttachedEntityId{asset->#35:168032}, @Bucket.repo-name=releases, size=40}
Can anybody help me here? Do I need to restore the backup or is it possible to solve this using the Repair tasks Nexus provides?
post by rseddon on Feb 6, 2023
Somehow there is a file in blob storage marked as deleted when it shouldn’t be. Try editing the “D:\Data\Nexus\sonatype-work\nexus3\blobs\default\content\vol-25\chap-05\42c0eadd-e536-4500-8a4e-6e27ad69e702.properties” and remove the “deleted=true” line.
post by robin.laegler on Feb 7, 2023
Hello Rich, thanks for the response!
this fixed the issue regarding the one artefact.
But I have additional artefacts, which have the same issue.
Is there a way to get rid of the and delete the line all by one?
Maybe there is also a Nexus Task for that?!