ubuntuone-client-applet crashed with AttributeError in from_token_and_callback()

Bug #423383 reported by Paul Larson
This bug affects 276 people
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Confirmed
Undecided
dobey
ubuntuone-client (Ubuntu)
Confirmed
High
Ken VanDine
Karmic
Confirmed
High
Ken VanDine

Bug Description

Binary package hint: ubuntuone-client

Didn't do anything other than launch the ubuntu one client. The notification area icon came up, and about 10 seconds later or so, I got the report from apport about the crash. Never got a window asking me to login or anything.

ProblemType: Crash
Architecture: i386
Date: Wed Sep 2 14:32:20 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/ubuntuone-client-applet
InterpreterPath: /usr/bin/python2.6
LiveMediaBuild: Ubuntu-Netbook-Remix 9.10 "Karmic Koala" - Alpha i386 (20090902.1)
Package: ubuntuone-client-gnome 0.94.0-0ubuntu1
ProcCmdline: /usr/bin/python /usr/bin/hostnameone-client-applet
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-9.29-generic
PythonArgs: ['/usr/bin/hostnameone-client-applet']
SourcePackage: ubuntuone-client
Tags: ubuntu-unr
Title: ubuntuone-client-applet crashed with AttributeError in from_token_and_callback()
Uname: Linux 2.6.31-9-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Paul Larson (pwlars) wrote :
tags: removed: need-duplicate-check
Paul Larson (pwlars)
visibility: private → public
Revision history for this message
James Tatum (jtatum) wrote :

Out of curiosity, is your time and time zone set correctly? Anything unusual about networking or networking responsiveness?

Revision history for this message
Paul Larson (pwlars) wrote :

Time would have been correct, on time zone, I probably took the default at install (EDT) which is one time zone to the east of me.

tags: removed: ubuntu-unr
Revision history for this message
James Tatum (jtatum) wrote :

Correctly setting my time and timezone resolved the issue for me. Seems like this crash is caused by the time being wrong.

Changed in ubuntuone-client:
status: New → Confirmed
James Tatum (jtatum)
Changed in ubuntuone-client (Ubuntu):
status: New → Confirmed
Revision history for this message
Adam Stark (adstark1982) wrote :

I'm getting the same problem, and my time is set correctly. Or if it is wrong, it's very minutely wrong.

Revision history for this message
James Tatum (jtatum) wrote :

Hi Adam,

As mentioned, time zone will also cause this. You may want to enable ntp or use ntpdate to set your time which would eliminate any possible time skew errors.

Revision history for this message
Daniel Lee (longinus00) wrote :

I have the same crash and it's definitely not any time related issue (unless a skew of 30 milliseconds is too much for ubuntuone to handle).

$ sudo ntpdate ntp.ubuntu.com pool.ntp.org
 9 Sep 17:04:02 ntpdate[7788]: adjust time server 207.171.30.106 offset 0.034221 sec
$ ubuntuone-client-applet
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 576, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 241, in got_state
    self.acquire_access_token(description, store)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 307, in acquire_access_token
    callback=callback_url)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/storageprotocol/oauth.py", line 286, in from_token_and_callback
    parameters['oauth_token'] = token.key
AttributeError: 'NoneType' object has no attribute 'key'

Revision history for this message
Daniel Lee (longinus00) wrote :
Revision history for this message
James Tatum (jtatum) wrote :

Hi Daniel,

The issue experienced by myself and the original reporter comes down to this line in oauth-login.log:
2009-09-02 14:32:20,121:121.788024902 UbuntuOne.OAuthDesktop.auth Token was not successfully retrieved: data was 'Expired timestamp: given 1251901938 and now 1251919935 has a greater difference than threshold 300'

The oauth-login.log you attached contains:
2009-09-09 17:04:12,080:80.7619094849 UbuntuOne.OAuthDesktop.auth Token was not successfully retrieved: data was '
Moved Permanently

The document has moved here.

Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.8 OpenSSL/0.9.8g Server at ubuntuone.com Port 443

I believe you are experiencing the issue reported in bug 426804. They are working on updated client packages to resolve that issue.

