I was having difficulty with the latest canary build, 220.127.116.11 where it would hang forever on the initial file scan. Reading through the forums it seems there is an issue with 18.104.22.168 where database access could take a very long time, with the advice to downgrade. I followed the instructions here to downgrade.
In my case, the previous version is 22.214.171.124, so I deleted the folder at /usr/share/Duplicati/updates/126.96.36.199, and changed the “current” file to indicate 188.8.131.52.
Starting the service back up, Duplicati exits immediately. If I try
systemctl status duplicati, it indicates:
A serious error occurred in Duplicati: System.Exception: Failed to create, open or upgrade the database.
The database has version 5 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 /root/.config/Duplicati
at Duplicati.Server.Program.GetDatabaseConnection (System.Collections.Generic.Dictionary`2[TKey,TValue] commandline
at Duplicati.Server.Program.RealMain (System.String args) [0x001cc] in <66004e16a6074efdaebb0aaaf058863a>:0
duplicati.service: Main process exited, code=exited, status=100/n/a
Unit entered failed state.
Failed with result 'exit-code'.
Any idea how to proceed?
Unfortunately, you’ve fallen into the “Why you might NOT want to downgrade” database issue mentioned at that link.
If you want to manually downgrade the database I think there are some instructions somewhere in the forum (let me know if you can’t find them) but I suspect it will be easier to “manually update” to a newer version than 184.108.40.206 but NOT so new as to be 220.127.116.11.
You SHOULD be able to just install something newer (like 18.104.22.168, which uses database version 5) “over” your current installation. This will change your “base” install from what it currently is (you MIGHT be able to see it in BaseVersionName at main menu “About” -> “System info”.
The everything-but-the-most-recent downloads can be found here:
I don’t know how to do it in Linux, but on Windows you can:
- download the zip file version from the above Releases link
- unzip it into a subfolder your “updates” folder (for you that would likely be something like
/root/.config/Duplicati/updates and on Windows likely
- if necessary, rename the unziped subfolder to be JUST the version number of what you unziped (so if you downloaded
duplicati-22.214.171.124_canary_2018-04-02.zip you’d name the folder
- restart any running server (service / daemon) or tray-icons
This is essentially doing a manual version of the GUI based update.
I’ve added a block to the “how to downgrade” guide that explains this in a slightly more organized way.
Thanks, that should be enough information for me to do a manual upgrade to 126.96.36.199 in linux. I had a feeling I might be in a situation where the downgrade wasn’t a good idea
I tried this:
- Download the 188.8.131.52 version using
- Extract with
dpkg -x duplicati_184.108.40.206-1_all.deb
- Copy what looked like the correct folder to
- Modify the file
current to indicate 220.127.116.11
- Restart the service
No luck. There must have been something wrong with the file set I copied into the 18.104.22.168 update folder, but I couldn’t figure out what it was.
Installing the 22.214.171.124 version over my existing version did the trick, with
dpkg -i duplicati_126.96.36.199-1_all.deb. Up and running!