UbuntuOne stuck in an endless authentication loop (always changes to «Authentication failed»)

Bug #437165 reported by Tonnerre LOMBARD
388
This bug affects 80 people
Affects Status Importance Assigned to Milestone
Clipgrab
Invalid
Undecided
Unassigned
Ubuntu One Client
Fix Released
Medium
dobey
Ubuntu One Servers
Fix Released
Medium
Stuart Langridge
ubuntuone-client (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ubuntuone-client

I launch UbuntuOne from the menu, and of course it immediately opens a new tab in my web browser directing towards the «Do you want to add this computer?» page. Then, when I confirm, the UbuntuOne icon in the tray stays normal for some seconds, but changes to «Authentication failed» shortly thereafter. After a moment, a new tab opens, asking me to confirm the addition of the computer again.

One could do this all day long I guess.

ProblemType: Bug
Architecture: i386
Date: Sat Sep 26 14:16:23 2009
DistroRelease: Ubuntu 9.10
Package: ubuntuone-client 0.95.1-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-10.35-generic
SourcePackage: ubuntuone-client
Tags: ubuntu-unr
Uname: Linux 2.6.31-10-generic i686

Revision history for this message
Tonnerre LOMBARD (tonnerre) wrote :
Revision history for this message
Joshua Hoover (joshuahoover) wrote :

Hi Tonnerre, I'm sorry you experienced this problem with authentication. Have you tried since you filed this bug? If you can give an update it is much appreciated. Thank you, Joshua

Changed in ubuntuone-client (Ubuntu):
status: New → Incomplete
Changed in ubuntuone-client:
status: New → Incomplete
Revision history for this message
Tonnerre LOMBARD (tonnerre) wrote :

Salut, Joshua,

Yes, the bug is still existent right in this moment. The only change is that now, instead of a rather random base64 string, it actually displays the correct host name. Still, it is stuck in an endless authentication loop as described.

Tonnerre

Revision history for this message
Joshua Hoover (joshuahoover) wrote :

Hi Tonnerre,

I apologize for the inconvenience this has caused you. Can you please make sure you have all the latest Karmic updates (in particular, ubuntuone-client 1.0) and let me know if this problem persists?

Thank you,

Joshua

Revision history for this message
Tonnerre LOMBARD (tonnerre) wrote :

Dear Joshua,

I have them and the problem persists.

Regards,
Tonnerre

Revision history for this message
Pete24v (pete-martin) wrote :

sounds like i have the same problem too. On a fresh install of Karmic with all updates.

Revision history for this message
palinz (palinz) wrote :

Same problem here. Upgraded to Karmic yesterday and updated right now.
U1 worked well for a day, then, after a system-crash, I'm now in the authentication loop. I tried to remove and reinstall by following https://answers.edge.launchpad.net/ubuntuone-client/+faq/778 without results.

Other detail:
The crash was not related to U1, I guess, but to my old graphic card problems (it happened during a screensaver-preview), but maybe U1 was syncing during crash (?).

Revision history for this message
Matt Griffin (mattgriffin) wrote :

It seems to only put me in this loop after I come out of suspend and restart the client app.

Revision history for this message
Pete24v (pete-martin) wrote :

it's now happening on my 64bit machine, 2 older machines work fine. All on Karmic. The 64bit machine has worked fine since the upgrade from Jaunty

Revision history for this message
Joshua Blount (jblount) wrote :

The only way (so far) that I've been able to recreate this is by *not* putting in my password when the "Unlock Keyring" dialog comes up.

Can anyone confirm that they've seen this and put in their password in the "Unlock Keyring" dialog box when their computer first boots?

Changed in ubuntuone-client (Ubuntu):
status: Incomplete → Confirmed
Changed in ubuntuone-client:
status: Incomplete → Confirmed
tags: added: desktop+
Changed in ubuntuone-client:
importance: Undecided → Medium
Revision history for this message
palinz (palinz) wrote :

I've put my pwd into the "Unlock Keyring" dialog the first time I started U1 and all was working well for the 1st day, until the above mentioned system-crash. Now, from when the bug rise up, even after removing and reinstalling, NO "Unlock Keyring" dialog appears, just the web browser going to the "add this computer" page.

Revision history for this message
palinz (palinz) wrote :

Back home right now, I started U1 and I was redirected to the website for the usual "add this computer"... After logging, I was prompted for "Sign in to Launchpad" and, clicking on "I'm someone else" instead on "Sign In", U1 restarted to work. Now also tomboy sync works again, after resetting from the tomboy sync preference menu and this time "Sign In" was right.

I hope my explanation is understandable, sorry, tired and not EN mothertongue.

Thanks

Rick McBride (rmcbride)
Changed in ubuntuone-client:
importance: Medium → Critical
Revision history for this message
Rick McBride (rmcbride) wrote :
Download full text (3.4 KiB)

The following is turning up in the oauth logs of associated bug reports:

Token was not successfully retrieved: data was '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/oauth/request/">POST&nbsp;/oauth/request/</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>
<address>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 one.ubuntu.com Port 443</address>
</body></html>
'
Got an OAuth error with no message.
Starting Ubuntu One client version 1.0.1
Token was not successfully retrieved: data was '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://one.ubuntu.com/oauth/request/">http://one.ubuntu.com/oauth/request/</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Unable to forward this request at this time.
</STRONG>
</UL>

<P>
This request could not be forwarded to the origin server or to any
parent caches. The most likely cause for this error is that:
<UL>
<LI>The cache administrator does not allow this cache to make
    direct connections to origin servers, and
<LI>All configured parent caches are currently unreachable.
</UL>
<P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>.

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Sun, 18 Oct 2009 21:04:55 GMT by mulberry.canonical.com (squid/2.6.STABLE18)
</ADDRESS>
</BODY></HTML>
'
Got an OAuth error with no message.
Starting Ubuntu One client version 1.0.1
Token was not successfully retrieved: data was '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://one.ubuntu.com/oauth/request/">http://one.ubuntu.com/oauth/request/</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Unable to forward this request at this time.
</STRONG>
</UL>

<P>
This request could not be forwarded to the origin server or to any
parent caches. The most likely cause for this error is that:
<UL>
<LI>The cache administrator does not allow this cache to make
    direct connections to origin servers, and
<LI>All configured par...

Read more...

Revision history for this message
Rick McBride (rmcbride) wrote :

We have two problems here.

1: under some circumstances the oauth dance results in a 502 from the server. This is likely a configuration issue that needs to be fixed, perhaps by adding a cache exception for the /oauth path (thanks, jdo)

2: the http-client code should complain about the HTTP status instead 1) trying to interpret the body of the response, and 2) then trying again. (thanks Chad)

