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.

As you probably noted, database recreation can take quite a while. If you have the time available then it’s certainly worth a try, but I’d rename or move the existing database rather than delete it (just in case).

As for the actual “Unexpected number of remote volumes marked as deleted” error you’re seeing, I haven’t dealt with it before so I’m not exactly sure what’s going on. I believe it’s saying is that the number of files deleted from the local database (the filesets) didn’t mach the number of destination files that were flagged to be eventually be deleted (the volumes) during the next cleanup / compacting phase.

So in your case, there were 0 files deleted from the database, yet 1 destination file was found to be flagged for later deletion.

This is odd because code wise this should only happen if Duplicati is interrupted exactly during this block of code. Do you recall a power outage or system crash that might have happened just before you started getting this?

This is odd because code wise this should only happen if Duplicati is interrupted exactly during this block of code. Do you recall a power outage or system crash that might have happened just before you started getting this?

It’s been months since this started happening, so I don’t remember. I actually have the exact same data being backed up to Google Drive in another job. So it hasn’t been on the top of my priority list. (The data is in a work account, so I want a local backup. Plus, I have yet to figure out why my internet connection starts losing packets whenever I try to backup to Google drive here at home. It works fine from work…)