UbuntuOne control panel can't retrieve credentials

Bug #818339 reported by Andrea Caminiti
74
This bug affects 14 people
Affects Status Importance Assigned to Milestone
ubuntuone-control-panel (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I just began to try Ubuntu 11.10. Everything was fine until i tried to configure my UbuntuOne account. Clicked on the UbuntuOne lens and it loaded ok. But some seconds later a "warning" appeared in the same Ubuntu One Client just over the botton of "More information". and says something like this: "There was a problem while trying to get the credentials".

Everytime i try UbuntuOne i got the same warning. When i try to click the botton "I already have an Account" the UbuntuOne Client Window just goes gray and then normal again.

I will upload an screenshot too.

Regards, Andrea.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ubuntuone-control-panel 1.1.1-0ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-7.8-generic 3.0.0
Uname: Linux 3.0.0-7-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Jul 29 21:00:09 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110723)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=es_MX:es
 LANG=es_MX.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntuone-control-panel
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Andrea Caminiti (nrayever) wrote :
Changed in ubuntuone-control-panel (Ubuntu):
status: New → Confirmed
tags: added: iso-testing
Revision history for this message
GodNobody (godnobody) wrote :

I do know what did it, but i just tried ubuntu one again...and everything looks fine...

Revision history for this message
Per-Inge (per-inge-hallin) wrote : Re: [Bug 818339] Re: UbuntuOne control panel can't retrieve credentials

I updated my installation based on the daily build from 2/8 this morning
and that fixed the problem.

On 08/03/2011 06:19 PM, GodNobody wrote:
> I do know what did it, but i just tried ubuntu one again...and
> everything looks fine...
>

Revision history for this message
robin0800 (robin-linux-hotmail) wrote :

This appears to be due to missing credentials in passwords and encryption looking on laptop the login has credentials.
On this desktop apart for the log in folder there are no credentials.
I guess this explains the ubuntuone error message.

Revision history for this message
Darlan Alves (darlan) wrote :

I've just updated from Maverick to Natty, and as I already used Ubuntu One in Maverick, there was a key saved for it.

To solve the problem, try menu System > Preferences > Password and Encryption Keys. Then, click on the arrow beside a key and seek for a "Ubuntu One" credential. Delete it. Now, open again U1 Control Panel and click Already have account and repeat login process.

Hope it helps.

Revision history for this message
Jono Bacon (jonobacon) wrote :

This is definitely still a big. I just installed a fresh 12.04 machine and I am getting the "can't retrieve credentials" error. When I try to log in, interestingly a new device appears in my Account Settings at one.ubuntu.com, but the U1 Control Panel says "the process did not finish successfully" as well as the red credentials error in the window behind it.

This is a fresh install, so there are no pre-existing keys in seahorse.

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

This may be caused by an update in twisted. We are working on a fix. It may be there in the next release (tomorrow, Jan 3) or the next one (Jan 18).

Revision history for this message
dobey (dobey) wrote :

The bug Jono is talking about is not this one. It is bug #910163.

Revision history for this message
Thorsten Greeb (thorsten-greeb) wrote :

The same problem appears in Natty an still in Oneiric. Will this be fixed in 11.04 and 11.10?

Rodney, why do you think the bug Jono is talking about is #910163?

Revision history for this message
dobey (dobey) wrote :

Thorsten, it is that bug because he was hitting the issue on 12.04 at the time that bug happened.

In fact, this bug should be marked as Incomplete, as there is not enough information about what is happening. If someone who is experiencing this issue on 11.10 can attach the ~/.cache/ubuntuone/log/credentials.log file, we may be able to determine the cause. Thanks.