Changed in ubuntuone-client:
assignee: nobody → John Lenton (chipaca)
John Lenton (chipaca)
Changed in ubuntuone-client:
assignee: John Lenton (chipaca) → Rodney Dawes (dobey)
Revision history for this message
dobey (dobey) wrote :

The client code doesn't retry if it fails to get a token. It only retries when syncdaemon tells the applet that auth has failed. If you fail to get a token due to a 50x error on the server or something similar, then you get a somewhat unreadable error dialog full of html, and you will have to click on "Connect" in the applet (or quit/restart it), to attempt getting another token. The error message is unfortunate, but I don't think it's something to consider critical.

All the instances of the bug where the loop does happen seem to be related to errors in the protocol getting misinterpreted as auth errors, for which the applet sees AUTH_FAILED status, and attempts to get a new token, as presumably the current/old one is invalid now. This has already been fixed by Facundo in trunk, and is in the queue to land in an SRU with several other fixes, which I hope to get out this week. Upgrading to the beta PPA packages should resolve this case, so I don't think it should be considered critical either.

If this is reproducable with nightlies/beta PPA packages, and a lot of people are seeing it, then I think we can consider it critical, and in need of another new fix. If it's then only happening in the 1.0.2 package in Karmic still, we need to raise the priority on the packaging bug task for the bug which has already been fixed, and get it in an SRU asap.

Revision history for this message
Michael Krelin (hacker-klever) wrote :

Rodney, the problem persists with 1.1+r283-0ubuntu1~ppa1~karmic. I haven't dig any deeper than what's on the surface, but I do not get visible 50x pages. Server-side errors may occur, of course, during direct oauth communications. u1sync --authorize yields AUTHENTICATION_FAILED. Server errors are easy to verify on the server side, though.

