Spin up new Nexus instance from scratch - Task Execute Data Repair Plan stops after 0 seconds

We were running an instance of Nexus for some years until we ran into severe database corruption some months after successful migration from OrientDB to H2.

Since then this instance was running in read-only mode, we were able to set.

Last week I tried to set up a new instance with a PostgreSQL database. Everything worked fine according to the guide.

Now I had the idea to restore the database completely from the blob store.

I moved the blob store from the old Nexus instance to the new one and ran the task “Recalculate blob store storage”. Once I did this for the docker and once for the maven blob store.

UI shows that it was successful and the correct size is shown:

But when running the task “Repair - Execute Data Repair Plan” it just says OK, with a runtime of 0 seconds.
I configured the task “Repair - Data Repair Plan”, selected the correct blob store and manually recreated the repositories which were present in the broken instance.

What can I do to make the Repair task work?

When you configured the task, did you specify the time period? I don’t believe the task makes this appropriately clear but it defaults to 30-minutes or similar. You’d want to change this to a date which predates the creation of data.

Note: depending on the number of files in the blob store(s) this task may require days to run.

I set it to 7.000 days back - should cover everything.

Here are some logs:

/opt/sonatype-work/nexus3/log/tasks# tail -n 1000 blobstore.executeReconciliationPlan-202511121542029*
==> blobstore.executeReconciliationPlan-20251112154202947.log <==
2025-11-12 15:42:02,947+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanTask - Task information:
2025-11-12 15:42:02,953+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanTask -  ID: 1758bff7-bfe0-413b-95c5-feac30b47bab
2025-11-12 15:42:02,953+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanTask -  Type: blobstore.executeReconciliationPlan
2025-11-12 15:42:02,953+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanTask -  Name: Repair - Execute Data Repair Plan
2025-11-12 15:42:02,953+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanTask -  Description: Uses blobs in a blobstore to restore assets to a repository
2025-11-12 15:42:02,953+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanTask - Task configuration: {.name=Repair - Execute Data Repair Plan, lastRunState.runStarted=1762343828849, .id=1758bff7-bfe0-413b-95c5-feac30b47bab, .typeName=Repair - Execute Data Repair Plan, .visible=true, .typeId=blobstore.executeReconciliationPlan, .notificationCondition=FAILURE, lastRunState.endState=OK, .updated=2025-10-30T16:06:32.987+01:00, .recoverable=false, .enabled=true, .message=Uses blobs in a blobstore to restore assets to a repository, lastRunState.runDuration=63, .exposed=true, .created=2025-10-30T16:06:32.987+01:00}

==> blobstore.executeReconciliationPlan-20251112154202958.log <==
2025-11-12 15:42:02,959+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor - Task information:
2025-11-12 15:42:02,959+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor -  ID: 1758bff7-bfe0-413b-95c5-feac30b47bab
2025-11-12 15:42:02,959+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor -  Type: blobstore.executeReconciliationPlan
2025-11-12 15:42:02,960+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor -  Name: Repair - Execute Data Repair Plan
2025-11-12 15:42:02,960+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor -  Description: Uses blobs in a blobstore to restore assets to a repository
2025-11-12 15:42:02,960+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor - Task configuration: {.name=Repair - Execute Data Repair Plan, lastRunState.runStarted=1762343828849, .id=1758bff7-bfe0-413b-95c5-feac30b47bab, .typeName=Repair - Execute Data Repair Plan, .visible=true, .typeId=blobstore.executeReconciliationPlan, .notificationCondition=FAILURE, lastRunState.endState=OK, .updated=2025-10-30T16:06:32.987+01:00, .recoverable=false, .enabled=true, .message=Uses blobs in a blobstore to restore assets to a repository, lastRunState.runDuration=63, .exposed=true, .created=2025-10-30T16:06:32.987+01:00}
2025-11-12 15:42:02,960+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor - Reconciliation started
2025-11-12 15:42:02,965+0100 INFO  [Reconciliation-20-thread-3]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanService - Starting process of reconcile plans
2025-11-12 15:42:02,965+0100 INFO  [Reconciliation-20-thread-2]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanService - Starting process of reconcile plans
2025-11-12 15:42:02,965+0100 INFO  [Reconciliation-20-thread-1]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanService - Starting process of reconcile plans
2025-11-12 15:42:02,965+0100 INFO  [Reconciliation-20-thread-4]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanService - Starting process of reconcile plans
2025-11-12 15:42:02,980+0100 INFO  [Reconciliation-20-thread-2]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanService - Finished process of reconcile plans. Processed 0 in 0 minute(s) 0 second(s)
2025-11-12 15:42:02,980+0100 INFO  [Reconciliation-20-thread-3]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanService - Finished process of reconcile plans. Processed 0 in 0 minute(s) 0 second(s)
2025-11-12 15:42:02,985+0100 INFO  [Reconciliation-20-thread-4]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanService - Finished process of reconcile plans. Processed 0 in 0 minute(s) 0 second(s)
2025-11-12 15:42:02,988+0100 INFO  [Reconciliation-20-thread-1]  *TASK com.sonatype.nexus.reconcile.task.ExecuteReconcilePlanService - Finished process of reconcile plans. Processed 0 in 0 minute(s) 0 second(s)
2025-11-12 15:42:02,989+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor - Reconciliation finished
2025-11-12 15:42:02,989+0100 INFO  [quartz-14-thread-5]  *TASK com.sonatype.nexus.reconcile.task.ReconcilePlanExecutor - Task complete