Bug 395234 - kdewallet (kf5-kwallet 5.46.0) does nopt accept password after logout from session and relogin
Summary: kdewallet (kf5-kwallet 5.46.0) does nopt accept password after logout from se...
Status: CONFIRMED
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-11 06:23 UTC by georg.wagner
Modified: 2019-02-03 17:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description georg.wagner 2018-06-11 06:23:36 UTC
sagt of kdesession from xinitrc (no session manager). After leaving session and restarting session again kdewallet does not accept password (error 9).

After a full system reboot it does work again until the next logout from the session.
Comment 1 avlas 2018-06-15 16:57:20 UTC
Confirmed in KDE neon user Edition 5.13

I always thought it was a problem of pam, but it's not. One can reproduce the bug by manually closing the wallet and trying to open it back..
Comment 2 avlas 2018-06-15 17:09:27 UTC
By closing the wallet, I meant forcing it to close. 

The problem seems to happen because some application is not properly disconnected from kwallet when closing the session.

In my case I only see the following kwallet applications: kded5, akonadi_googlecalendar_resource and akonadi_googlecontacts

If I manually disconnect them and do relogin, everything works as it should.
Comment 3 avlas 2018-06-15 17:21:21 UTC
Further testing. The problem is not app specific. The bug is present once any application different of kwalletmanager is using kwallet.

I'm going to check now if there is a way to manually disconnect applications using kwallet from the terminal, so I can create an script to do so at logout, as a workaround...
Comment 4 georg.wagner 2018-06-15 17:33:14 UTC
I just tested it again.

It is true that a kdeinit5/kde5 is remaining ans some baloo processes.

But killing the kdeinit5 processes before restrting the x-session did not help. I keep getting the eror -9 after entering the password in kwallet.

> Am 15.06.2018 um 19:09 schrieb avlas <bugzilla_noreply@kde.org>:
> 
> https://bugs.kde.org/show_bug.cgi?id=395234
> 
> --- Comment #2 from avlas <jsardid@gmail.com> ---
> By closing the wallet, I meant forcing it to close. 
> 
> The problem seems to happen because some application is not properly
> disconnected from kwallet when closing the session.
> 
> In my case I only see the following kwallet applications: kded5,
> akonadi_googlecalendar_resource and akonadi_googlecontacts
> 
> If I manually disconnect them and do relogin, everything works as it should.
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 5 avlas 2018-06-15 17:50:41 UTC
Killing the applications may not work.

See if you can start kwalletmanager, open it (hidden in systray) and in applications tab, disconnect them all (I cannot disconnect kwalletmanager, but it's fine, kwalletmanager doesn't seem to trigger the issue). Once done, restart the session.

This fixes the issue for me... Although manually doing this every tim I want to restart the session is quite annoying, and so far I couldn't find any way to automatize it :/

