Ubuntu one won't launch, ubuntuone-preferences crashes "gnomekeyring.BadArgumentsError"

Bug #651088 reported by Julien Negros
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Confirmed
Undecided
Unassigned

Bug Description

On 10.04.1, rather fresh install (two weeks)
ubuntuone-client 1.2.2-0ubuntu2

Worked first but without changing anything in config files, on morning Ubuntu one won't launch at all, and starting ubuntuone-preferences in terminal output :

Traceback (most recent call last):
  File "/usr/bin/ubuntuone-preferences", line 1143, in <module>
    prefs_dialog = UbuntuOneDialog()
  File "/usr/bin/ubuntuone-preferences", line 535, in __init__
    self.__construct()
  File "/usr/bin/ubuntuone-preferences", line 975, in __construct
    self.devices.list_devices()
  File "/usr/bin/ubuntuone-preferences", line 377, in list_devices
    token = get_access_token(self.keyring)
  File "/usr/bin/ubuntuone-preferences", line 124, in get_access_token
    'oauth-consumer-key': 'ubuntuone'})
gnomekeyring.BadArgumentsError

I tried reinstalling, removing config files... The bug occurs everytime. No trace of anything like it in google, hope I'm not the only one...
syncdaemon's log attached.

Revision history for this message
Julien Negros (djiock) wrote :
Revision history for this message
Duane Hinnen (duanedesign) wrote :

Julien,
Could you please run the following command in a Terminal and post the results. This will be the version of gnome-keyring on your computer.

apt-cache policy gnome-keyring

thank you,
duanedesign

dobey (dobey)
Changed in ubuntuone-client:
status: New → Incomplete
Revision history for this message
Julien Negros (djiock) wrote :

Here it is. Hope the French is not a problem :)

gnome-keyring:
  Installé : 2.92.92.is.2.30.3-0ubuntu1.1
  Candidat : 2.92.92.is.2.30.3-0ubuntu1.1
 Table de version :
 *** 2.92.92.is.2.30.3-0ubuntu1.1 0
        500 http://fr.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     2.92.92.is.2.30.0-0ubuntu3 0
        500 http://fr.archive.ubuntu.com/ubuntu/ lucid/main Packages

Revision history for this message
Mathieu Marquer (slasher-fun) wrote :

Reported on http://forum.ubuntu-fr.org/viewtopic.php?id=431438 with Ubuntu 10.04.1 as well.

Changed in ubuntuone-client:
status: Incomplete → Confirmed
Revision history for this message
Rafael Raposo (rafaelmr2) wrote :

I have the same problem when try to open

"ubuntuone-preferences" :
=======================

Traceback (most recent call last):
  File "/usr/bin/ubuntuone-preferences", line 65, in <module>
    from desktopcouch.replication_services import ubuntuone as dcouch
  File "/usr/lib/python2.6/dist-packages/desktopcouch/__init__.py", line 26, in <module>
    from desktopcouch import local_files
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 298, in <module>
    xdg_base_dirs.save_config_path("desktop-couch"))
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 238, in __init__
    self.configuration = _Configuration(self)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 92, in __init__
    {'desktopcouch': 'basic'})
gnomekeyring.BadArgumentsError

or "gwibber" :
============

** (gwibber:14410): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber:14410): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber:14410): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 47, in <module>
    from gwibber.microblog.util import log
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/util/__init__.py", line 5, in <module>
    from couch import RecordMonitor
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/util/couch.py", line 4, in <module>
    import desktopcouch, pycurl, oauth, threading, urllib, re, json
  File "/usr/lib/python2.6/dist-packages/desktopcouch/__init__.py", line 26, in <module>
    from desktopcouch import local_files
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 298, in <module>
    xdg_base_dirs.save_config_path("desktop-couch"))
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 238, in __init__
    self.configuration = _Configuration(self)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 92, in __init__
    {'desktopcouch': 'basic'})
gnomekeyring.BadArgumentsError

Revision history for this message
Hector Saint-Prix (tots) wrote :

