Bug 347632 - Google account fails to authorize after reboot
Summary: Google account fails to authorize after reboot
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 15.04.0
Platform: Other Linux
: NOR major
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-12 19:05 UTC by Thomas Pfeiffer
Modified: 2015-11-16 20:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Pfeiffer 2015-05-12 19:05:25 UTC
When I add a Google account with Hangouts via KAccounts, it initially connects successfully. However after I reboot and try to log in again, I get the error that the password was not accepted. However, the authentication dialog form Google does not show, either. All I can do to make it work again is re-adding the account.

Reproducible: Always

Steps to Reproduce:
1. Add a Google account
2. Reboot
3. Try to go online

Actual Results:  
Error message saying the password is wrong

Expected Results:  
Connects successfully

This is version 15.04, which hasn't been added here yet.
Comment 1 Martin Klapetek 2015-05-13 13:08:17 UTC
Thanks for the report.

Do you perhaps have any remaining bits of kde-telepathy 0.9? The Google auth uses oauth, it shouldn't require any passwords at all.
Comment 2 Thomas Pfeiffer 2015-05-18 20:20:28 UTC
Whatever caused this, it seems fixed with 15.04.1 (without me changing anything).
Comment 3 Thomas Pfeiffer 2015-05-19 20:52:43 UTC
Scrap that, it just appeared again for whatever reason :( 
The message was
"There was a problem while trying to connect [my gmail address which I remove here for privacy reasons] - Authentication of your account failed (is your password correct?)"
Comment 4 Thomas Pfeiffer 2015-05-26 20:34:30 UTC
Is there any way how I can diagnose whether this is caused by some leftover from 0.9? This pretty much breaks Ktp for me and I'm probably not the only person upgrading from 0.9
Comment 5 Martin Klapetek 2015-05-27 20:46:55 UTC
Hmm, I'm not sure. This would mean the password is cleared after reboot, which doesn't make much sense.

I guess you're using normal distro packages? Can you check all of ktp packages are from 15.04.x, mainly ktp-accounts-kcm and ktp-auth-handler?
Comment 6 Thomas Pfeiffer 2015-05-27 23:52:29 UTC
Everything is on 15.04.1, except for call-ui which says 0.9.0
Comment 7 Martin Klapetek 2015-05-28 07:02:27 UTC
Ah, actually, do you have signon-kwallet-extension package? Or any package that has signon and kwallet in the name? ;)

The passwords are stored into kwallet under "accounts", can you check that after a reboot you have a correct password in kwallet?
Comment 8 Martin Klapetek 2015-05-28 07:03:49 UTC
Also, for the record, I'll be merging (probably today) a new solution into master which will make all this pain go away. I'll see if there's a way to get it into stable as well.
Comment 9 Thomas Pfeiffer 2015-05-28 20:23:01 UTC
(In reply to Martin Klapetek from comment #7)
> Ah, actually, do you have signon-kwallet-extension package? Or any package
> that has signon and kwallet in the name? ;)

I do have signon-kwallet-extension 15.04.1-1

> The passwords are stored into kwallet under "accounts", can you check that
> after a reboot you have a correct password in kwallet?

Is the kwallet5 wallet the same as the kwallet4 wallet?
The one I can open with KWalletManager does not have an "Accounts" category.
Comment 10 Martin Klapetek 2015-06-02 09:10:46 UTC
Ah yes, the KWalletManager5 was not yet released, so you can look only into KWallet4 while the secrets are stored in KWallet5.

I'm unsure what else to advise other than waiting a bit for the new version.

Sorry...
Comment 11 Thomas Pfeiffer 2015-08-27 18:49:57 UTC
The problem still persists even with 15.08 :(
Comment 12 Martin Klapetek 2015-09-04 21:02:22 UTC
Can you please try removing everything in ~/.config/libaccounts-glib and ~/.config/signond and ~/.local/share/telepathy/mission-control/accounts.cfg, then kill mission-control-5, then try adding the new account again?

This is really strange issue, it almost looks like the credentials are not being stored on disk and I've no idea why would that be.
Comment 13 Martin Klapetek 2015-09-29 21:00:31 UTC
Alternatively, if you haven't done the above, can you please run "ktp-auth-handler --persist" (in libexec) after reboot and try connecting, then post the output here (check for sensitive data).
Comment 14 Thomas Pfeiffer 2015-10-04 15:09:36 UTC
I have removed all the things you mentioned and re-added the account, but the problem remains.

Actually it's even stranger: Rarely, it does authenticate again after a reboot, so it seems liek the credentials do get saved but the authentication fails most of the time anyway.

Running ktp-auth-handler --persist gives me
telepathy-qt: "tp-qt:0.9.6.1()" Unable to register client: busName "org.freedesktop.Telepathy.Client.KTp.ConfAuthObserver" already registered 
telepathy-qt: "tp-qt:0.9.6.1()" Unable to register client: busName "org.freedesktop.Telepathy.Client.KTp.SASLHandler" already registered 
telepathy-qt: "tp-qt:0.9.6.1()" Unable to register client: busName "org.freedesktop.Telepathy.Client.KTp.TLSHandler" already registered 
No handlers registered. Exiting

How can I execute it before they are registered?
Comment 15 Martin Klapetek 2015-10-04 18:56:14 UTC
That means it is already running, so just kill it first.
Comment 16 Christoph Feck 2015-11-16 11:30:38 UTC
Thomas, did comment #15 help resolving the issue? Please add a comment.
Comment 17 Thomas Pfeiffer 2015-11-16 20:05:20 UTC
Sorry for not commenting earlier.
I didn't execute comment #15 but the problem now doesn't seem to appear anymore now, maybe after some package upgrade.
I'll just mark the bug as fixed and would reopen it in case if happens again.