Repair database

I’ve deleted on last friday the local database and wanted to recreate the database. Now it’s tuesday and the recreation haven’t finished yet.

Some generel informations:
2.0.4.23_beta_2019-07-14
Source: 146,38 GB
Backup: 797,12 GB / 76 versions

The interesting part of the log starts with this:
2020-02-01 17:51:18 +01 - [Verbose-Duplicati.Library.Main.Operation.RecreateDatabaseHandler-ProcessingAllBlocklistVolumes]: Processing all of the 4091 volumes for blocklists
2020-02-01 17:51:18 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b0067529f1700485dba9bd18552720091.dblock.zip.aes (199,96 MB)
2020-02-01 17:51:22 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b0067529f1700485dba9bd18552720091.dblock.zip.aes (199,96 MB)
2020-02-01 17:51:22 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b291b2d50db5d4ab3ba830579dfa196fc.dblock.zip.aes (199,99 MB)
2020-02-01 17:51:26 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b291b2d50db5d4ab3ba830579dfa196fc.dblock.zip.aes (199,99 MB)
2020-02-01 17:56:38 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b368594f0ddef45d481ed35e17fbe7d41.dblock.zip.aes (199,96 MB)
2020-02-01 17:56:42 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b368594f0ddef45d481ed35e17fbe7d41.dblock.zip.aes (199,96 MB)

Round about 5 minutes for every dblock. The recreation will need about 14 days to recreate the database. Huh, that’s quit long.

But, take a look at the entries from saturday:
2020-02-01 22:27:47 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b2387576a0c6e407bbd12ef54370bf0b8.dblock.zip.aes (199,97 MB)
2020-02-01 22:27:51 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b2387576a0c6e407bbd12ef54370bf0b8.dblock.zip.aes (199,97 MB)
2020-02-02 01:31:58 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-ba7ee754b6b9f45cbb11b735c48496812.dblock.zip.aes (200,00 MB)
2020-02-02 01:32:35 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-ba7ee754b6b9f45cbb11b735c48496812.dblock.zip.aes (200,00 MB)
2020-02-02 06:13:58 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b5b537bb549b7474cb0f16b1eb1c91def.dblock.zip.aes (199,96 MB)
2020-02-02 06:14:04 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b5b537bb549b7474cb0f16b1eb1c91def.dblock.zip.aes (199,96 MB)
2020-02-02 11:54:58 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b7697d034039b4818b23fbdbf8588a5b0.dblock.zip.aes (199,91 MB)
2020-02-02 11:55:36 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b7697d034039b4818b23fbdbf8588a5b0.dblock.zip.aes (199,91 MB)
2020-02-02 17:34:17 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b71ca69a3715448f1988855c06d0f18a2.dblock.zip.aes (199,96 MB)
2020-02-02 17:34:22 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b71ca69a3715448f1988855c06d0f18a2.dblock.zip.aes (199,96 MB)
2020-02-02 20:44:19 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b1afd5afb455c49a4a38c8bc03c03049e.dblock.zip.aes (199,96 MB)
2020-02-02 20:44:25 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b1afd5afb455c49a4a38c8bc03c03049e.dblock.zip.aes (199,96 MB)
2020-02-02 22:17:32 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b7e43e7437a324540bff25ba0018c5dd8.dblock.zip.aes (199,96 MB)
2020-02-02 22:18:10 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b7e43e7437a324540bff25ba0018c5dd8.dblock.zip.aes (199,96 MB)
2020-02-02 22:59:51 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b9a787218c2884aaeb8f6e67dcf658cb1.dblock.zip.aes (199,96 MB)
2020-02-02 23:00:29 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-b9a787218c2884aaeb8f6e67dcf658cb1.dblock.zip.aes (199,96 MB)
2020-02-02 23:45:48 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-bcd61923071b04faca3335fc00321f991.dblock.zip.aes (199,90 MB)
2020-02-02 23:45:53 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Completed: duplicati-bcd61923071b04faca3335fc00321f991.dblock.zip.aes (199,90 MB)

There is a delay from up to 6 hours for one dblock. Can someone tell me, why this action takes so long?

Is it possible to stop the recreation of the database and start the backup?

Does the backup work without a database or does the job recreate the database and it’s useless to stop the recreation at this point?

You are probably affected by a bug that would, under some circumstances, cause dblock files to be downloaded during a database recreation. This is a potentially very time consuming operation.

That particular bug has been fixed. I suggest you cancel this operation, upgrading to version 2.0.5.1_beta, and then attempt to Recreate again.

As soon as the repair operation has stopped, I’ll make an update and check if the new version solve this issue.

Thanks!