GNOME Bugzilla – Bug 751788
Don't mark the absence of a network as failure to get an access token
Last modified: 2021-07-05 10:58:56 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
(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.
The Internet is connected. I run Gnome 3.16.2.
(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.
(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.
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!
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"
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"
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.
Hi Im using Ubunti Gnome, shell 3.18.5. I have the same problem
Also with 3.22 now.
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
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.
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?
Still an issue with GNOME 3.23.91. Autologin turned off, nonetheless problem occurs (nearly on every restart). "goa-daemon --replace" usually solves it.
Also see bug 772768
(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
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".
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.