Failed: Previous volume not finished

Trying to run my initial cloud backup and I keep getting this error every couple of hours-

Failed: Previous volume not finished, call FinishVolume before starting a new volume
Details: System.InvalidOperationException: Previous volume not finished, call FinishVolume before starting a new volume
 at Duplicati.Library.Main.Volumes.IndexVolumeWriter.StartVolume (System.String filename) [0x00010] in <118ad25945a24a3991f7b65e7a45ea1e>:0 
 at Duplicati.Library.Main.Operation.BackupHandler.UpdateIndexVolume () [0x00043] in <118ad25945a24a3991f7b65e7a45ea1e>:0 
 at Duplicati.Library.Main.Operation.BackupHandler.FinalizeRemoteVolumes (Duplicati.Library.Main.BackendManager backend) [0x00169] 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) [0x00072] in <118ad25945a24a3991f7b65e7a45ea1e>:0 

When I try to resume the backup I get this error-

Failed: Found 1 remote files that are not recorded in local storage, please run repair
Details: Duplicati.Library.Interface.UserInformationException: Found 1 remote files that are not recorded in local storage, please run repair
 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.String protectedfile) [0x000d6] in <118ad25945a24a3991f7b65e7a45ea1e>:0 
 at Duplicati.Library.Main.Operation.BackupHandler.PreBackupVerify (Duplicati.Library.Main.BackendManager backend, System.String protectedfile) [0x000fd] 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) [0x00072] in <118ad25945a24a3991f7b65e7a45ea1e>:0 

Running repair has corrected the problem and allowed me to resume the backup so far. I’m guessing that I probably have something misconfigured in my settings that is causing these errors. No idea where to start though.

Hi wgstarks, thanks for using Duplicati!

If you could post an “Export → As Command-line” of your backup job (after scrubbing sensitive data such as user names, passwords, hashes, etc.) that would help us get an idea of what’s going on.

Oh - and while we could probably get it from the command-line export letting us know things like the following can help too:

  • Duplicati version
  • target destination (what cloud provider, SFTP, local drive, USB drive, etc.)
  • OS (Windows, Linux, MacOS, etc.)

Since we’re not exactly sure what’s going on for you yet this may or may not be useful, but here’s another topic about “Previous volume not finished” errors - just in case…

Duplicati version = 2.0.2.1_beta_2017-08-01
target = backblaze B2
OS = Mac OSX 10.11.6

backup configuration-

mono "/Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe" backup "b2://maggiebackup/maggiefullbackup?auth-username=redacted&auth-password=redacted" "/Volumes/MacHD/" "/Volumes/Raid 1/iTunes Library/" --send-mail-any-operation="true" --send-mail-body="%RESULT%" --send-mail-from=redacted@icloud.com" --send-mail-level="all" --send-mail-password="redacted" --send-mail-url="smtp.mail.me.com:587/?starttls=when-available" --send-mail-username="redacted" --send-mail-to="redacted@icloud.com" --send-mail-subject="Duplicati %OPERATIONNAME% report for %backup-name%" --backup-name="Full Backup" --dbpath="/Users/wgstarks/.config/Duplicati/DJCJCJDYKB.sqlite" --encryption-module="aes" --compression-module="zip" --dblock-size="50mb" --keep-time="3M" --passphrase="redacted" --zip-compression-level="5" --zip-compression-method="Deflate" --exclude-files-attributes="temporary,hidden,system" --disable-module="console-password-input"

Now the error has changed-

Failed: Found inconsistency in the following files while validating database:
/Volumes/MacHD/private/var/run/dyld_shared_cache_x86_64, actual size 488837046, dbsize 0, blocksetid: 60955
. Run repair to fix it.
Details: System.IO.InvalidDataException: Found inconsistency in the following files while validating database: 
/Volumes/MacHD/private/var/run/dyld_shared_cache_x86_64, actual size 488837046, dbsize 0, blocksetid: 60955
. Run repair to fix it.
 at Duplicati.Library.Main.Database.LocalDatabase.VerifyConsistency (System.Data.IDbTransaction transaction, System.Int64 blocksize, System.Int64 hashsize, System.Boolean verifyfilelists) [0x000e9] in <118ad25945a24a3991f7b65e7a45ea1e>:0 
 at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x00238] 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) [0x00072] in <118ad25945a24a3991f7b65e7a45ea1e>:0 

Running repair reports success, but when I attempt to resume the backup I get the inconsistency error again.

Thanks for the additional information!

I didn’t see anything obviously incorrect in your backup configuration other than what looks like you may be trying to backup the DJCJCJDYKB.sqlite Duplicati file while running the backup that is trying to write to the file.

But since I think this normally shows up as a file read error I doubt it’s the cause of your specific issue.

However, if you’re up for doing a test you might want to try excluding this file from your backup job with a parameter such as --exclude="/Users/wgstarks/.config/Duplicati/DJCJCJDYKB.sqlite".

You might also want to consider shifting to a much smaller backup for testing purposes. You could either create a new backup or just updating your current one to have a smaller set of source files. If that works then you can gradually include more source files until it either works or the error comes back.

Unfortunately, that’s about as much as I can think of for this situation. Based on other topics with your new “inconsistency” error message, @kenkendk MIGHT be interested in a bug report…

Thanks for the help. I’ll exclude the db file as you suggested and switch to a smaller backup scheme. I’m not sure I can still generate a bug report though. I had to delete and repair the database to correct the validation error. it was the only way I could get the backup to run at all.

That’s quite alright - I’d rather have your backups working than a bug submission. :slight_smile: