You are not logged in.

#1 2013-09-21 16:07:11

CH2IS
Member
From: Wales
Registered: 2013-08-01
Posts: 18

[SOLVED] systemd fails to unmount home and temporary directory

Edit: Marking this thread as solved. It's not but I'm going to reinstall minus the encryption. It was probaby overkill for my needs in the first place. Apologies if I've wasted anyone's time looking into this.



Hi guys,

I'm having a few problems with poweroff and reboot taking an inordinate amount of time on a fresh install. I've got boot and an encrypted root on an SSD and an encrypted home on a HDD, which is unlocked by a keyfile in the root directory.

Added "verbose" to the kernel line to see what's going on and it shows stop jobs for home are taking upwards of a minute. Eventually, it fails to unmount both home and the temporary directory. Tried adding "shutdown" to the mkinitcpio hooks but it makes no difference.

Below's my fstab and some of the error messages I've managed to unearth. Don't know whether the D-Bus one's related. Anyway, I'm at a bit of a loss as to what to do next so any help would be much appreciated. Let me know if I can provide any more details.

cat /etc/fstab
--
# /dev/mapper/home
UUID=e372df62-42e8-4c9b-868d-d4d6db313743	/home	btrfs	rw,relatime,compress=lzo,space_cache,autodefrag,nodev,nosuid	0 0

# /dev/sdb1
UUID=EB31-D413	/boot	vfat	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,nodev,nosuid,noexec	0 0

# /dev/mapper/root
UUID=e9b1bef7-8af9-4cb9-8837-104634274120	/	btrfs	rw,relatime,compress=lzo,ssd,space_cache,autodefrag	0 0
journalctl --full
--
-- Reboot --
Sep 21 15:53:57 arch systemd[987]: Failed to open private bus connection: Failed to connect to socket /run/user/1000/dbus/user_bus_socket: No such file or directory
Sep 21 15:53:57 arch systemd[987]: Mounted /sys/kernel/config.
Sep 21 15:53:57 arch systemd[987]: Stopped target Sound Card.
Sep 21 15:53:57 arch systemd[987]: Starting Default.
Sep 21 15:53:57 arch systemd[987]: Reached target Default.
Sep 21 15:53:57 arch systemd[987]: Startup finished in 71ms.
cat /shutdown-log.txt
--
Got SIGCHLD for process 2662 (umount)
[  149.328926] systemd[1]: Child 2662 died (code=exited, status=32/n/a)
[  149.328934] systemd[1]: Child 2662 belongs to home.mount
[  149.328943] systemd[1]: home.mount mount process exited, code=exited status=32
[  149.328963] systemd[1]: home.mount changed unmounting -> mounted
[  149.328970] systemd[1]: Job home.mount/stop finished, result=failed
[  149.329147] systemd[1]: Failed unmounting /home.
[  149.329257] systemd[1]: Redirecting stop request from dev-disk-by\x2duuid-e372df62\x2d42e8\x2d4c9b\x2d868d\x2dd4d6db313743.device to sys-devices-virtual-block-dm\x2d1.device.
[  149.329276] systemd[1]: Stopping /sys/devices/virtual/block/dm-1.
[  149.329319] systemd[1]: Stopping Local File Systems (Pre).
[  149.329331] systemd[1]: local-fs-pre.target changed active -> dead
[  149.329339] systemd[1]: Job local-fs-pre.target/stop finished, result=done
[  149.329532] systemd[1]: Stopped target Local File Systems (Pre).
[  149.329562] systemd[1]: Stopping Remount Root and Kernel File Systems...
[  149.329728] systemd[1]: systemd-remount-fs.service changed exited -> dead
[  149.329738] systemd[1]: Job systemd-remount-fs.service/stop finished, result=done
[  149.329922] systemd[1]: Stopped Remount Root and Kernel File Systems.
[  149.329957] systemd[1]: Starting Shutdown.
[  149.329966] systemd[1]: shutdown.target changed dead -> active
[  149.329974] systemd[1]: Job shutdown.target/start finished, result=done
[  149.330141] systemd[1]: Reached target Shutdown.
[  149.330183] systemd[1]: Received SIGCHLD from PID 2662 (n/a).
[  149.330247] systemd[1]: Received SIGCHLD from PID 2663 (umount).
[  149.330300] systemd[1]: Got SIGCHLD for process 2663 (umount)
[  149.330408] systemd[1]: Child 2663 died (code=exited, status=32/n/a)
[  149.330417] systemd[1]: Child 2663 belongs to tmp.mount
[  149.330428] systemd[1]: tmp.mount mount process exited, code=exited status=32
[  149.330447] systemd[1]: tmp.mount changed unmounting -> mounted
[  149.330457] systemd[1]: Job tmp.mount/stop finished, result=failed
[  149.330480] systemd[1]: Failed unmounting Temporary Directory.
[  149.330689] systemd[1]: Accepted connection on private bus.
[  149.330981] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent
[  149.331931] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local
[  149.333819] systemd[1]: Accepted connection on private bus.
[  149.333863] systemd[1]: Accepted connection on private bus.
[  149.334128] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent
[  149.334238] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local
[  149.334390] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent
[  149.334507] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local
[  151.030793] systemd[1]: Received SIGCHLD from PID 1063 (dbus-launch).
[  151.030856] systemd[1]: Got SIGCHLD for process 1063 (dbus-launch)
[  151.030980] systemd[1]: Child 1063 died (code=exited, status=0/SUCCESS)
[  154.164959] systemd[1]: Received SIGCHLD from PID 2654 (systemd-cryptse).
[  154.165033] systemd[1]: Got SIGCHLD for process 2654 (systemd-cryptse)
[  154.165162] systemd[1]: Child 2654 died (code=exited, status=1/FAILURE)
[  154.165175] systemd[1]: Child 2654 belongs to systemd-cryptsetup@home.service
[  154.165193] systemd[1]: systemd-cryptsetup@home.service: control process exited, code=exited status=1
[  154.165376] systemd[1]: systemd-cryptsetup@home.service got final SIGCHLD for state stop
[  154.165474] systemd[1]: systemd-cryptsetup@home.service changed stop -> failed
[  154.165576] systemd[1]: Job systemd-cryptsetup@home.service/stop finished, result=done
[  154.165612] systemd[1]: Stopped Cryptography Setup for home.
[  154.165638] systemd[1]: Unit systemd-cryptsetup@home.service entered failed state.
[  154.165676] systemd[1]: Starting Unmount All Filesystems.
[  154.165686] systemd[1]: umount.target changed dead -> active
[  154.165696] systemd[1]: Job umount.target/start finished, result=done
[  154.165718] systemd[1]: Reached target Unmount All Filesystems.
[  154.165750] systemd[1]: Starting Final Step.
[  154.165760] systemd[1]: final.target changed dead -> active
[  154.165770] systemd[1]: Job final.target/start finished, result=done
[  154.165791] systemd[1]: Reached target Final Step.
[  154.165824] systemd[1]: Starting Reboot...
[  154.166094] systemd[1]: About to execute: /usr/bin/systemctl --force reboot
[  154.166383] systemd[1]: Forked /usr/bin/systemctl as 2668
[  154.166629] systemd[1]: systemd-reboot.service changed dead -> start
[  154.167036] systemd[1]: Accepted connection on private bus.
[  154.167348] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent
[  154.167525] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local
[  154.167633] systemd[2668]: Executing: /usr/bin/systemctl --force reboot
[  154.168973] systemd[1]: Accepted connection on private bus.
[  154.169332] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent
[  154.169497] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local
[  154.169611] systemd[1]: Accepted connection on private bus.
[  154.170019] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Manager.Reboot() on /org/freedesktop/systemd1
[  154.170069] systemd[1]: Shutting down.
[  154.173980] systemd[1]: Hardware watchdog 'INTCAMT', version 0
[  154.174001] systemd[1]: Set hardware watchdog to 10min.
[  154.187187] systemd-journald[192]: Received SIGTERM
[  154.733139] btrfs: disk space caching is enabled
[  155.076718] btrfs: disk space caching is enabled
[  155.105096] btrfs: disk space caching is enabled
[  155.105142] btrfs: disk space caching is enabled
[  155.132044] btrfs: use lzo compression
[  155.132049] btrfs: use ssd allocation scheme
[  155.132054] btrfs: enabling auto defrag
[  155.132055] btrfs: disk space caching is enabled

