Cannot open database after upgrade from 8.0 to 9.3
This might have a root cause in common with #537 or #557, but in my case there's no corruption.
I've been using Secrets since 7.2 or earlier, installed via .deb on an Ubuntu system. My database was originally created by KeePass2 several years ago. I use both a password and a keyfile.
I'm able to open my database with the Tusk browser extension, as well as KeePassXC and Keepass2Android. I was using Secrets 8.0 without issue on Ubuntu 22.04. I recently upgraded to Ubuntu 24.04 and I guess Secrets was upgraded to 9.3 along with it (so was pykeepass, from 4.0.6). Now I can't open the database, it says the password is wrong:
$ dpkg -l | grep -e secrets -e keepass
ii gnome-passwordsafe 9.3-1 all transitional package for secrets
ii python3-pykeepass 4.0.7-2 all KeePass database library - Python 3.x Module
ii python3-secretstorage 3.3.3-3 all Python module for storing secrets - Python 3.x version
ii secrets 9.3-1 all Manage your passwords
$ secrets --debug
25-05-24 01:23:02 | DEBUG | File selected: /path/to/saxonww.kdbx
25-05-24 01:23:22 | DEBUG | Keyfile selected: /path/to/keepass.key
25-05-24 01:23:31 | DEBUG | Generate key for FileProvider
25-05-24 01:23:31 | DEBUG | Adding key from FileProvider
25-05-24 01:23:31 | DEBUG | Generate key for Pkcs11Provider
25-05-24 01:23:31 | DEBUG | Generate key for YubiKeyProvider
25-05-24 01:23:32 | ERROR | Could not unlock safe
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gsecrets/unlock_database.py", line 156, in _unlock_callback
database_manager.unlock_finish(result)
File "/usr/lib/python3/dist-packages/gsecrets/database_manager.py", line 123, in unlock_finish
_success, db = result.propagate_value()
^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: secrets: Invalid credentials (1)
I tried resetting all the Secrets settings via dconf-editor, but otherwise haven't done any troubleshooting. Fortunately, no apparent corruption.