Revision history for this message
dobey (dobey) wrote : Re: [Bug 437165] Re: UbuntuOne stuck in an endless authentication loop (always changes to«Authentication failed»)

On Thu, 03 Dec 2009 20:41:07 -0000
Michael Krelin <email address hidden> wrote:

> Rodney, the problem persists with 1.1+r283-0ubuntu1~ppa1~karmic. I
> haven't dig any deeper than what's on the surface, but I do not get
> visible 50x pages. Server-side errors may occur, of course, during
> direct oauth communications. u1sync --authorize yields
> AUTHENTICATION_FAILED. Server errors are easy to verify on the server
> side, though.
>

Can you please attach your oauth-login.log from when this occurs? The
page isn't visible, but you should see an error dialog with a bunch of
unreadable text that has been ellipsized in it, if you are getting a
50x error from the server, after clicking "Allow this computer," or
when getting the initial request token (which is normally seamless).

Revision history for this message
Michael Krelin (hacker-klever) wrote :

I meant there is nothing hinting on 50x occurance. No dialogs with anything html-like either. Actually, no dialogs at all (except for that in the browser).

dobey (dobey)
Changed in ubuntuone-client:
importance: Critical → Medium
status: Confirmed → Fix Committed
Revision history for this message
dobey (dobey) wrote :

Hi Michael,

I think you might be seeing a new issue perhaps. Can you file a new bug by right clicking on the applet and choosing "Report a Problem" immediately after trying this again? This way we'll have the latest copies of any necessary logs to look through, and we can track your issue there.

Thanks again.

Revision history for this message
Michael Krelin (hacker-klever) wrote :

Rodney, I will, as soon as I restart X - the report will have absolutely no information that I haven't presented here, but will contain huge log of rythmbox's assertions in .xsession-errors. I am not in a hurry to get ubutuone running, I just wanted to help to track it down. So if you're also not in a hurry, clean report will be more useful. Thanks for your time.

Revision history for this message
dobey (dobey) wrote :

Thi sis a dup of bug #450633

Chad Miller (cmiller)
Changed in ubuntuone-servers:
status: New → Confirmed
importance: Undecided → Medium
Chad Miller (cmiller)
Changed in ubuntuone-servers:
assignee: nobody → Stuart Langridge (sil)
Revision history for this message
Flash (cyrille-gordon) wrote :

I've the same problem Ubuntu One don't want authenticate but :
I 've launched Tomboy and i've configured it for synchronizing with my UbuntuOne Account :
The OpenID's authentification process runs normally and the Tomboy Notes are synchronized with my UbuntuOne Account.
But UbuntuOne's Folder won't synchronize and i continue to have an infinite loop on authentication with UbunutOne Client every time i launch UbunutOne Client.

Revision history for this message
Ioannis Vranos (cppdeveloper) wrote :

I had created bug report: https://bugs.launchpad.net/ubuntuone-client/+bug/466632

which has been marked as duplicate with this one.

What I had reported was:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

OS: Ubuntu 9.10 x64.

I have created a free account in Ubuntu one, and I am having only one PC, a laptop. However it prompts me again and again, to add the machine, as if it is a different machine, and now two machines are listed in "Computers on your account".

I have erased one or more such entries previously.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

However since some time ago, I have stopped experiencing this problem, I assume it has been fixed. So I am not sure whether the issue I had, is related to this one.

dobey (dobey)
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
John O'Brien (jdobrien)
Changed in ubuntuone-servers:
status: Confirmed → Fix Released
Changed in ubuntuone-servers:
status: Fix Released → Fix Committed
Changed in ubuntuone-client (Ubuntu):
status: Confirmed → Fix Committed
Changed in clipgrab:
status: New → Fix Committed
dobey (dobey)
Changed in ubuntuone-client (Ubuntu):
status: Fix Committed → Fix Released
Changed in ubuntuone-servers:
status: Fix Committed → Fix Released
Changed in clipgrab:
status: Fix Committed → Invalid
Revision history for this message
Tonnerre LOMBARD (tonnerre) wrote :

Fun fact: even in 13.04, Ubuntu One still isn't working for me, it's stuck at «Getting information, please wait…»

Revision history for this message
Tonnerre LOMBARD (tonnerre) wrote :

Salut,

In the upper right corner I see:

File Sync error. (auth failed (AUTH_FAILED))

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.