Bug 1260401

Summary: Google email account not working in longer running sessions (goa-daemon restart fixes things)
Product: Red Hat Enterprise Linux 7 Reporter: David Jaša <djasa>
Component: gnome-online-accountsAssignee: Debarshi Ray <debarshir>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: abokovoy, adingman, debarshir, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-10 20:22:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1386953    
Bug Blocks:    

Description David Jaša 2015-09-06 12:25:07 UTC
Description of problem:
I usually just suspend the laptop and resume it in different location. Sometimes, google account in evolution doesn't come up again. Executing /usr/libexec/goa-daemon --replace fixes things, restart of evolution* processes does not (thus assigning to g-o-a)

Version-Release number of selected component (if applicable):
gnome-online-accounts-3.14.4-2.el7.x86_64
evolution-3.12.11-15.el7.x86_64
evolution-data-server-3.12.11-23.el7.x86_64

How reproducible:
frequent (but takes time or network changes to hit the bug)

Steps to Reproduce:
1. configure google account in gnome-online-accounts
2. use the desktop in different locations
3.

Actual results:
at some point of time (or network location change), google email account won't come up again (showing red mark at the status icon in Evolution tree view)

Expected results:
google account works seamlessly

Additional info:
what are the debug variables for goa-daemon?

Comment 1 David Jaša 2015-10-01 19:15:38 UTC
So I managed to hit the bug. When the bug happens, goa prints for google accounts this:

(goa-daemon:21913): GoaBackend-DEBUG: Retrieved keyring credentials for id: account_1438345019_2
(goa-daemon:21913): GoaBackend-DEBUG: Refreshing locally cached credentials (expires in -8462 seconds, force_refresh=0)
(goa-daemon:21913): GoaBackend-DEBUG: Retrieved keyring credentials for id: account_1431960086_3
(goa-daemon:21913): GoaBackend-DEBUG: Refreshing locally cached credentials (expires in -10202 seconds, force_refresh=0)


FWIW, most creds refreshes look like this:
(goa-daemon:21913): GoaBackend-DEBUG: Retrieved keyring credentials for id: account_1438345019_2
(goa-daemon:21913): GoaBackend-DEBUG: Returning locally cached credentials (expires in 3090 seconds)
(goa-daemon:21913): GoaBackend-DEBUG: Retrieved keyring credentials for id: account_1431960086_3
(goa-daemon:21913): GoaBackend-DEBUG: Returning locally cached credentials (expires in 1350 seconds)

And these with force refreshes also work:
(goa-daemon:21913): GoaBackend-DEBUG: Retrieved keyring credentials for id: account_1438345019_2
(goa-daemon:21913): GoaBackend-DEBUG: Refreshing locally cached credentials (expires in -8462 seconds, force_refresh=0)
(goa-daemon:21913): GoaBackend-DEBUG: Retrieved keyring credentials for id: account_1431960086_3
(goa-daemon:21913): GoaBackend-DEBUG: Refreshing locally cached credentials (expires in -10202 seconds, force_refresh=0)


So some kind of integer overflow?

Comment 2 Andrew Dingman 2015-12-15 20:47:36 UTC
I see the same behavior on Fedora 23.

Comment 3 Andrew Dingman 2015-12-15 20:56:20 UTC
I think this may be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1259434

Comment 4 Andrew Dingman 2015-12-15 21:16:56 UTC
Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=759515

Comment 6 David Jaša 2016-11-14 18:47:36 UTC
It's been fixed for a year already upstream, could we have a backport for 7.4, please?

Comment 7 Debarshi Ray 2016-11-15 12:35:45 UTC
(In reply to David Jaša from comment #6)
> It's been fixed for a year already upstream, could we have a backport for
> 7.4, please?

Sure. It will be fixed as part of bug 1386953.

Comment 8 Debarshi Ray 2017-03-10 20:22:49 UTC
> what are the debug variables for goa-daemon?

This is now in place:
https://wiki.gnome.org/Projects/GnomeOnlineAccounts/Debugging

(In reply to David Jaša from comment #1)
> So I managed to hit the bug. When the bug happens, goa prints for google
> accounts this:
> 
> (goa-daemon:21913): GoaBackend-DEBUG: Retrieved keyring credentials for id:
> account_1438345019_2
> (goa-daemon:21913): GoaBackend-DEBUG: Refreshing locally cached credentials
> (expires in -8462 seconds, force_refresh=0)
> (goa-daemon:21913): GoaBackend-DEBUG: Retrieved keyring credentials for id:
> account_1431960086_3
> (goa-daemon:21913): GoaBackend-DEBUG: Refreshing locally cached credentials
> (expires in -10202 seconds, force_refresh=0)

These negative time intervals are definitely useful information! Thanks, David.

(In reply to Andrew Dingman from comment #3)
> I think this may be a duplicate of
> https://bugzilla.redhat.com/show_bug.cgi?id=1259434

(In reply to Andrew Dingman from comment #4)
> Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=759515

(In reply to David Jaša from comment #6)
> It's been fixed for a year already upstream, could we have a backport for
> 7.4, please?

If that's indeed the case, then this is a duplicate of 1395728.

If it isn't, then please file another bug, and look for things like negative intervals in the logs.

*** This bug has been marked as a duplicate of bug 1395728 ***