Failed restore of work directory

351 views
Skip to first unread message

tmo...@taylordigital.io

unread,
Jun 26, 2018, 12:09:15 PM6/26/18
to Nexus Users
We currently have Nexus OSS running in a Docker Swarm. We had an issue where the service running Nexus was stopped and started. When it was started, it failed to come back saying that component failed to upgrade from 1.10 to 1.11. 

After that I attempted to follow along with some corrupted DB instructions. - https://stackoverflow.com/questions/42951710/orientdb-corruption-state-in-nexus-repository-version-3-2-0-01

I followed what was laid out in the second answer and was able to get Nexus started again with our original settings but now all the repositories are empty. The blobstores still show that there are items there but from the logs it seems that Nexus believes they are soft deleted with errors of attempts to access non-existent blob. When I attempted the first answer I kept getting a duplicate record error.

What would be the correct process to follow to restore Nexus if I have backups of the work directory?

Michael Prescott

unread,
Jun 28, 2018, 1:30:29 PM6/28/18
to tmo...@taylordigital.io, Nexus Users
That first answer is alarming; you should never be compacting your blob store in a restore situation. That takes soft-deleted blobs and permanently deletes them.

Doing an export and re-import of your component database won't cause your blobs to be deleted. It sounds like something went awry and the repositories were somehow deleted, which (if this is done via NXRM will cascade to soft-delete your blobs.)

Have a look at the "Repair - Reconcile component database from blob store" task. It can undelete soft-deleted blobs if they're still referenced in component metadata.

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/b4f27115-7178-4832-94fe-d6cf29fc3aaf%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
Reply all
Reply to author
Forward
0 new messages