Windows 10 Pro 1809 x64, Duplicati 2.0.4.5.
After a string of backups ending with warnings due to access to in-use files being denied because, well, they were in use, I tried enabling VSS with `–snapshot-policy=on’. That requires high privs, so I ran ‘Duplicati.WindowsService.exe install’ as administrator.
What I didn’t realize was that this would wipe the slate and start me over with a completely new config, with all of my previously configured backups gone. Oh. I have encrypted copies of the backup configs, so I restored one. That immediately failed… because it referenced %MY_DOCUMENTS% in several paths, and now it’s running as a different user. It’s never straightforward, is it?
So I decided to back out the change and go back to running Duplicati as me, via Duplicati.GUI.TrayIcon.exe. I shut down the service, uninstalled it, and launched the GUI/ It immediately crashes, according to C:\ProgramData\Duplicati\updates\Duplicati-crashlog.txt:
–BEGIN CRASHLOG–
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: A serious error occurred in Duplicati: System.Exception: Failed to create, open or upgrade the database.
Error message:
The database has version 6 but the largest supported version is 4.
This is likely caused by upgrading to a newer version and then downgrading.
If this is the case, there is likely a backup file of the previous database version in the folder C:\Users\tar\AppData\Local\Duplicati.
at Duplicati.Server.Program.GetDatabaseConnection(Dictionary`2 commandlineOptions)
at Duplicati.Server.Program.RealMain(String[] _args) ---> System.Exception: Failed to create, open or upgrade the database.
Error message:
The database has version 6 but the largest supported version is 4.
This is likely caused by upgrading to a newer version and then downgrading.
If this is the case, there is likely a backup file of the previous database version in the folder C:\Users\tar\AppData\Local\Duplicati.
at Duplicati.Server.Program.GetDatabaseConnection(Dictionary`2 commandlineOptions)
at Duplicati.Server.Program.RealMain(String[] _args)
--- End of inner exception stack trace ---
at Duplicati.GUI.TrayIcon.HostedInstanceKeeper..ctor(String[] args)
at Duplicati.GUI.TrayIcon.Program.RealMain(String[] _args)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Duplicati.Library.AutoUpdater.UpdaterManager.RunMethod(MethodInfo method, String[] args)
–END CRASHLOG–
How screwed am I? What is the easiest recovery to just get back to where I was with my existing backups running as me, and pretend this never happened, I will never try to twiddle knobs again? I have 3 backup jobs defined, and I have backups of each of their configs.
Thanks for any wisdom.