Revision history for this message
Vidar Waagbø (waagbo) wrote :

I just received the bug in the AMD64 release of Ubuntu 9.10.

Revision history for this message
Nicolas_Raoul (nicolas-raoul) wrote :

I just learnt about Ubuntu One an hour ago and decided to install it.
I followed the instructions at https://one.ubuntu.com/support/installation/

The ubuntuone-client-gnome installation did not work well, a "apturl" process was still running 10 minutes later and I had to kill it. It removed the installed packages and typed: sudo apt-get install ubuntuone-client-gnome which worked this time.

Now when I launch ubuntuone-client-applet I immediately get this trace:
  File "/var/lib/python-support/python2.6/dbus/connection.py", line 578, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 251, in got_state
    self.acquire_access_token(description, store)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 317, in acquire_access_token
    callback=callback_url)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/storageprotocol/oauth.py", line 286, in from_token_and_callback
    parameters['oauth_token'] = token.key
AttributeError: 'NoneType' object has no attribute 'key'

But it is not crashing the process. The tray icon shows X and when I click on "Connect", nothing seems to happen.
When I add a file in the Ubuntu One folder, a notification pretends to sync it, but in fact the files do not make it to the server.

Revision history for this message
Matteo Settenvini (tchernobog) wrote :

I can confirm this not being due to a time drift. My timezone and time are set correctly, and even after ntpdate did correct my settings (of 0,004s), apport shows the crash dialog every time I start the applet (which of course never connects).

Revision history for this message
Klaus Doblmann (moviemaniac) wrote :

Same problem here, time and time zones are correct.

Revision history for this message
James Tatum (jtatum) wrote :

Greetings new reporters! If you think you are experiencing the same problem, please post your ~/.cache/ubuntuone/log/oauth-login.log. It is likely you are actually experiencing bug 426804, which looks like the same exception to apport but has a much different cause. Thanks :)

Revision history for this message
dobey (dobey) wrote : Re: [Bug 423383] Re: ubuntuone-client-applet crashed with AttributeError in from_token_and_callback()

On Thu, 2009-09-17 at 16:54 +0000, James Tatum wrote:
> Greetings new reporters! If you think you are experiencing the same
> problem, please post your ~/.cache/ubuntuone/log/oauth-login.log. It is
> likely you are actually experiencing bug 426804, which looks like the
> same exception to apport but has a much different cause. Thanks :)

I think you mean bug 426622. It seems to be the most common report with
this error currently. :)

Revision history for this message
Detlef Lechner (detlef-lechner) wrote :

I pressed GNOME > Applications > Internet > Ubuntu One. Immediately Apport interfered and I could not read an error message on the Desktop. But an Icon rose in the upper panel showin g the Ubuntu logo together with a white X in a small red square to the lower right.
'~$ uname -a; Linux T43 2.6.31-11-generic #38-Ubuntu SMP Fri Oct 2 11:55:55 UTC 2009 i686 GNU/Linux'

Revision history for this message
Detlef Lechner (detlef-lechner) wrote :
Revision history for this message
Detlef Lechner (detlef-lechner) wrote :
Revision history for this message
dobey (dobey) wrote :

Hi Detlef. It looks like you were having a separate issue. Looks like there was a problem with the server, in your case. Can you please file a separate bug? Thanks.

Revision history for this message
dobey (dobey) wrote :

Detlef, it looks like you were seeing bug #442794 which apport marked a dup of this one (and I just un-marked as such).

Revision history for this message
Detlef Lechner (detlef-lechner) wrote :

Rodney,
Right. What do you want me to do now? Be a bit more verbose, please.

Revision history for this message
dobey (dobey) wrote :

Detlef,
You can subscribe to that bug or click on the "Does this bug affect
you?" link on #442794 to denote such. And carry any conversation about
that issue over to that bug, instead of having it here. Thanks.

On Mon, 2009-10-05 at 15:22 +0000, Detlef Lechner wrote:
> Rodney,
> Right. What do you want me to do now? Be a bit more verbose, please.
>

