Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] umount /home fails at shutdown, dbus-daemon hanged
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Fri Feb 05, 2016 11:38 pm    Post subject: [SOLVED] umount /home fails at shutdown, dbus-daemon hanged Reply with quote

I noticed that during shutdown my /home don't gets unmounted correctly.

Specifically the init system complains that /home is in use but fuser finds nothing. I also get may lines like the following:
Code:
device-mapper: remove ioctl on <device> failed: Device or resource busy


I tried to logout my user, login to the console as root and manually unmount the partition.
I noticed that fuser finds the following still active on the above partition:
Code:
heavensdoor ~ # lsof /home/
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
pulseaudi 3300  ale   10u   REG   0,39     4096 660919 /home/ale/.pulse/b11ace2efa2eb9d18787daca56af5516-device-volumes.x86_64-pc-linux-gnu.gdbm
pulseaudi 3300  ale   11u   REG   0,39     4096 660920 /home/ale/.pulse/b11ace2efa2eb9d18787daca56af5516-stream-volumes.x86_64-pc-linux-gnu.gdbm
pulseaudi 3300  ale   12u   REG   0,39     4096 660921 /home/ale/.pulse/b11ace2efa2eb9d18787daca56af5516-card-database.x86_64-pc-linux-gnu.gdbm

After few seconds the puseaudio processes die and fuser finds indeed nothing, however the partition still won't be unmounted.
ps aux finds the following process still alive attached to my user:
Code:
ale       2156  0.0  0.0  17380  2040 ?        Ss   00:01   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
ale       2177  0.0  0.0 249520  4200 ?        Sl   00:01   0:00 /usr/libexec/at-spi-bus-launcher
ale       2183  0.0  0.0  17380  2436 ?        S    00:01   0:00  \_ /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
ale       2189  0.0  0.0 104584  3988 ?        Sl   00:01   0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
ale       2256  0.0  0.0 180672  5100 ?        Sl   00:01   0:00 /usr/libexec/gvfsd

If I kill these processes I can unmount my home partition, so I think those processes are the culprits that cause the problems during shutdown.

I understand that the ebuild at-spi2-atk (that seems related to the above processes) is pulled in by x11-libs/gtk+ with X use flag set.

Can you give me any advice on how to solve the problem in a clean way? I mean without manually adding a script somewhere that kills the processes or removing the X use flag from gtk+...

Thanks
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne


Last edited by Cazzantonio on Sat Feb 06, 2016 2:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sat Feb 06, 2016 2:10 pm    Post subject: Reply with quote

Solved.
The culprit was the following dbus process:
Code:
ale       2156  0.0  0.0  17380  2040 ?        Ss   00:01   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session


It seems that it was incorrectly launched by .config/autostart/nm-applet.desktop which had an Exec line like the following:
Code:
Exec=dbus-launch /usr/bin/nm-applet

I suspect it was an old config from a time when I didn't use slim as a session manager, which has native support to dbus.
A correct line should be like the following:
Code:
Exec=/usr/bin/nm-applet

_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum