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 13:58:16 GMT 2018


Quoting Michael Biebl:
: Fwiw, you can use the builtin systemd autofs support.
: Define the network mount in /etc/fstab and add x-systemd.automount to
: the mount options. Would be interesting to know if you get the hangs as
: well then.

I tried to add the following line to /etc/fstab:

tours:/usr/local  /usr/local    nfs bg,soft,intr,x-systemd.automount

(is this syntax correct?)

But it caused a boot failure: the message is:

 [***]  A start job is running for XXX (... / 1m 30s)

with XXX being all the fs listed in the fstab, in turn.  After 1m30s, it
fails with lots of yellow [DEPEND] messages, and when offered to
type the root password, nothing happens when I type it (as if the login
process was hanging again).

I tried to add a systemd.debug_shell=1 but since it did not startup,
there was no virtual ttys setup (my guess).

: > Is there a dependency issue that causes the autofs service to start
: > too late in the process, and causing problems when a fs that appears
: > in the PATH is actually auto-mounted?
: 
: It's unfortunate, that systemctl list-jobs does not work
: This could have given us a hint if there is a dependency some jobs are
: waiting for.

Indeed.  But the failure I got above is a hint that there is something
fishy going on with the network filesystems.

: How exactly do you configure your network btw?
: This might indeed be an issue that the network is not really up and
: "something" trying to access /usr/local and hanging because of that.

I configure a static IP address in /etc/network/interfaces:

-----------------
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address 192.168.0.3
	broadcast 192.168.0.255
	gateway 192.168.0.1
	netmask 255.255.255.0
	network 192.168.0.0

-----------------

I'd really like to help you debug this problem, as I'm sure I am not the
first, and will not be the last, to have a similar problem!

Raphael



More information about the Pkg-systemd-maintainers mailing list