Backend : SMB network drive mounted under Windows network drive
Description
Today I meet strange issue.
After upgrade to last build (Duplicati - 2.0.5.101) I can’t perform one of my backup tasks. Only one - all rest are working fine. In this one:
I can’t see logs - “Failed to connect: SQL logic error no such table: LogData”
I can’t repair, recreate database
I tried to delete local database, recreate, repair all options. Even delete backup task and import it again. Still she same wrong behaviour. Any ideas what can be wrong?
Screenshots
I have tried to recreate database, delete latest backup versions - still no progress. Issue still exists. Can anybody help me?
The exact sequence is not very clear – not that unusual when testing things unless one takes notes.
When did the “Unexpected difference in fileset” happen? What might prior build have been? A Beta?
Your history of updates might be visible in Windows File Explorer, if you used the built-in autoupdate.
C:\ProgramData\Duplicati\updates
C:\Users\<Duplicati user account>\AppData\Local\Duplicati\updates
“Unexpected difference” is a consistency error, in your case in a 2019 backup that’s likely your oldest. Generally the most successful cure is to delete the named version, but sometimes the issue moves.
Without the database (did you save a copy or do you see plausible backups in the Database folder?), there are no versions to delete. Without a database at all, you get a complaint about logs because the logs were in the database that may have been deleted. Is there an empty file at the database path?
Does the backup contain old file history that is very valuable? I usually advise people not to have that. Sometimes the easiest way out is to delete the database from the web UI, delete backup files, restart.
There’s definitely more exploring that could be done, and also special tools if you want to restore now.
Hello ts678, hello Team
Update was made from v2.0.4.37 to v2.0.5.101. The most strange thing is that 7 of my 8 backup tasks works without issues. Only one is problematic. It really looks like issue is tied with last successful backup (“Unexpected difference in fileset version 1: 2020-01-27 15:39:32 (database id: 41), found 115134 entries, but expected 116808”). Since this issue happened - no further backup was made.
Now it is quite hard to give detailed description step by step.
As I wrote: I’ve tried delete/import backup task, delete last (or even 35-41 “versions”) but nothing helps.
Locally I have no database backup. But I have few copies on external USB hard-drive or even (I hope) in different duplicati backup-task. If it is necessary I can try to restore previous database version. I have tried simple “replace” database file tied with this problematic task from old backup but nothing changed.
It is not very important to save all my backuped data. I can delete everything and start from scratch but if anyone would help I can cooperate in investigation to resolve this issue and made duplicati better
That’s new info. The screenshot from the original post showed issue at version 40 from 2019-10-28.
Or maybe this was a case of it moving (as it can). I’m not sure which complaint was the original one.
“Unexpected difference in fileset version 1” is a pretty common starting spot for some problems that damage the database but somehow aren’t detected on the same backup, but instead at start of next.
I’m still not quite sure where things are. If you’re deleting versions, you have a DB, so don’t have the topic title’s SQL logic error no such table: LogData I assume. Regarding old databases, they generally aren’t useful unless they’re near the problem. They are supposed to track the destination’s contents, and this change every backup, and even more if Compacting files at the backend happens.
Did an “Unexpected difference” happen on Recreate or a Backup? If on Recreate, it follows this logic:
and if on Recreate, it might also be fixable by altering the destination, especially if version is a 0 or 1.
Hi all. maybe there is some uncleared things.
Issue described and visible on screenshoot happened after upgrade from v2.0.4.37 to v2.0.5.101
My comment “It really looks like issue is tied with last successful backup” is current status. I have checked how it looks just now and it looks like screenshot below.
This is situation after trying many repair options, delete and recreate database, delete backup job and import it again from xml, also after try of “move database”.
Now it looks like on the picture below. Database has 0 bytes on disk, There is still message “Failed to connect: SQL logic error no such table: LogData”.
The one thing what I don’t try to delete this backup job, delete all files form destination and start from scratch.
:
It’s unclear which screenshot this means. Is that the one supplied with that post or some other one?
So it happened by itself before any of the many repair options tried? Was that a scheduled backup?
Error popups are not self-clearing. You use the Dismiss button if you like. Seeing the popup doesn’t reveal what you were doing when the popup arose. There were “many repair options”. Was that the result of something done (such as a LogData error is expected for empty DB), or is it original issue?
list-broken-files wasn’t tried that I hear, but it probably won’t like a completely empty database.
How about using the Dismiss button on the most recently posted red error popup now that it’s seen? These aren’t self-dismissing, and I’m still trying to get clarity on when that particular message arose.
Trying Recreate again would get a cleaner start, and find out whether Recreate said that. Also using Viewing the Duplicati Server Logs in another tab while Recreate runs might reveal some better logs. About → Show log → Live → Information might be a reasonable setting, but level can be changed.