Bug 5477 - Broadcast message for luks password... but it is already mounted OK...
Summary: Broadcast message for luks password... but it is already mounted OK...
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
: 5657 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-19 02:06 CEST by Morgan Leijström
Modified: 2013-01-06 18:47 CET (History)
3 users (show)

See Also:
Source RPM: systemd
CVE:
Status comment:


Attachments
output from ls /lib/systemd/system (4.56 KB, text/plain)
2012-04-19 11:34 CEST, Morgan Leijström
Details

Description Morgan Leijström 2012-04-19 02:06:09 CEST
Description of problem:
A couple minutes after loggin into KDE, and after resuming from suspend, i see a message popping from tray, and it is also displayed in a terminal if i have one open:



Broadcast message from root@T42p.tribun (Thu, 19 Apr 2012 00:53:36 +0200):

Password entry required for 'Please enter passphrase for disk HTS721060G9AT00 (crypt_sda6)!' (PID 313).
Please enter password with the systemd-tty-ask-password-agent tool!




Well, sda6 is encrypted lvm in which /homencr is a logical volume, and where i have my home and as i write this it is apparently already mounted all OK....


What is the system trying to do, and why?



How reproducible:
Remind me to update and test similar systems...
Note to self: machine T42p
Manuel Hiebel 2012-04-19 09:20:46 CEST

CC: (none) => balcaen.john, lmenut, mageia

Comment 1 Colin Guthrie 2012-04-19 10:55:46 CEST
The reason it pops up in your tray is due to knotify agent catching and displaying wall[1] messages.

I'm not specifically sure what will trigger this. Ultimately it's due to the various /lib/systemd/system/sytemd-ask-* units, but after that I'm not sure what specifically triggers things.

I believe it's probably due to the directory:
 /run/systemd/ask-password
not being empty in some capacity, but I'll try and find out more info.

If you could list the contents of that folder that would be useful.


1. http://linux.about.com/library/cmd/blcmdl1_wall.htm
Comment 2 Morgan Leijström 2012-04-19 11:34:49 CEST
Created attachment 2041 [details]
output from ls /lib/systemd/system
Comment 3 John Balcaen 2012-04-19 11:36:23 CEST
KDE is just the messenger here (removing luc & me as cc)

CC: balcaen.john => (none)
Source RPM: (none) => systemd

John Balcaen 2012-04-19 11:36:37 CEST

CC: lmenut => balcaen.john

Comment 4 Colin Guthrie 2012-04-19 11:40:52 CEST
It was actually the directory /run/systemd/ask-password that I was interested in.
Comment 5 Morgan Leijström 2012-04-19 11:41:47 CEST
Yep, sorry. /run/systemd/ask-password is empty
Comment 6 Colin Guthrie 2012-04-19 12:25:45 CEST
Can you check that folder immediately after resume? It seems something is requesting a password, but likely gives up after a while. The Wall message will still go out tho' so you'll still see it.

See here for further details:
http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents
Comment 7 Morgan Leijström 2012-04-19 17:22:49 CEST
Yes you are right;
During some seconds after wakening up there is this content:
(output of ls to file, but copy-paste to here)

ask.4jA5BF
sck.8495087807915808906=

         And next time i recorded this: 

ask.RkliFQ
sck.12828340277291397759=


The message comes about a second after i see the desktop, after wakening from suspend and logging in (locked screensaver), and this recording is a couple seconds after that.
Comment 8 Morgan Leijström 2012-04-19 17:35:30 CEST
After another suspend+login i copied the contents of the ask.* file:
(functions is explained in the link you gave in #6 )

[Ask]
PID=1977
Socket=/run/systemd/ask-password/sck.11895936585405906522
AcceptCached=1
NotAfter=15439821339
Message=Please enter passphrase for disk HTS721060G9AT00 (crypt_sda6)!
Icon=drive-harddisk
Comment 9 Colin Guthrie 2012-04-19 18:25:06 CEST
Thanks for that.

I'll have to see if I can reproduce this setup to debug. Ultimately it's not a show stopper, but it would be nice to get this tidied up before release if possible.
Comment 10 Marja Van Waes 2012-05-26 13:09:31 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 11 roelof Wobben 2013-01-03 20:22:32 CET
@colin : Could you reproduce the error  ?

Roelof

CC: (none) => r.wobben

Comment 12 roelof Wobben 2013-01-04 09:12:43 CET
*** Bug 5657 has been marked as a duplicate of this bug. ***
Comment 13 Colin Guthrie 2013-01-06 16:55:09 CET
@roelof, I totally forgot to try and reproduce this kind of setup. I'll try and keep this on my radar for some some kind of Virtual Machine marathon that will no doubt come up soon!
Comment 14 Morgan Leijström 2013-01-06 17:29:59 CET
Now i have a fresh install mga2-64 on thinkpad T61
In a large encrypted partition i have a LVM containing /home, swap, /.
( Only /boot is outside encrypted partition and LVM )

No strange things seen.  I also searched the logs.

There is a "drive" listed in Dolphin side panel presumably corresponding to the encrypted partition. I can click it, KDE asks for password (after setting up kwallet), and then returns that the drive is already busy (I forgot the exact wording)

So i guess this issue is no more.
Comment 15 Colin Guthrie 2013-01-06 18:47:28 CET
OK, lets close it for now. If you notice it cropping up again, feel free to reopen. Thanks for the feedback.

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME


Note You need to log in before you can comment on or make changes to this bug.