Duplicati lost its configuration

Most likely more than one instance of Duplicati is running, which explains why it cannot lock the database. Try in process explorer to see if you can find more than one instance.

The storage setup is stored in %APPDATA%Duplicati\Duplicati-server.sqlite`, but I suspect that you somehow have two instances running that haggle over who gets to the database.