Last edited by CH2IS (2013-09-21 17:13:52)

Offline

#2 2013-10-24 20:58:06

nanawel
Member
Registered: 2012-05-07
Posts: 89
Website

Re: [SOLVED] systemd fails to unmount home and temporary directory

Same problem here. It started a month or two ago.
/tmp is handled by systemd only (no line in fstab) and /home is not encrypted.

It's getting a bit annoying, I have to use Ctrl-Alt-Del to force reboot where it hangs on shutdown and then press the power button.

Offline

#3 2013-10-25 11:06:12

sinatosk
Member
Registered: 2010-11-28
Posts: 107

Re: [SOLVED] systemd fails to unmount home and temporary directory

I too have this problem and it's happening on 2 machines of mine...

following these steps from

http://freedesktop.org/wiki/Software/sy … eventually

everytime I reboot... I see the message

Failed unmounting Temporary directory
Failed unmounting /home

and it lasts for 10 seconds then reboots.... but in many cases it don't and I have to force reboot...

Been going on for weeks now

I'm going to start another thread as this one is marked as solved

edit1: thread at https://bbs.archlinux.org/viewtopic.php?id=171879

Last edited by sinatosk (2013-10-26 22:30:05)

Offline

#4 2015-02-09 18:00:33

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 340
Website

Re: [SOLVED] systemd fails to unmount home and temporary directory

Just chiming in, i have 4 arch installs, this happens on only one where arch is installed on a 16 GB Sandisk Blade USB thumbdrive. Seems to only happen after a pacman -Syyu. Sometimes the reboot takes as long as 10 minutes. Ive been experiencing this for past few months on that one install.

Offline

Board footer

Powered by FluxBB