Ubuntuone uses stale sso token

Bug #964172 reported by Steve Holmes
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
ubuntuone-control-panel (Ubuntu)
Fix Released
High
Soham Chatterjee

Bug Description

Ubuntu One control panel launches. Sync cannot take place due to authorisation problems. Restarting the sync also fails. Clicking any other link in the GUI causes a hang.

Launching through terminal gives this:

Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/gui/qt/controlpanel.py", line 109, in on_credentials_found
    info = yield self.backend.account_info()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/backend.py", line 108, in inner
    raise e
ubuntu_sso.utils.webclient.common.UnauthorizedError: (PyQt4.QtCore.QString(u'Host requires authentication'), PyQt4.QtCore.QByteArray('Invalid access token: tjBHvqnH47pwT1jM01G4'))

Logging in and out of website makes no difference (same token appears in string).

Looks like the code is supposed to clear the token if its invalid and request a new one, but that isn't happening.

I'd really appreciate a workaround for this if possible. I don't know where the token is stored to clear it manually.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubuntuone-control-panel-qt 2.99.91-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Sat Mar 24 21:45:04 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
SourcePackage: ubuntuone-control-panel
UpgradeStatus: Upgraded to precise on 2012-03-05 (18 days ago)

Revision history for this message
Steve Holmes (bouncysteve) wrote :
Revision history for this message
Roberto Alsina (ralsina) wrote :

Hello, and thanks for taking the time to report this!

We'll look into the bug on monday, but as a workaround, if the control panel is not working, you can start "seahorse" the keyrig manager, and delete Ubuntu One's credentials from there.

Leo Arias (elopio)
Changed in ubuntuone-control-panel (Ubuntu):
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
tags: added: desktop+
Changed in ubuntuone-control-panel (Ubuntu):
status: New → Triaged
Revision history for this message
Jani Uusitalo (uusijani) wrote :

Just for the record, which exact keys should I delete in Seahorse? I'm affected by this after I removed a (misidentified) computer from my U1 account. I tried removing two Desktopcouch keys that were in Seahorse, but that doesn't seem to have made any difference:

jani@ritoru:~/.config/ubuntuone$ ubuntuone-control-panel-qt
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: ubuntuone.platform.tools.linux.IPCError: org.freedesktop.DBus.Error.UnknownMethod:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: ubuntuone.platform.tools.linux.IPCError: org.freedesktop.DBus.Error.UnknownMethod:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/gui/qt/controlpanel.py", line 110, in on_credentials_found
    info = yield self.backend.account_info()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/backend.py", line 101, in inner
    raise e
ubuntu_sso.utils.webclient.common.UnauthorizedError: (u'Host requires authentication', u'Invalid access token: 8Lcg72j5LHkGLjgXCgR7')

Revision history for this message
Jani Uusitalo (uusijani) wrote :

Ah, that would be the "UbuntuOne token for https://ubuntuone.com". Missed it repeatedly among the dozens of website passwords.

Revision history for this message
Jonas (joney) wrote :

I have the same problem, however I don't have any entry in seahorse for a token. Is there any other way to delete an invalid token? I tried also deleting the ubuntuone folders in ~/.cache, ~/.local/share and ~/.config but it was not successful...

Revision history for this message
Jonas (joney) wrote :

Just in case someone is having the same problem: I finally found a solution - I just deleted/renamed the folder ~/.gnome2/keyrings, that did the trick...

Revision history for this message
K7AAY (john-bartley) wrote :

Same problem occurs using Chrome 30 or IE 10 on Windows 7. Need a solution for Windows users.

Revision history for this message
Martin Albisetti (beuno) wrote :

This is on it's way to being fixed.

Changed in ubuntuone-control-panel (Ubuntu):
assignee: Ubuntu One Client Engineering team (ubuntuone-client-engineering) → Natalia Bidart (nataliabidart)
status: Triaged → In Progress
importance: Undecided → High
Revision history for this message
K7AAY (john-bartley) wrote :

Since Ubuntu One is pining for the fjords now, suggest killing this bug report.

Changed in ubuntuone-control-panel (Ubuntu):
status: In Progress → Won't Fix
status: Won't Fix → Fix Released
Changed in ubuntuone-control-panel (Ubuntu):
assignee: Natalia Bidart (nataliabidart) → Soham Chatterjee (chsoham)
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.