(In reply to georg.wagner from comment #4)
> I just tested it again.
> 
> It is true that a kdeinit5/kde5 is remaining ans some baloo processes.
> 
> But killing the kdeinit5 processes before restrting the x-session did not
> help. I keep getting the eror -9 after entering the password in kwallet.
> 
> > Am 15.06.2018 um 19:09 schrieb avlas <bugzilla_noreply@kde.org>:
> > 
> > https://bugs.kde.org/show_bug.cgi?id=395234
> > 
> > --- Comment #2 from avlas <jsardid@gmail.com> ---
> > By closing the wallet, I meant forcing it to close. 
> > 
> > The problem seems to happen because some application is not properly
> > disconnected from kwallet when closing the session.
> > 
> > In my case I only see the following kwallet applications: kded5,
> > akonadi_googlecalendar_resource and akonadi_googlecontacts
> > 
> > If I manually disconnect them and do relogin, everything works as it should.
> > 
> > -- 
> > You are receiving this mail because:
> > You reported the bug.
Comment 6 georg.wagner 2018-06-15 18:22:38 UTC
TRied this, but in kwalletmanager there is no application shown as connected and the wallet is closed.
Thereafter I restartend the session and when kmail requested its password from kwallet, kwallet again brought the error -9.



> Am 15.06.2018 um 19:50 schrieb avlas <bugzilla_noreply@kde.org>:
> 
> https://bugs.kde.org/show_bug.cgi?id=395234
> 
> --- Comment #5 from avlas <jsardid@gmail.com> ---
> 
> Killing the applications may not work.
> 
> See if you can start kwalletmanager, open it (hidden in systray) and in
> applications tab, disconnect them all (I cannot disconnect kwalletmanager, but
> it's fine, kwalletmanager doesn't seem to trigger the issue). Once done,
> restart the session.
> 
> This fixes the issue for me... Although manually doing this every tim I want to
> restart the session is quite annoying, and so far I couldn't find any way to
> automatize it :/
> 
> (In reply to georg.wagner from comment #4)
>> I just tested it again.
>> 
>> It is true that a kdeinit5/kde5 is remaining ans some baloo processes.
>> 
>> But killing the kdeinit5 processes before restrting the x-session did not
>> help. I keep getting the eror -9 after entering the password in kwallet.
>> 
>>> Am 15.06.2018 um 19:09 schrieb avlas <bugzilla_noreply@kde.org>:
>>> 
>>> https://bugs.kde.org/show_bug.cgi?id=395234
>>> 
>>> --- Comment #2 from avlas <jsardid@gmail.com> ---
>>> By closing the wallet, I meant forcing it to close. 
>>> 
>>> The problem seems to happen because some application is not properly
>>> disconnected from kwallet when closing the session.
>>> 
>>> In my case I only see the following kwallet applications: kded5,
>>> akonadi_googlecalendar_resource and akonadi_googlecontacts
>>> 
>>> If I manually disconnect them and do relogin, everything works as it should.
>>> 
>>> -- 
>>> You are receiving this mail because:
>>> You reported the bug.
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 7 avlas 2018-06-15 18:39:16 UTC
Mmm, in my case the wallet is automatically open at first login (via pam), then the wifi is automatically connected (kded5) and even if I don't open kmail, akonadi resources are also started.

What if you try to open the wallet at first login (via kmail or manually), and then try the steps I said, and finally restart the session?
Comment 8 georg.wagner 2018-06-15 18:58:30 UTC
so, rebooted, to be able to start cleanly.
Then started x-session
used kmail, to be forced to login to kwallet (worked)
then opened kwalletmanager, tab applications, only kwalletmanager itself was shown as connected
kwallet was open, cosed it
Message cannot cleanly close kwallet, maybe applications still connected, force ?
forced closure of kwallet
logged out -> logout was interrupted by kwalletmanager
Second logout worked
Session start, login to kwallet worked !

> Am 15.06.2018 um 20:39 schrieb avlas <bugzilla_noreply@kde.org>:
> 
> https://bugs.kde.org/show_bug.cgi?id=395234
> 
> --- Comment #7 from avlas <jsardid@gmail.com> ---
> Mmm, in my case the wallet is automatically open at first login (via pam), then
> the wifi is automatically connected (kded5) and even if I don't open kmail,
> akonadi resources are also started.
> 
> What if you try to open the wallet at first login (via kmail or manually), and
> then try the steps I said, and finally restart the session?
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 9 avlas 2018-09-07 15:28:20 UTC
(In reply to avlas from comment #3)
> Further testing. The problem is not app specific. The bug is present once
> any application different of kwalletmanager is using kwallet.
> 
> I'm going to check now if there is a way to manually disconnect applications
> using kwallet from the terminal, so I can create an script to do so at
> logout, as a workaround...

Mmm, unfortunately this seems unreliable to say the least. Most of the times it doesn't workaround the issue. I hope this bug gets some attention as it makes impossible to restart a session when using kwallet, one needs to always reboot, which is a bit annoying.