Comment 4 for bug 1289510

Revision history for this message
Jason Kendall (coolacid) wrote :

I can confirm this.

Then adding an account with a locked keyring I would get this stack trace.

Polly 0.93.11 (pre-alpha 3.11)
Copyright (C) 2011-2014 Marcelo Hashimoto
cache path: /home/jakendall/.cache/polly
config path: /home/jakendall/.config/polly
data home: /home/jakendall/.local/share/polly
initializing... done
Xlib: extension "RANDR" missing on display ":0.0".
Xlib: extension "RANDR" missing on display ":0.0".
Created new window in existing browser session.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/polly/external/keyring/core.py", line 42, in set_password
    _keyring_backend.set_password(service_name, username, password)
  File "/usr/lib/python2.7/dist-packages/polly/external/keyring/backend.py", line 234, in set_password
    True)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Secret.Error.IsLocked: Cannot create an item in a locked collection

Using seahorse did not unlock the keyring for me.

I finally had to unlock it using the following python code:

$ python
>>> import gnomekeyring
>>> gnomekeyring.unlock_sync(None, 'mypassword');