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 751788 - Don't mark the absence of a network as failure to get an access token
Don't mark the absence of a network as failure to get an access token
Status: RESOLVED OBSOLETE
Product: gnome-online-accounts
Classification: Core
Component: general
3.16.x
Other All
: Normal normal
: ---
Assigned To: GNOME Online Accounts maintainer(s)
GNOME Online Accounts maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-07-01 15:34 UTC by separent
Modified: 2021-07-05 10:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description separent 2015-07-01 15:34:43 UTC
On openSUSE Tumbleweed, gnome-online-accounts worked fine right after clean install. Now it fails to display in Evolution (mail, contacts and calendar), gnome-calendar, gnome-contacts and Empathy.

The error message apearing in the mail tab of Evolution is the following.

Failed to obtain an access token for « myprivatemail@gmail.com » : Failed to refresh access token (rest-proxy-error-quark, 2): Error resolving 'accounts.google.com': Name or service not known 

Failed to access token (rest-proxy-eror-quark, 2): Error resolving 'accounts.google.com': Name or service not known

Empathy and Contacts return (translated to English from best knowledge):

folks-WARNING **: Error preparing persona store « eds:1435681636.9279.1@linux.site » : Couldn't open address book « 1435681636.9279.1@linux.site » : Could not connect to « Contacts » : Failed to access token for « Contacts » : Failed to refresh access token (rest-proxy-error-quark, 3): Could not connect: Network is unreachable
Comment 1 Debarshi Ray 2015-07-01 15:55:20 UTC
(In reply to separent from comment #0)

You obviously don't have access to the Internet.

> On openSUSE Tumbleweed, gnome-online-accounts worked fine right after clean
> install. Now it fails to display in Evolution (mail, contacts and calendar),
> gnome-calendar, gnome-contacts and Empathy.

Probably because you updated to 3.16.3? I think this is a fall out from the changes in bug 693578 where we try to refresh the credentials at start-up and network changes.

We should figure out a way to denote the "no Internet" situation differently from the "failed to get access token" case.
Comment 2 separent 2015-07-01 17:23:10 UTC
The Internet is connected. I run Gnome 3.16.2.
Comment 3 Debarshi Ray 2015-07-01 17:43:45 UTC
(In reply to separent from comment #0)
> Failed to obtain an access token for « myprivatemail@gmail.com » : Failed to
> refresh access token (rest-proxy-error-quark, 2): Error resolving
> 'accounts.google.com': Name or service not known 
> 
> Failed to access token (rest-proxy-eror-quark, 2): Error resolving
> 'accounts.google.com': Name or service not known

There can be no other reason why it would fail to resolve 'accounts.google.com'.

> (rest-proxy-error-quark, 3): Could not connect: Network is unreachable

Plus this.
Comment 4 Debarshi Ray 2015-07-01 17:45:02 UTC
(In reply to separent from comment #2)
> I run Gnome 3.16.2.

I realized that you might still hit this if you are running 3.16.2.
Comment 5 separent 2015-07-01 18:12:52 UTC
The sync "magically" works now, I can't figure out why (the computer was definitely connected to the Internet). I understand that it is solved for version 3.16.3. I get it may be marked as solved... Thanks!
Comment 6 Ronan Arraes 2016-02-10 00:23:50 UTC
I still have this same problem with GNOME 3.18.

After a fresh start, my computer is not connected to internet, because I'm using Network Manager to connect using WiFi. Thus, after the connection, if I open Evolution, I see the message described in OP. However, if I logout/login, then everything works as expected.

Information about my system
===========================

% rpm -qa | grep evolution 
evolution-data-server-3.18.4-1.1.x86_64
evolution-3.18.4-1.1.x86_64

% rpm -qa | grep online-accounts
gnome-online-accounts-3.18.3-1.2.x86_64

% cat /etc/os-release
NAME=openSUSE
VERSION="Tumbleweed"
VERSION_ID="20160205"
PRETTY_NAME="openSUSE Tumbleweed (20160205) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:20160205"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
ID_LIKE="suse"
Comment 7 Roger Luedecke 2016-03-16 13:26:17 UTC
I've been experiencing this same problem. I read somewhere that it was caused by Evolution checking upon login, and that since Network Manager lags behind that, it leaves Evolution stuck on stupid. Relogging into the desktop session corrected it for me, and it's also supposed to fix after network refresh. 






roger@HomoDevil:~> rpm -qa | grep evolution
evolution-3.16.5-4.8.x86_64
evolution-lang-3.16.5-4.8.noarch
evolution-data-server-devel-3.16.5-4.9.x86_64
evolution-data-server-3.16.5-4.9.x86_64
evolution-data-server-lang-3.16.5-4.9.noarch

roger@HomoDevil:~> rpm -qa | grep online-accounts
gnome-online-accounts-lang-3.16.5-4.2.noarch
gnome-online-accounts-3.16.5-4.2.x86_64
gnome-online-accounts-devel-3.16.5-4.2.x86_64

roger@HomoDevil:~> cat /etc/os-release
NAME="openSUSE Leap"
VERSION="42.1"
VERSION_ID="42.1"
PRETTY_NAME="openSUSE Leap 42.1 (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:42.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"
Comment 8 xdevnull 2016-04-29 04:23:39 UTC
Running latest tumbleweed with gnome 3.20.1 and getting same error. 

goa-daemon --replace usually fixes it but sometimes all is too foobar.  Calendar in top bar also does not populate.
Comment 9 Prateek Saraswat 2016-06-20 11:04:09 UTC
Hi
Im using Ubunti Gnome, shell 3.18.5. I have the same problem
Comment 10 Atri 2016-09-27 14:24:04 UTC
Also with 3.22 now.
Comment 11 Bjørn Lie 2016-09-28 10:02:13 UTC
The reason this shows up so much on openSUSE is most likely that you are using
NetworkManager, with the "connection" set to be a "user" connection.

Change it to be a "System" connection (i.e hit make available for all users in the profile).

This will make it show up less frequently.

The issue with it appearing when internet is not available still stands ofc.

And yes, in an ideal world, goa should retry if it at first gets a error.

I've actually seen that bug if I'm superquick to login and fire up evo before the system connection is complete, so there is a bug in GOA, we just trigger it more on openSUSE
Comment 12 Atri 2016-09-28 14:24:14 UTC
Actually(In reply to Bjørn Lie from comment #11)
> 
> I've actually seen that bug if I'm superquick to login and fire up evo
> before the system connection is complete, so there is a bug in GOA, we just
> trigger it more on openSUSE

Actually, I am set to autologin. Now since I turned autologin off, and started waiting at the gdm screen a bit, I  haven't seen this problem yet. But early days still...

Hopefully a fix comes along so that I can get back to autologin again some time in the future.
Comment 13 Ronan Arraes 2016-09-28 22:17:22 UTC
The true problem happens when you are at, for example, the airport and needs to connect to WiFi, open a browser, and validate the connection. In this case, what am I supposed to do? I just can't use evolution in this scenario. I am also using GNOME 3.22.

Is it possible to change this bug to CONFIRMED?
Comment 14 Atri 2017-03-07 02:35:54 UTC
Still an issue with GNOME 3.23.91. Autologin turned off, nonetheless problem occurs (nearly on every restart). "goa-daemon --replace" usually solves it.
Comment 15 Atri 2017-03-07 02:39:22 UTC
Also see bug 772768
Comment 16 Debarshi Ray 2017-03-08 19:32:38 UTC
(In reply to Atri from comment #14)
> Still an issue with GNOME 3.23.91. Autologin turned off, nonetheless problem
> occurs (nearly on every restart). "goa-daemon --replace" usually solves it.

That's unrelated. Could be bug 764029
Comment 17 David 2018-03-01 20:38:40 UTC
I get the same error with Gnome 3.26.2.
The gmail account added via "online accounts" produces this error and fails to connect.
The other gmail accounts that have been added manually to Evolution work flawlessly. ALl Gmail accounts use "allow less secure apps".
Comment 18 GNOME Infrastructure Team 2021-07-05 10:58:56 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/issues/

Thank you for your understanding and your help.