Boot stalling in jessie with systemd
I had hoped that my problem (bug #778881) would go away with recent
upgrades, but no, it is still happening; sometimes as frequently as
two boots in three.
Two days ago, I had to hard-reset and lost the contents of my
/etc/wicd/wireless-settings.conf as wicd must have been juggling it at
the time I reset. (Fortunately I keep a backup of all altered /etc
files in /home/system-...)
Today, on the second boot, I ssh'd from another machine (with which I had
just rebooted it) and found I couldn't reboot it this time. After I'd
sync'd a few times, I tried halt -f and that did stop it.
There are one of two services that stall on odd occasions, but most
have a timeout which is honoured. binfmt-support has an indefinite
timeout. I have no idea what it's meant to do. All its configuration
directories/files are empty.
Apart from no console login, the machine (until today) appears to be
running normally when you ssh into it, except that the said login
and su'ing to root take anything up to a minute each to respond.
Very oddly, on this last occasion (when unable to reboot), login
*as root* was instantaneous. (I then killed all the other ssh
processes so I could unmount /home before halting.)
On one accasion quite recently, in a similar manner, I couldn't close
down because a stop job was running for "Generate Color Profiles".
There was a timeout, but each time it was reached, the timeout jumped
by 90 seconds! Even with another machine handy, I couldn't investigate
what was going on with ssh because services like wicd were all stopped.
When I reinstall jessie (I still need to sort through which "top-level"
packages I will need to install) I will probably run this machine with
sysvinit if possible. This is the laptop I travel with so I can hardly
ask a passer-by if I can borrow their machine to ssh in and kill mine.
Anyway, here's an extract of ps output that you would rarely expect to
see, followed by the systemd services running, again fairly unusual.
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 65.6 0.2 14708 5088 ? Rs 07:51 17:15 /sbin/init
...
root 666 0.0 0.2 8076 4772 ? Ss 07:52 0:00 /usr/sbin/sshd -D
root 667 0.0 0.0 2280 1428 ? Ss 07:52 0:00 /usr/sbin/update-binfmts --enable
...
root 2329 0.0 0.2 9232 5644 ? Ss 07:53 0:00 /sbin/dhclient -v wlan0
root 2405 0.0 0.0 2260 1412 ? S 07:54 0:00 /bin/sh /usr/sbin/pm-powersave true
root 2440 0.0 0.0 2260 628 ? S 07:54 0:00 /bin/sh /usr/lib/pm-utils/power.d/anacron true
root 2441 0.0 0.0 2260 1320 ? S 07:54 0:00 /bin/sh /usr/sbin/invoke-rc.d anacron stop
root 2459 0.0 0.1 5984 2260 ? S 07:54 0:00 systemctl stop anacron.service
root 2627 0.0 0.0 0 0 ? S 07:58 0:00 [kworker/u4:2]
root 2639 0.0 0.0 0 0 ? S 07:58 0:00 [kworker/1:1]
root 2643 0.0 0.2 11816 6176 ? Ss 07:59 0:00 sshd: david [priv]
root 2796 0.0 0.1 6200 3580 pts/0 S 08:00 0:00 /bin/su -
root 2833 0.0 0.2 6976 5068 pts/0 S 08:01 0:00 -su
root 2850 0.0 0.1 5984 2464 pts/0 S+ 08:01 0:00 reboot
root 2851 0.0 0.0 2948 1528 pts/0 S+ 08:01 0:00 /bin/systemd-tty-ask-password-agent --watch
root 2856 0.0 0.0 0 0 ? S 08:01 0:00 [kworker/0:0]
root 3947 0.0 0.3 11816 6208 ? Ss 08:04 0:00 sshd: david [priv]
root 4018 0.0 0.1 6196 3664 pts/1 S 08:04 0:00 /bin/su -
root 4022 0.0 0.2 6976 4992 pts/1 S 08:04 0:00 -su
root 4042 0.0 0.1 5984 2484 pts/1 S+ 08:04 0:00 reboot
root 4043 0.0 0.0 2948 1512 pts/1 S+ 08:04 0:00 /bin/systemd-tty-ask-password-agent --watch
root 4102 0.0 0.2 11816 6084 ? Ss 08:06 0:00 sshd: david [priv]
root 4213 0.0 0.0 0 0 ? S 08:07 0:00 [kworker/u4:1]
root 4424 0.0 0.1 6196 3664 pts/2 S 08:11 0:00 /bin/su -
root 4428 0.0 0.2 7060 5308 pts/2 S 08:11 0:00 -su
root 4473 0.0 0.0 0 0 ? S 08:12 0:00 [kworker/u4:0]
root 4521 0.0 0.0 0 0 ? S 08:13 0:00 [kworker/0:1]
root 4587 0.0 0.1 5984 2400 pts/2 S+ 08:15 0:00 poweroff
root 4588 0.0 0.0 2948 1524 pts/2 S+ 08:15 0:00 /bin/systemd-tty-ask-password-agent --watch
root 4599 0.0 0.2 11816 6152 ? Ss 08:15 0:00 sshd: david [priv]
root 4786 0.3 0.1 6196 3584 pts/3 S 08:17 0:00 /bin/su -
root 4790 0.5 0.2 7052 5300 pts/3 S 08:17 0:00 -su
root 4825 0.0 0.1 4760 2404 pts/3 R+ 08:17 0:00 ps -U root -u root u
west
State: starting
Jobs: 120 queued
Failed: 1 units
Since: Tue 2015-04-28 07:51:46 CDT; 24min ago
CGroup: /
├─1 /sbin/init
└─system.slice
├─avahi-daemon.service
│ ├─771 avahi-daemon: running [west.local
│ └─875 avahi-daemon: chroot helpe
├─acpi-support.service
│ ├─ 796 /bin/sh /etc/acpi/power.sh true
│ ├─2405 /bin/sh /usr/sbin/pm-powersave true
│ ├─2440 /bin/sh /usr/lib/pm-utils/power.d/anacron true
│ ├─2441 /bin/sh /usr/sbin/invoke-rc.d anacron stop
│ └─2459 systemctl stop anacron.service
├─dbus.service
│ └─679 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
├─ModemManager.service
│ └─665 /usr/sbin/ModemManager
├─cron.service
│ └─662 /usr/sbin/cron -f
├─nfs-common.service
│ ├─638 /sbin/rpc.statd
│ └─653 /usr/sbin/rpc.idmapd
├─exim4.service
│ └─1174 /usr/sbin/exim4 -bd -q30m
├─atd.service
│ └─661 /usr/sbin/atd -f
├─systemd-journald.service
│ └─161 /lib/systemd/systemd-journald
├─clamav-freshclam.service
│ └─663 /usr/bin/freshclam -d --foreground=true
├─cups.service
│ └─797 /usr/sbin/cupsd -f
├─ssh.service
│ ├─ 666 /usr/sbin/sshd -D
│ ├─2643 sshd: david [priv]
│ ├─2675 sshd: david@pts/0
│ ├─2676 -bash
│ ├─2796 /bin/su -
│ ├─2833 -su
│ ├─2850 reboot
│ ├─2851 /bin/systemd-tty-ask-password-agent --watch
│ ├─3947 sshd: david [priv]
│ ├─3949 sshd: david@pts/1
│ ├─3950 -bash
│ ├─4018 /bin/su -
│ ├─4022 -su
│ ├─4042 reboot
│ ├─4043 /bin/systemd-tty-ask-password-agent --watch
│ ├─4102 sshd: david [priv]
│ ├─4104 sshd: david@pts/2
│ ├─4105 -bash
│ ├─4424 /bin/su -
│ ├─4428 -su
│ ├─4587 poweroff
│ ├─4588 /bin/systemd-tty-ask-password-agent --watch
│ ├─4599 sshd: david [priv]
│ ├─4601 sshd: david@pts/3
│ ├─4602 -bash
│ ├─4725 systemctl status
│ └─4726 pager
├─systemd-logind.service
│ └─670 /lib/systemd/systemd-logind
├─wicd.service
│ ├─1198 /usr/bin/python -O /usr/share/wicd/daemon/wicd-daemon.py
│ ├─1262 /usr/bin/python -O /usr/share/wicd/daemon/monitor.py
│ ├─1916 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/4494fc391fce -Dwext
│ └─2329 /sbin/dhclient -v wlan0
├─binfmt-support.service
│ └─667 /usr/sbin/update-binfmts --enable
├─systemd-udevd.service
│ └─177 /lib/systemd/systemd-udevd
├─rpcbind.service
│ └─629 /sbin/rpcbind -w
├─clamav-daemon.service
│ └─798 /usr/sbin/clamd --foreground=true
├─rsyslog.service
│ └─668 /usr/sbin/rsyslogd -n
├─smartd.service
│ └─660 /usr/sbin/smartd -n
├─ntp.service
│ └─890 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 110:119
├─acpid.service
│ └─785 /usr/sbin/acpid
├─bluetooth.service
│ └─659 /usr/lib/bluetooth/bluetoothd
├─gpm.service
│ └─699 /usr/sbin/gpm -m /dev/input/mice -t exps2
└─timidity.service
└─1199 /usr/bin/timidity -Os -iAD
Cheers,
David.
Reply to: