I am getting an “Unexpected number of remote volumes marked as deleted.” error every time I run my backup job.
Googling found several topics with similar errors, but most seemed very old or were fixed by upgrading Duplicati. Since the version upgraded to was older than what I’m running, I don’t think that would help.
I have tried running the repair operation multiple times, it does not fix anything.
I have also deleted and recreated the database via the webui multiple times. Again, it did not help.
How can I fix this?
OS: Ubuntu 16.04
Duplicati: 2.0.2.1_beta_2017-08-01
Here is the sanatized output I get when running the backup command from the command line.
Reach# mono "/usr/lib/duplicati/Duplicati.CommandLine.exe" backup "ftp://goflex.lionsarch.tyria/GoFlex Home Personal/Duplicati/Reach/GoFlex Reach Home?auth-username=<ftpusername>&auth-password=password" "/home/<localusername>/" "/etc/hosts" "/var/lib/mysql/" "/opt/databasedumps/" --backup-name="GoFlex Reach Home" --dbpath="/root/.config/Duplicati/AHGLUNAFNK.sqlite" --encryption-module="aes" --compression-module="zip" --dblock-size="50mb" --keep-time="3Y" --passphrase="backuppassword" --send-mail-from="no-reply-reach" --send-mail-level="All" --send-mail-password="mailpass" --send-mail-to="mailto" --send-mail-url="mailurl" --send-mail-username="mailuser" --zip-compression-level="9" --run-script-timeout="3h" --exclude-files-attributes="temporary,system" --disable-module="console-password-input" --exclude="<a bunch of exclude flags I've removed from this post."
Backup started at 12/27/2017 1:07:33 PM
Checking remote backup ...
Listing remote folder ...
promoting uploaded complete file from Uploading to Uploaded: duplicati-20171227T191233Z.dlist.zip.aes
Expected there to be a temporary fileset for synthetic filelist (21, duplicati-b001c8ef433d745b78d76bc03be5cf0fa.dblock.zip.aes), but none was found?
Scanning local files ...
54040 files need to be examined (10.04 GB) (still counting)
67680 files need to be examined (10.13 GB) (still counting)
83257 files need to be examined (10.56 GB) (still counting)
98338 files need to be examined (7.21 GB) (still counting)
113448 files need to be examined (7.29 GB) (still counting)
129146 files need to be examined (9.99 GB) (still counting)
142060 files need to be examined (10.43 GB) (still counting)
157211 files need to be examined (10.23 GB) (still counting)
171613 files need to be examined (7.40 GB) (still counting)
186575 files need to be examined (5.50 GB) (still counting)
203106 files need to be examined (6.78 GB) (still counting)
221252 files need to be examined (6.92 GB) (still counting)
235631 files need to be examined (7.21 GB) (still counting)
247748 files need to be examined (7.65 GB) (still counting)
262362 files need to be examined (8.41 GB) (still counting)
277052 files need to be examined (8.35 GB) (still counting)
294158 files need to be examined (8.81 GB) (still counting)
312092 files need to be examined (9.75 GB) (still counting)
327488 files need to be examined (14.19 GB) (still counting)
343615 files need to be examined (18.96 GB) (still counting)
364082 files need to be examined (87.38 GB) (still counting)
380246 files need to be examined (87.86 GB) (still counting)
398018 files need to be examined (88.45 GB) (still counting)
414861 files need to be examined (88.61 GB) (still counting)
427148 files need to be examined (89.27 GB) (still counting)
441818 files need to be examined (114.69 GB) (still counting)
452367 files need to be examined (118.26 GB) (still counting)
464372 files need to be examined (216.78 GB) (still counting)
474967 files need to be examined (222.76 GB) (still counting)
489727 files need to be examined (224.32 GB) (still counting)
506209 files need to be examined (230.69 GB) (still counting)
507212 files need to be examined (233.88 GB)
497502 files need to be examined (233.80 GB)
487694 files need to be examined (233.75 GB)
478752 files need to be examined (233.42 GB)
467801 files need to be examined (233.36 GB)
457881 files need to be examined (233.32 GB)
449432 files need to be examined (233.29 GB)
438388 files need to be examined (231.96 GB)
428816 files need to be examined (231.92 GB)
419558 files need to be examined (231.89 GB)
407020 files need to be examined (231.87 GB)
396889 files need to be examined (231.57 GB)
387065 files need to be examined (231.51 GB)
378708 files need to be examined (231.34 GB)
371759 files need to be examined (231.00 GB)
365839 files need to be examined (230.98 GB)
359989 files need to be examined (230.83 GB)
352953 files need to be examined (230.50 GB)
345417 files need to be examined (230.06 GB)
338649 files need to be examined (229.98 GB)
331673 files need to be examined (229.95 GB)
325954 files need to be examined (229.90 GB)
319188 files need to be examined (229.81 GB)
312426 files need to be examined (229.76 GB)
307315 files need to be examined (229.43 GB)
300634 files need to be examined (229.34 GB)
292639 files need to be examined (229.09 GB)
286077 files need to be examined (228.53 GB)
278045 files need to be examined (228.38 GB)
270419 files need to be examined (227.81 GB)
261494 files need to be examined (223.95 GB)
252545 files need to be examined (223.77 GB)
243601 files need to be examined (222.77 GB)
234324 files need to be examined (220.49 GB)
226274 files need to be examined (217.91 GB)
216232 files need to be examined (150.40 GB)
206788 files need to be examined (150.32 GB)
197373 files need to be examined (149.94 GB)
187970 files need to be examined (149.72 GB)
177859 files need to be examined (149.64 GB)
167406 files need to be examined (149.52 GB)
157456 files need to be examined (149.04 GB)
147055 files need to be examined (148.74 GB)
137373 files need to be examined (148.69 GB)
129160 files need to be examined (148.65 GB)
120268 files need to be examined (148.54 GB)
112224 files need to be examined (146.92 GB)
105536 files need to be examined (124.50 GB)
97179 files need to be examined (122.69 GB)
93589 files need to be examined (116.22 GB)
81442 files need to be examined (115.70 GB)
74303 files need to be examined (109.93 GB)
65793 files need to be examined (17.44 GB)
56302 files need to be examined (12.43 GB)
55682 files need to be examined (12.39 GB)
52433 files need to be examined (11.83 GB)
45164 files need to be examined (11.18 GB)
37147 files need to be examined (10.96 GB)
29288 files need to be examined (9.42 GB)
27422 files need to be examined (9.37 GB)
25429 files need to be examined (9.34 GB)
19577 files need to be examined (5.86 GB)
10352 files need to be examined (3.63 GB)
0 files need to be examined (0 bytes)
Uploading file (25.27 MB) ...
Uploading file (255.03 KB) ...
Uploading file (37.94 MB) ...
Fatal error => Unexpected number of remote volumes marked as deleted. Found 0 filesets, but 1 volumes
System.Exception: Unexpected number of remote volumes marked as deleted. Found 0 filesets, but 1 volumes
at Duplicati.Library.Main.Database.LocalDeleteDatabase+<DropFilesetsFromTable>d__5.MoveNext () [0x00252] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at System.Collections.Generic.LargeArrayBuilder`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] items) [0x0005e] in <521f3fe476f34ea88748e97b3b984d05>:0
at System.Collections.Generic.EnumerableHelpers.ToArray[T] (System.Collections.Generic.IEnumerable`1[T] source) [0x00033] in <521f3fe476f34ea88748e97b3b984d05>:0
at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00018] in <521f3fe476f34ea88748e97b3b984d05>:0
at Duplicati.Library.Main.Operation.DeleteHandler.DoRun (Duplicati.Library.Main.Database.LocalDeleteDatabase db, System.Data.IDbTransaction& transaction, System.Boolean hasVerifiedBacked, System.Boolean forceCompact) [0x0015c] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Operation.BackupHandler.CompactIfRequired (Duplicati.Library.Main.BackendManager backend, System.Int64 lastVolumeSize) [0x00092] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x00860] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Controller+<>c__DisplayClass16_0.<Backup>b__0 (Duplicati.Library.Main.BackupResults result) [0x0030f] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x0014b] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.Library.Main.Controller.Backup (System.String[] inputsources, Duplicati.Library.Utility.IFilter filter) [0x00068] in <118ad25945a24a3991f7b65e7a45ea1e>:0
at Duplicati.CommandLine.Commands.Backup (System.IO.TextWriter outwriter, System.Action`1[T] setup, System.Collections.Generic.List`1[T] args, System.Collections.Generic.Dictionary`2[TKey,TValue] options, Duplicati.Library.Utility.IFilter filter) [0x000ee] in <08be045d41054657bb406455b4cf1a83>:0
at (wrapper delegate-invoke) System.Func`6[System.IO.TextWriter,System.Action`1[Duplicati.Library.Main.Controller],System.Collections.Generic.List`1[System.String],System.Collections.Generic.Dictionary`2[System.String,System.String],Duplicati.Library.Utility.IFilter,System.Int32]:invoke_TResult_T1_T2_T3_T4_T5 (System.IO.TextWriter,System.Action`1<Duplicati.Library.Main.Controller>,System.Collections.Generic.List`1<string>,System.Collections.Generic.Dictionary`2<string, string>,Duplicati.Library.Utility.IFilter)
at Duplicati.CommandLine.Program.RunCommandLine (System.IO.TextWriter outwriter, System.IO.TextWriter errwriter, System.Action`1[T] setup, System.String[] args) [0x003fb] in <08be045d41054657bb406455b4cf1a83>:0
Here is what I get when I run the repair operation from the command line:
Reach# mono "/usr/lib/duplicati/Duplicati.CommandLine.exe" repair "ftp://goflex.lionsarch.tyria/GoFlex Home Personal/Duplicati/Reach/GoFlex Reach Home?auth-username=ftpuser&auth-password=ftppass" --passphrase="password" --dbpath="/root/.config/Duplicati/AHGLUNAFNK.sqlite"
Listing remote folder ...
Destination and database are synchronized, not making any changes
I’d post the output of the delete and recreate operation, but I’m not 100% sure how to run that from the command line. Do I just rm the database file and then run a repair?