After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 660932 - Silently fails to renew credentials if refresh_account fails
Silently fails to renew credentials if refresh_account fails
Status: RESOLVED FIXED
Product: gnome-online-accounts
Classification: Core
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Online Accounts maintainer(s)
GNOME Online Accounts maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-10-04 21:07 UTC by Phil Wheeler
Modified: 2012-10-05 15:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Phil Wheeler 2011-10-04 21:07:59 UTC
I  have 2 google apps accounts configured in online-accounts for mail, calendar and contacts (the second also has chat enabled).  

Integration of these accounts has been working well.  On logging in this evening I was informed that "Online accounts need your attention". 

The accounts configuration window informs me that my credentials have expired with "Expired credentials. Please log in again" - to the left of this is a log in button which I assume would be for re-authorising these accounts. Clicking on this button for either account does nothing. 

OS: Arch Linux x86_86

gnome-online-accounts 3.2.0.1

I'm unsure how to debug this further, if you need any further info please let me know.
Comment 1 Phil Wheeler 2011-10-05 16:37:59 UTC
OK.  Rather embarassingly I've managed to solve my own problem.

My system time had been reset (incorrectly) by windows to a time in the future...as mentioned in another thread this will cause authentication to fail.

Correcting my system time solved the problem.

I suppose this makes the bug report invalid...or at the very least the title is misleading.  On the other hand I suppose it would be better if the user was informed more explicately of such a failure (assuming this is possible) as the current behaviour is just to silently fail when the user attempts to click "Log in" to reauthenticate.
Comment 2 D.S. (Spider) Ljungmark 2011-11-14 17:12:00 UTC
Not solved here, time is set correctly, and every time I (attempt) to log on to my computer I'm locked out of my online account. This _also_ appears to disable the account for chat in empathy, as well as seemingly blocks empathy from doing _anything_ useful online.
Comment 3 Debarshi Ray 2012-04-16 22:33:46 UTC
Which button are you talking about here?

There is an "Open Online Accounts" button in the notification when the credentials don't work, and inside the control center panel there is a "Log in" button.

The first one is known not to work due to a Glib bug:
https://bugzilla.gnome.org/show_bug.cgi?id=672786
Comment 4 Will Thompson 2012-07-25 08:40:56 UTC
For what it's worth, for me the “Log in” button beside “Expired credentials. Please log in again.” in Settings → Online Accounts does pop the Google login web pages back up, but authenticating and then granting GNOME access to everything (including Google Docs thrice, for some reason) appears to be ineffective: the popover dialog disappears, but GOA still shows the “Expired credentials.” notice.

However, killing the GOA daemon and letting it respawn seems to make the notice go away.

(I'm using Debian's 3.4.2-1 package.)
Comment 5 Debarshi Ray 2012-10-04 16:05:01 UTC
Will, I think you are interested in bug 681727
Comment 6 Debarshi Ray 2012-10-05 15:42:31 UTC
(In reply to comment #2)
> Not solved here, time is set correctly, and every time I (attempt) to log on to
> my computer I'm locked out of my online account. This _also_ appears to disable
> the account for chat in empathy, as well as seemingly blocks empathy from doing
> _anything_ useful online.

Spider, I think you are seeing the same problem as Will. See bug 681727
Comment 7 Debarshi Ray 2012-10-05 15:49:43 UTC
Fixed in gnome-3-6 & master.

commit 902b67afdff6ef787382e84a0bbf9e92f10b585b
Author: Debarshi Ray <debarshir@gnome.org>
Date:   Fri Oct 5 16:44:00 2012 +0200

    Make sure that FALSE is returned if refresh_account failed
    
    Fixes: https://bugzilla.gnome.org/660932