Revision history for this message
Scott Evans (vk7hse) wrote :

also affecting amd64

2.6.31-14-generic #47-Ubuntu SMP Thu Oct 15 03:42:30 UTC 2009 x86_64 GNU/Linux

$ ubuntuone-client-applet --version
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 576, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 276, in got_state
    self.acquire_access_token(description, store)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 341, in acquire_access_token
    token=self.request_token)
  File "/usr/lib/python2.6/dist-packages/oauth/oauth.py", line 339, in from_token_and_callback
    parameters['oauth_token'] = token.key
AttributeError: 'NoneType' object has no attribute 'key'

when attempting to launch U1 I get the following (see Screenshot-Ubuntu One: Error.png) I've also recently removed authorised PC's to my account and now unable to re add then :(

Revision history for this message
ThGravo (even-more-spam-for-me) wrote :

Got this, too. But i think it's not due to time skew, but is caused by the client not being able to connect at all. I'm on a open network, which requires login via a web-interface. Since NetworkManager is connecting automatically and ubuntuone-client-applet is the first application trying to connect to the web, it gets the login-screen, which it obviously can't handle. Logging in to u-one after correct login via the web-front-end worked right away.

Revision history for this message
ThGravo (even-more-spam-for-me) wrote :

Got this, too. But i think it's not due to time skew, but is caused by the client not being able to connect at all. I'm on a open network, which requires login via a web-interface. Since NetworkManager is connecting automatically and ubuntuone-client-applet is the first application trying to connect to the web, it gets the login-screen, which it obviously can't handle. Logging in to u-one after correct login via the web-front-end worked right away.

Revision history for this message
Matthew Horr (matthorr) wrote :

I am having similar issues. On wake from suspend, the UbuntuOne icon showed an exclamation point inside a circle of two arrows. A window appeared telling me UbuntuOne had crashed. Clicking (left or right) on the icon did nothing. After opening the UbuntuOne folder window, I clicked on Connect and the icon changed to an exclamation point inside a cloud, but still no connection. My time zone is correct with time synced to the time server. I'm using the latest version of ubuntuone-client (1.0.2-0ubuntu1)

Revision history for this message
federico.biasibetti (biasibo) wrote :

Same bug here, on desktop version (32bit). Ubuntu one crashes often when I run update manager, and get connection errors.
(And, by the way, the icon always shows an exclamation mark when I boot. it only goes away if I do something with it, like connect or modify my ubuntu one folder)

Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Loïc Minier (lool) wrote :

I get this booting the UNR RC ISO under VirtualBox with working network and ntpdated clock.

Changed in ubuntuone-client (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-9.10
Revision history for this message
Loïc Minier (lool) wrote :

Because Ubuntu One makes it apparition on the Favorites screen of UNR, I am raising the visibility of this bug; I think it gives a bad first encounter with U1.

Kees Cook (kees)
Changed in ubuntuone-client (Ubuntu Karmic):
milestone: none → ubuntu-9.10
Martin Pitt (pitti)
Changed in ubuntuone-client:
assignee: nobody → Rodney Dawes (dobey)
Changed in ubuntuone-client (Ubuntu Karmic):
assignee: nobody → Ken VanDine (ken-vandine)
Revision history for this message
Martin Pitt (pitti) wrote :

<dobey> pitti: it's a server "semi-issue"
<pitti> dobey: ok, so can be fixed independently from the u1 package? good
<dobey> pitti: it's a timeout threshold setting in python-oauth in the OAuthServer class, that gets compared against

So I think that means that this can be fixed/worked around on the server side. Unmarked as release blocker. Please put it back with an explanation if this is wrong. Thanks!

Changed in ubuntuone-client (Ubuntu Karmic):
milestone: ubuntu-9.10 → none
dobey (dobey)
affects: ubuntuone-client → ubuntuone-servers
Revision history for this message
aliander (aliander) wrote :

Had the same issue after I updated to 9.10 and had my first try with UbuntuOne
after setting the timezone (well, put it from Germany/Berlin to a more accurate Austria/Vienna) and setting up NTP with a near server pool it seems to work...

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.