Well, I lost the database - prior it was ok.
I stopped the restore, because I didn’t want to wait weeks or months for it to finish.
Now I did the following:
- With the new container I was able to restore my old container files (including the database)
- I then copied the restored files into the current working directory of the duplicati container - folder structure looks like this:
|
name |
size |
last modified |
|
.cache |
|
2021-10-08 21:56 |
|
.config |
|
2021-10-08 21:57 |
|
.mono |
|
2021-10-08 21:57 |
|
control_dir_v2 |
|
2021-10-08 21:55 |
|
custom-cont-init.d |
|
2021-10-08 21:55 |
|
custom-services.d |
|
2021-10-08 21:55 |
|
backup ZVAGIDJZFJ 20210507020002.sqlite |
2.11 GB |
2021-10-08 21:55 |
|
Duplicati-server.sqlite |
299 KB |
2021-10-08 22:03 |
|
Sicherung KLUJDGTBQX 20210722082631.sqlite |
870 MB |
2021-10-08 21:55 |
|
ZVAGIDJZFJ.sqlite |
2.74 GB |
2021-10-08 22:03 |
Now I thought this doesn’t look too bad and Duplicati also shows my old backup job.
- I tried a restore (via the backup job) and I get this error (I tried different restore points):
System.Exception: Unexpected number of remote volumes detected: 0!
at Duplicati.Library.Main.Database.LocalDatabase.UpdateRemoteVolume (System.String name, Duplicati.Library.Main.RemoteVolumeState state, System.Int64 size, System.String hash, System.Boolean suppressCleanup, System.TimeSpan deleteGraceTime, System.Data.IDbTransaction transaction) [0x00080] in :0
at Duplicati.Library.Main.Database.LocalDatabase.UpdateRemoteVolume (System.String name, Duplicati.Library.Main.RemoteVolumeState state, System.Int64 size, System.String hash, System.Boolean suppressCleanup, System.Data.IDbTransaction transaction) [0x0000f] in :0
at Duplicati.Library.Main.Database.LocalDatabase.UpdateRemoteVolume (System.String name, Duplicati.Library.Main.RemoteVolumeState state, System.Int64 size, System.String hash, System.Data.IDbTransaction transaction) [0x00000] in :0
at Duplicati.Library.Main.Operation.FilelistProcessor.RemoteListAnalysis (Duplicati.Library.Main.BackendManager backend, Duplicati.Library.Main.Options options, Duplicati.Library.Main.Database.LocalDatabase database, Duplicati.Library.Main.IBackendWriter log, System.Collections.Generic.IEnumerable1[T] protectedFiles) [0x009f3] in <e60bc008dd1b454d861cfacbdd3760b9>:0 at Duplicati.Library.Main.Operation.FilelistProcessor.VerifyRemoteList (Duplicati.Library.Main.BackendManager backend, Duplicati.Library.Main.Options options, Duplicati.Library.Main.Database.LocalDatabase database, Duplicati.Library.Main.IBackendWriter log, System.Collections.Generic.IEnumerable
1[T] protectedFiles) [0x00000] in :0
at Duplicati.Library.Main.Operation.FilelistProcessor.VerifyRemoteList (Duplicati.Library.Main.BackendManager backend, Duplicati.Library.Main.Options options, Duplicati.Library.Main.Database.LocalDatabase database, Duplicati.Library.Main.IBackendWriter backendWriter, System.Boolean latestVolumesOnly, System.Data.IDbTransaction transaction) [0x00019] in :0
at Duplicati.Library.Main.Operation.RestoreHandler.DoRun (Duplicati.Library.Main.Database.LocalDatabase dbparent, Duplicati.Library.Utility.IFilter filter, Duplicati.Library.Main.RestoreResults result) [0x00136] in :0
at Duplicati.Library.Main.Operation.RestoreHandler.Run (System.String paths, Duplicati.Library.Utility.IFilter filter) [0x00062] in :0
at Duplicati.Library.Main.Controller+<>c__DisplayClass15_0.b__0 (Duplicati.Library.Main.RestoreResults result) [0x0001c] in :0
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x0026f] in :0
at Duplicati.Library.Main.Controller.Restore (System.String paths, Duplicati.Library.Utility.IFilter filter) [0x00021] in :0
at Duplicati.Server.Runner.Run (Duplicati.Server.Runner+IRunnerData data, System.Boolean fromQueue) [0x0040a] in <156011ea63b34859b4073abdbf0b1573>:0
- I tried to verify the files and get the following error:
System.IO.InvalidDataException: Found inconsistency in the following files while validating database:
/source/domains/Sardonyx/sardonyx.img, actual size 65498251264, dbsize 62951972864, blocksetid: 154910
/source/domains/Odin/vdisk1.img, actual size 26843545600, dbsize 26642739200, blocksetid: 154912
/source/system/libvirt/libvirt.img, actual size 5368709120, dbsize 5366251520, blocksetid: 154914
/source/system/docker/docker.img, actual size 21474836480, dbsize 17361018880, blocksetid: 154916
/source/appdata/sonarr/logs.db, actual size 5320704, dbsize 0, blocksetid: 154919
… and 3 more. Run repair to fix it.
at Duplicati.Library.Main.Database.LocalDatabase.VerifyConsistency (System.Int64 blocksize, System.Int64 hashsize, System.Boolean verifyfilelists, System.Data.IDbTransaction transaction) [0x000e9] in :0
at Duplicati.Library.Main.Operation.TestHandler.Run (System.Int64 samples) [0x0009f] in :0
at Duplicati.Library.Main.Controller+<>c__DisplayClass30_0.b__0 (Duplicati.Library.Main.TestResults result) [0x0001c] in :0
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String& paths, Duplicati.Library.Utility.IFilter& filter, System.Action1[T] method) [0x0026f] in <e60bc008dd1b454d861cfacbdd3760b9>:0 at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.Action
1[T] method) [0x00009] in :0
at Duplicati.Library.Main.Controller.Test (System.Int64 samples) [0x0004b] in :0
at Duplicati.Server.Runner.Run (Duplicati.Server.Runner+IRunnerData data, System.Boolean fromQueue) [0x00423] in <156011ea63b34859b4073abdbf0b1573>:0
-
I tried to run a repair and get the same error as when I tried the restore: Unexpected number of remote volumes detected: 0!
-
It looked like I had no other choice, but to delete and rebuild the database, which I did and it is running now for a day or two and now again “stuck” at 90%
I also copied all the backup files to a local disk in hopes that the restore/rebuild would speed up a bit, but it doesn’t look like it makes much of a difference.