Bug 356243

Summary: Cannot login to Google account and account settings are not remembered
Product: [Unmaintained] telepathy Reporter: Unknown <null>
Component: auth-handlerAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED DUPLICATE    
Severity: grave CC: mklapetek
Priority: NOR    
Version: 0.9.0   
Target Milestone: Future   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Unknown 2015-12-03 12:44:20 UTC
Not sure how to check version as this is not working but the system is openSUSE Leap 42.1 with Plasma 5.4.3

Also /usr/share/doc/packages/telepathy-gabble/ChangeLog shows:

commit f10f557fd67ec11738670828a553496960c0d411
Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Date:   2014-05-07 16:33:17 +0200

    0.18.2

The package version in YaST is 0.9.0-2.2

Reproducible: Always

Steps to Reproduce:
1. Open System Settings > Online Accounts
2. Add new Jabber account with credentials the Gmail account and password
3. Click Advanced and enter:

Server address: talk.google.com
Sever port: 5223

Require encrypted connection - checked (but even without checked still can't connect)

4. Click OK and try to connect
5. After a while the login prompt dialog appears and asks again for password. Give it the password.


Actual Results:  
It can never connect/authorize. Please see the journal log for details.

Additionally when going to System Settings > Online Accounts > this same account > Configure - the login credentials are not remembered as well as server settings.

Expected Results:  
Successful connection and remembering of login credentials.

journalctl -f shows:

Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: New job started. 1 jobs currently running
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  7
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  794
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unknown signature value:  795
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: No other jobs at the moment. Starting timer.
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Job finished. 0 jobs currently running
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: New job started. 1 jobs currently running
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: 0
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: ("X-OAUTH2", "X-GOOGLE-TOKEN", "PLAIN", "X-TELEPATHY-PASSWORD")
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Starting X-OAuth2 auth
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Status Not started
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unable to find account for id 0
Dec 03 14:26:46 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Retrying in 2s
Dec 03 14:26:48 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:26:48 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:26:48 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unable to find account for id 0
Dec 03 14:26:48 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Retrying in 2s
Dec 03 14:26:50 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:26:50 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:26:50 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unable to find account for id 0
Dec 03 14:26:50 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Retrying in 2s
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unable to find account for id 0
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: 3 ending with error
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Received Google credentials, starting auth mechanism...
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Auth failed
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Starting Password auth
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Requesting password
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unable to find account for id 0
Dec 03 14:26:52 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Retrying in 2s
Dec 03 14:26:54 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:26:54 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:26:54 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unable to find account for id 0
Dec 03 14:26:54 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Retrying in 2s
Dec 03 14:26:56 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:26:56 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:26:56 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unable to find account for id 0
Dec 03 14:26:56 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Retrying in 2s
Dec 03 14:26:58 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:26:58 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:26:58 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Unable to find account for id 0
Dec 03 14:26:58 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: 3 ending with error
Dec 03 14:26:58 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Credentials job error: "Could not find account"
Dec 03 14:26:58 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Prompting for password
Dec 03 14:27:05 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Saving password in SSO
Dec 03 14:27:05 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): accounts-glib-CRITICAL **: ag_manager_load_account: assertion 'account_id != 0' failed
Dec 03 14:27:05 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: (process:4639): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
Dec 03 14:27:05 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: Creating account with providerName "ktp-jabber"
Dec 03 14:27:05 i7 org.freedesktop.Telepathy.Client.KTp.TLSHandler[1980]: identityimpl.cpp 172 storeCredentials Storing credentials
Dec 03 14:27:05 i7 kernel: traps: ktp-auth-handle[4639] general protection ip:7f46d0851f04 sp:7ffe09ff6640 error:0 in libsignon-qt5.so.1.0.0[7f46d083f000+31000]
Comment 1 Martin Klapetek 2015-12-03 21:06:53 UTC
Thanks for the report

Can you please check if you have telepathy-accounts-signon pacakge installed? Also btw it looks like you're actually using 15.08 version, not 0.9.
Comment 2 Unknown 2015-12-03 21:14:31 UTC
Yes, I have that package installed. According to YaST:
telepathy-accounts-signon 1.0-1.1

As for the telepathy I didn't know how to check. But in YaST it is 0.9.0-2.2 that's why I set 0.9.0. Please correct if necessary.

BTW the situation is quite similar with Kopete. I have filed a bug report about it earlier. If you think it might be related please check:

https://bugs.kde.org/show_bug.cgi?id=354473
Comment 3 Martin Klapetek 2015-12-03 21:16:19 UTC
Ok, I believe you're actually experiencing bug 354949, which has a patch in it and should be fixed shortly.

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