To recover from this situation, you can erase/move the "by_default" key collection Gwibber creates through the keyring manager of Gnome.
It is found in the ~/.gnome2/keyrings/ directory.
Mine was broken, no way to edit or change password from the seahorse app, and it's still broken afterward once recreated by gwibber; but at least gwibber starts again.
The "Add" button for the twitter registration still is not showing itself after the login from twitter is done successfully. I cannot add a twitter account to the list still.
So Gwibber is back, but still not functional with Twitter.

Revision history for this message
Rafael Raposo (rafaelmr2) wrote :

Hector,

It works!! I move the directory ~/.gnome2/keyrings/ to ~/.gnome2/keyrings.old and reboot, and now I can open both Gwibber and UbuntuOne.

Thanks.

Revision history for this message
Rafael Raposo (rafaelmr2) wrote :

On second time I open ubuntuone-preferences the error returns :

Traceback (most recent call last):
  File "/usr/bin/ubuntuone-preferences", line 1143, in <module>
    prefs_dialog = UbuntuOneDialog()
  File "/usr/bin/ubuntuone-preferences", line 535, in __init__
    self.__construct()
  File "/usr/bin/ubuntuone-preferences", line 975, in __construct
    self.devices.list_devices()
  File "/usr/bin/ubuntuone-preferences", line 377, in list_devices
    token = get_access_token(self.keyring)
  File "/usr/bin/ubuntuone-preferences", line 124, in get_access_token
    'oauth-consumer-key': 'ubuntuone'})
gnomekeyring.BadArgumentsError

Revision history for this message
dashaus (cierkonski) wrote :

Recently I've lost access to Ubuntu One through my Ubuntu 10.04.02. Terminal output looks very much the same as in Julien's case:

ubuntuone-preferences
Traceback (most recent call last):
  File "/usr/bin/ubuntuone-preferences", line 1143, in <module>
    prefs_dialog = UbuntuOneDialog()
  File "/usr/bin/ubuntuone-preferences", line 535, in __init__
    self.__construct()
  File "/usr/bin/ubuntuone-preferences", line 975, in __construct
    self.devices.list_devices()
  File "/usr/bin/ubuntuone-preferences", line 377, in list_devices
    token = get_access_token(self.keyring)
  File "/usr/bin/ubuntuone-preferences", line 124, in get_access_token
    'oauth-consumer-key': 'ubuntuone'})
gnomekeyring.BadArgumentsError

Hector's work around seemed to do the trick and ubuntu one preferences windows appeared but unfortunately I didn't manage to synchronize:

ubuntuone-preferences
Removing stale, deceptive pid file.
Apache CouchDB has started, time to relax.
Browse your desktop CouchDB at file:///home/mc/.local/share/desktop-couch/couchdb.html
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/bin/ubuntuone-preferences", line 1084, in got_newcredentials
    self.present()
  File "/usr/bin/ubuntuone-preferences", line 1075, in present
    self.dialog.request_quota_info()
  File "/usr/bin/ubuntuone-preferences", line 687, in request_quota_info
    callback=self.got_quota_info)
  File "/usr/bin/ubuntuone-preferences", line 170, in make_rest_request
    token = get_access_token(keyring)
  File "/usr/bin/ubuntuone-preferences", line 124, in get_access_token
    'oauth-consumer-key': 'ubuntuone'})
BadArgumentsError
ERROR:ubuntuone-preferences:Invalid request token: ML9......................................
ERROR:ubuntuone-preferences:Uwierzytelnienie się nie powiodło.
ERROR:ubuntuone-preferences:Invalid request token: ML9......................................
ERROR:ubuntuone-preferences:Uwierzytelnienie się nie powiodło.
ERROR:ubuntuone-preferences:[Failure instance: Traceback (failure with no frames): <class 'dbus.exceptions.DBusException'>: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/dbus_interface.py", line 1313, in get_info
    mdobj = self.fs.get_by_path(path.encode('utf-8'))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/filesystem_manager.py", line 550, in get_by_path
    mdid = self._idx_path[path]
KeyError: '/home/mc/.ubuntuone/Purchased from Ubuntu One'

]

Bilal Shahid (s9iper1)
no longer affects: gwibber
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.