OAuth Issues affecting multiple storage providers

OK. Deleted everything, and modified docker-compose.yaml to pull from /duplicati/duplicati:latest.

Same exact behavior. So it’s not the distribution, for sure.

With this distribution, the duplicati-cli command works, and my attempt to take the command-line version of the backup and run it (after retrieving a token from Google) returns this error:

Mono.Data.Sqlite.SqliteException (0x80004005): The database file is locked

database is locked

This is the command line:

mono /opt/duplicati/Duplicati.CommandLine.exe backup "googledrive://Docker?authid=<<authID removed from here>>" /source/ --backup-name=Docker --dbpath=/data/Duplicati/FTGJTWYKHQ.sqlite --encryption-module= --compression-module=zip --dblock-size=50mb --keep-time=1M --no-encryption=true --disable-module=console-password-input --exclude="/source/@eaDir/"

Thanks! – Ken

What else (if anything) is running in terms of Duplicati (e.g. run ps), and (if Duplicati) Duplicati jobs?
Is that command line an Export As Command-line of a job there, or created in some other manner?
Single Duplicati has few ways to trip on itself, but multiple Duplicati can definitely collide in a job DB.

While awaiting the clarification for the database situation, I’ll suggest just testing for an OAuth issue.

mono /opt/duplicati/Duplicati.CommandLine.BackendTool.exe list "googledrive://Docker?authid=<<authID removed from here>>"



Actually, you could test with a completely incorrect AuthID (such as the placeholder above) to look for:

Command failed: Failed to authorize using the OAuth service: Invalid authid in query. If the problem persists, try generating a new authid token from: Duplicati OAuth Handler

because that would mean DNS got as far as the server, and probably got a syntax error without more.

Thanks for all the help. I finally realized that it has to be something configured incorrectly on the Synology NAS device, as this works fine when run from Docker elsewhere. Given that I’m going to get a new device next year (this one is five years old) and the Synology itself has built-in backup to Google Drive, I’m going to stop wasting your time on this until I get a clean, new, NAS device. Just not worth you’re taking all this time when I’m pretty sure it’s a problem here, not with Duplicati (which works just perfectly backing up from one NAS to another, which is how I ended up setting it up). Thanks again, and hopefully, with a new NAS, Duplicati/Docker will work great. Back next year… Thanks!

1 Like