"GDBus.Error:com.google.code.AccountsSSO.SingleSignOn.Error.NoConnection: Host accounts.google.com not found" while network available

Bug #1349983 reported by Lucio Torre
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
signon (Ubuntu)
Confirmed
High
Alberto Mardegan

Bug Description

While calling signon_auth_session_new from accounts-polld i kept getting
 2014/07/28 19:26:05 Account 2 failed to authenticate: GDBus.Error:com.google.code.AccountsSSO.SingleSignOn.Error.NoConnection: Host accounts.google.com not found

But network was available. Error was not transient as this call was repeated every 5 minutes for a long time and network on the phone was available (tested browser and scopes).

Tested on:
$ system-image-cli -i
current build number: 154
device name: mako
channel: ubuntu-touch/devel-proposed
alias: ubuntu-touch/utopic-proposed
last update: 2014-07-28 15:59:27
version version: 154
version ubuntu: 20140728
version device: 20140725.1

Revision history for this message
David Barth (dbarth) wrote :

Quick feedback on the error.

1st it appears as a network error. Either because a DNS lookup failed (accounts.google.com) or because somehow the plugin checked some erroneous NetworkManager API telling it the network was done.

It seems you end up on line 163 in base-plugin.cpp of the OAuth2 module:
http://bazaar.launchpad.net/~online-accounts/signon-plugin-oauth2/trunk/view/head:/src/base-plugin.cpp#L163

And that could be due to that NetworkManager interface getting confused.

Can you verify with the nm tools and see what NM reports?

Revision history for this message
David Barth (dbarth) wrote :

This also seems to be another aspect of this bug: https://bugs.launchpad.net/account-plugins/+bug/1349975

David Barth (dbarth)
Changed in signon (Ubuntu):
importance: Undecided → High
status: New → Incomplete
tags: added: rtm14
Revision history for this message
Lucio Torre (lucio.torre) wrote :

Getting this now. Some debug data:

phablet@ubuntu-phablet:/var/log$ nmcli nm
RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running connected enabled enabled enabled disabled
phablet@ubuntu-phablet:/var/log$ nmcli d
DEVICE TYPE STATE
wlan0 802-11-wireless connected
/ril_0 gsm disconnected

$ ping accounts.google.com
PING accounts.l.google.com (74.125.131.84) 56(84) bytes of data.
64 bytes from vc-in-f84.1e100.net (74.125.131.84): icmp_seq=1 ttl=43 time=205 ms
^C

$ tail -f ./.cache/upstart/account-polld.log
[...]
2014/08/04 20:25:33 Account 2 failed to authenticate: GDBus.Error:com.google.code.AccountsSSO.SingleSignOn.Error.NoConnection: Host accounts.google.com not found
[...]

Revision history for this message
Lucio Torre (lucio.torre) wrote :

Ive been unable to authenticate to google at all during today, but facebook and twitter work without issues

Changed in signon (Ubuntu):
status: Incomplete → New
Revision history for this message
Lucio Torre (lucio.torre) wrote :

olli has the same issue

Changed in signon (Ubuntu):
status: New → Confirmed
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

I have the same issue and I can ping accounts.google.com

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

I WORKAROUND it disabling and enabling notifications on online accounts settings.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

this might be masking the actual error:

if (err <= QNetworkReply::UnknownNetworkError)
        type = Error::NoConnection;

David Barth (dbarth)
Changed in signon (Ubuntu):
assignee: nobody → Alberto Mardegan (mardy)
tags: added: touch-2014-09-25
Revision history for this message
Alberto Mardegan (mardy) wrote :

If you are affected by this bug, please uncomment the LoggingLevel line in /etc/signond.conf, then you'll find the logs in the syslog; the real error should be visible, there.

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.