Keyring locked

Asked by Greg A

I'm using the PPA, version 10.10.4 is installed.

Whenever I startup Gmailwatcher it "doesn't work". I believe this is because my keyring is not unlocked, as I have autologin enabled.

Starting from a terminal gives me the following (Appears similar to #611963):

** Message: secret service operation failed: Cannot get secret of a locked object
Keyring locked, waiting.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.6/gmailwatcher/gmail.py", line 59, in check
    user,passwd,folders,display_name = (account[0],account[1]['password'],account[1]['folders'],account[1].get('display_name',account[0]))
KeyError: 'password'

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.6/gmailwatcher/gmail.py", line 59, in check
    user,passwd,folders,display_name = (account[0],account[1]['password'],account[1]['folders'],account[1].get('display_name',account[0]))
KeyError: 'password'

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.6/gmailwatcher/gmail.py", line 59, in check
    user,passwd,folders,display_name = (account[0],account[1]['password'],account[1]['folders'],account[1].get('display_name',account[0]))
KeyError: 'password'

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.6/gmailwatcher/gmail.py", line 59, in check
    user,passwd,folders,display_name = (account[0],account[1]['password'],account[1]['folders'],account[1].get('display_name',account[0]))
KeyError: 'password'

^AException in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.6/gmailwatcher/gmail.py", line 59, in check
    user,passwd,folders,display_name = (account[0],account[1]['password'],account[1]['folders'],account[1].get('display_name',account[0]))
KeyError: 'password'

Exception in thread Thread-6:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.6/gmailwatcher/gmail.py", line 59, in check
    user,passwd,folders,display_name = (account[0],account[1]['password'],account[1]['folders'],account[1].get('display_name',account[0]))
KeyError: 'password'

Question information

Language:
English Edit question
Status:
Answered
For:
Gmail Watcher Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #661319.

This question was reopened

Revision history for this message
Owais Lone (loneowais) said :
#1

You can tell gmailwatcher to Not use keyring. You're password will not be stored in plain text.

Revision history for this message
Owais Lone (loneowais) said :
#2

Might help others.

Revision history for this message
Greg A (etulfetulf) said :
#3

Having changed gmailwatcher not to use the keyring the program crashes on startup:

** Message: secret service operation failed: Cannot get secret of a locked object
Traceback (most recent call last):
  File "/usr/bin/gmailwatcher", line 266, in <module>
    window.check()
  File "/usr/bin/gmailwatcher", line 216, in check
    shared.watcher = gmail.Watcher()
  File "/usr/lib/pymodules/python2.6/gmailwatcher/gmail.py", line 47, in __init__
    notify(_('Password Error'),_('Could not retrive password for %')%A,'error')
ValueError: incomplete format

Revision history for this message
Owais Lone (loneowais) said :
#4

OMG, that is a typo. Fixing now.

PS, you might have to re-enter your password after changing settings.

Revision history for this message
Greg A (etulfetulf) said :
#5

Thank you for the very speedy fix!
Nope it worked without password changing. :)

Revision history for this message
Greg A (etulfetulf) said :
#6

Thanks Owais Lone, that solved my question.

Revision history for this message
Greg A (etulfetulf) said :
#7

Oh. The application now crashes (but by no means immediately) with:

**
ERROR:gkr-operation.c:401:gkr_operation_block_and_unref: assertion failed: (op->pending != pending)
Aborted

Revision history for this message
Owais Lone (loneowais) said :
#8

There is already an open bug related to this.
https://bugs.launchpad.net/gmailwatcher/+bug/658576

Can you help with this problem?

Provide an answer of your own, or ask Greg A for more information if necessary.

To post a message you must log in.