Changed in ubuntuone-control-panel (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Thorsten Greeb (thorsten-greeb) wrote :
Download full text (4.0 KiB)

Thank you for the clarification, Rodney.

Here comes the cred log file from 11.10. As mentioned above the same error happens on 11.04 but the error message is in controlpanel.log.

12.04 credentials.log (copied from bug #910163):
2011-12-30 17:52:51,785 - ubuntuone.credentials - ERROR - CredentialsManagement: emitting CredentialsError with error_dict dbus.Dictionary({dbus.String(u'error_message'): dbus.String(u'Problem opening the ping_url'), dbus.String(u'detailed_error'): dbus.String(u'Traceback (most recent call last):\n File "/usr/lib/python2.7/dist-packages/ubuntu-sso-client/ubuntu_sso/credentials.py", line 116, in inner\n result = yield f(self, *a, **kw)\n File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1176, in unwindGenerator\n "caught returnValue being used in a non-generator" % (f,))\nTypeError: inlineCallbacks requires <function _ping_url at 0x145d7d0> to produce a generator; insteadcaught returnValue being used in a non-generator\n')}, signature=dbus.Signature('ss')).

11.10 credentials.log:
2012-02-25 19:20:17,359 - ubuntuone.credentials - ERROR - CredentialsManagement: emitting CredentialsError with error_dict dbus.Dictionary({dbus.String(u'error_message'): dbus.String(u'Problem opening the ping_url'), dbus.String(u'detailed_error'): dbus.String(u'Traceback (most recent call last):\n File "/usr/lib/python2.7/dist-packages/ubuntu-sso-client/ubuntu_sso/credentials.py", line 116, in inner\n result = yield f(self, *a, **kw)\n File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator\n return _inlineCallbacks(None, f(*args, **kwargs), Deferred())\n File "/usr/lib/python2.7/dist-packages/ubuntu-sso-client/ubuntu_sso/credentials.py", line 246, in _ping_url\n response = urllib2.urlopen(request)\n File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen\n return _opener.open(url, data, timeout)\n File "/usr/lib/python2.7/urllib2.py", line 394, in open\n response = self._open(req, data)\n File "/usr/lib/python2.7/urllib2.py", line 412, in _open\n \'_open\', req)\n File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain\n result = func(*args)\n File "/usr/lib/python2.7/urllib2.py", line 1209, in https_open\n return self.do_open(httplib.HTTPSConnection, req)\n File "/usr/lib/python2.7/urllib2.py", line 1171, in do_open\n raise URLError(err)\nURLError: <urlopen error [Errno -2] Name or service not known>\n')}, signature=dbus.Signature('ss')).

11.04 controlpanel.log:
2012-02-26 18:18:42,141 - ubuntuone.controlpanel.gtk.gui - ERROR - on_credentials_error: args (<OverviewPanel object at 0x312d4b0 (ubuntuone+controlpanel+gtk+gui+OverviewPanel at 0x3185240)>, dbus.String(u'Ubuntu One'), dbus.Dictionary({dbus.String(u'error_message'): dbus.String(u'Problem opening the ping_url'), dbus.String(u'detailed_error'): dbus.String(u'Traceback (most recent call last):\n File "/usr/lib/pymodules/python2.7/ubuntu_sso/credentials.py", line 118, in inner\n result = yield f(self, *a, **kw)\n File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator\n return _inlineCallbacks(None, f(*args, **kwargs)...

Read more...

Revision history for this message
dobey (dobey) wrote :

Thorsten, those log messages you posted as from 11.04 and 11.10, point to your DNS not working correctly. It seems your system is unable to resolve a host name being used by the service; probably one.ubuntu.com. What does running "nslookup one.ubuntu.com" in a terminal give you as a result?

Revision history for this message
Thorsten Greeb (thorsten-greeb) wrote :

Running "host one.ubuntu.com" gives me

one.ubuntu.com has address 91.189.89.218
one.ubuntu.com has address 91.189.89.219

I currently use the u1 web site to log in to u1 and never had problems with this. So I don't thing it's a DNS issue. At least not as long as "one.ubuntu.com" is used as host name.

Revision history for this message
dobey (dobey) wrote :

Thorsten, the log messages clearly point at a DNS issue though "Name or service not known." This is happening when opening the ping url, which is at https://one.ubuntu.com/

Revision history for this message
Thorsten Greeb (thorsten-greeb) wrote :

Sorry for the late response, I was very busy the last weeks. Meanwhile, I've figured out what was the problem. It definitely was not a DNS issue - it was a proxy(!) issue.

On both machines there was no proxy configuration in the per-user settings, but the was a proxy configured in the system wide settings! This caused the SSO client to fail.

So I think this bug report could probably be closed.

Revision history for this message
Leo Arias (elopio) wrote :

Thanks Thorsten. I'll close the bug. Please let us know if you have any other issues.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Leo Arias (elopio) wrote :

Oh, you were not the original reporter. Lets wait to see if his problem can be solved the same way.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntuone-control-panel (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntuone-control-panel (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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