Bug#916689: systemd: login at console hangs after "Last login..." displayed, ssh hangs as well

Raphael Manfredi Raphael_Manfredi at pobox.com
Mon Dec 17 12:27:39 GMT 2018


Quoting Michael Biebl:
: Please boot with systemd as PID 1 and try to get a debug shell on tty9
: by adding systemd.debug-shell=1 to the kernel command line.
: 
: On tty9 you can then inspect the system.
: The output of
: systemctl status dbus
: systemctl status systemd-logind
: systemctl list-jobs
: would be a good start.

It booted but...

	/etc/profile puts /usr/local/bin at the start of the PATH.

This created problems: for some reason, the autofs mount of /usr/local
was not working.  I changed /etc/profile to remove these /usr/local
prepending.  I also reset the PATH at the command line to avoid
/usr/local....

(This is funny. Autofs was started, see mount output below, but indeed
trying to access any of the auto-mounted dirs failed -- I forgot to
test my network by issuing a ping).

Next, a basic ps -ef worked and showed /sbin/init as being PID 1.
It's a symlink:
		lrwxrwxrwx 1 root root 20 Oct 28 18:02 /sbin/init -> /lib/systemd/systemd

So I was under systemd.

I launched these commands (typing the full path just in case):

	# /bin/systemctl status dbus
	# /bin/systemctl status systemd-logingd
	# /bin/systemctl list-jobs

All three hung and I had to ^C them after a few secs.

: A verbose debug log would be helpful as well.

Tell me what log you want.  The output of "dmesg"?  Some other log file?

I captured the output of mount:

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=16431808k,nr_inodes=4107952,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=3288916k,mode=755)
/dev/mapper/essd-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/mapper/essd-usr on /usr type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14666)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime,size=524288k)
/dev/sda1 on /boot type ext2 (rw,relatime,block_validity,barrier,user_xattr,acl)
/dev/mapper/esys-usr on /hd/usr type ext4 (rw,relatime,data=ordered)
/dev/mapper/esys-root on /hd/root type ext4 (rw,relatime,data=ordered)
/dev/mapper/esys-home on /home type ext4 (rw,relatime,data=ordered)
/dev/mapper/esys-32 on /32 type ext4 (rw,relatime,data=ordered)
/dev/mapper/vg0-vtapes on /ext/vtapes type ext4 (rw,relatime,stripe=24,data=ordered)
/dev/mapper/vg0-backups on /ext/backups type ext4 (rw,relatime,stripe=24,data=ordered)
/dev/mapper/esys-docker on /ext/docker type ext4 (rw,relatime,data=ordered)
/dev/mapper/esys-can on /can type ext4 (rw,relatime,data=ordered)
/dev/mapper/esys-vm on /ext/vm type ext4 (rw,relatime,data=ordered)
/dev/mapper/esys-var on /var type ext4 (rw,relatime,data=ordered)
/dev/mapper/esys-tmp on /ext/tmp type ext4 (rw,relatime,data=ordered)
/dev/mapper/esys-scratch on /ext/scratch type ext4 (rw,relatime,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/etc/auto.master.d/lens on /auto/lens type autofs (rw,relatime,fd=6,pgrp=1604,timeout=1800,minproto=5,maxproto=5,indirect,pipe_ino=20401)
/etc/auto.master.d/lyon on /auto/lyon type autofs (rw,relatime,fd=12,pgrp=1604,timeout=1800,minproto=5,maxproto=5,indirect,pipe_ino=20407)
/etc/auto.master.d/metz on /auto/metz type autofs (rw,relatime,fd=18,pgrp=1604,timeout=1800,minproto=5,maxproto=5,indirect,pipe_ino=20412)
/etc/auto.master.d/tours on /auto/tours type autofs (rw,relatime,fd=24,pgrp=1604,timeout=1800,minproto=5,maxproto=5,indirect,pipe_ino=20417)
/etc/auto.master.d/usr_local on /auto/usr_local type autofs (rw,relatime,fd=30,pgrp=1604,timeout=1800,minproto=5,maxproto=5,indirect,pipe_ino=20425)
tmpfs on /run/user/116 type tmpfs (rw,nosuid,nodev,relatime,size=3288912k,mode=700,uid=116,gid=127)
: 



More information about the Pkg-systemd-maintainers mailing list