Bug#825995: systemd: slow boot: pam_systemd(su:session): Failed to create session: Connection timed out
Vincent Lefevre
vincent at vinc17.net
Wed Jun 1 09:40:53 BST 2016
Package: systemd
Version: 230-2
Severity: important
As of systemd 230, the boot is much slower than before, which is
rather annoying. journalctl shows:
[...]
Jun 01 10:14:24 zira systemd[1]: Started Initialize hardware monitoring sensors.
Jun 01 10:14:24 zira systemd[1]: Starting LSB: lm-sensors daemon...
Jun 01 10:14:24 zira kernel: input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input26
Jun 01 10:14:24 zira systemd-logind[780]: Watching system buttons on /dev/input/event10 (Video Bus)
Jun 01 10:14:24 zira sensord[945]: sensord started
Jun 01 10:14:24 zira sensord[945]: Chip: acpitz-virtual-0
Jun 01 10:14:24 zira systemd[1]: Started LSB: lm-sensors daemon.
Jun 01 10:14:24 zira sensord[938]: Starting sensor daemon: sensord.
Jun 01 10:14:24 zira sensord[945]: Adapter: Virtual device
Jun 01 10:14:24 zira sensord[945]: temp1: 48.0 C
Jun 01 10:14:24 zira sensord[945]: temp2: 43.0 C
Jun 01 10:14:24 zira sensord[945]: temp3: 85.0 C
Jun 01 10:14:24 zira sensord[945]: temp4: 85.0 C
Jun 01 10:14:24 zira sensord[945]: temp5: 24.0 C
Jun 01 10:14:24 zira sensord[945]: temp6: 127.0 C
Jun 01 10:14:24 zira sensord[945]: Chip: coretemp-isa-0000
Jun 01 10:14:24 zira sensord[945]: Adapter: ISA adapter
Jun 01 10:14:24 zira sensord[945]: Physical id 0: 51.0 C
Jun 01 10:14:24 zira sensord[945]: Core 0: 48.0 C
Jun 01 10:14:24 zira sensord[945]: Core 1: 47.0 C
Jun 01 10:14:24 zira sensord[945]: Core 2: 45.0 C
Jun 01 10:14:24 zira sensord[945]: Core 3: 47.0 C
Jun 01 10:14:24 zira ModemManager[766]: <info> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:19.0': not supported by any plugin
Jun 01 10:14:24 zira ModemManager[766]: <info> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.6/0000:3b:00.0/0000:3c:01.0/0000:3d:00.0': not supported by any plugin
Jun 01 10:14:38 zira ModemManager[766]: <info> Creating modem with plugin 'Generic' and '1' ports
Jun 01 10:14:38 zira ModemManager[766]: <warn> Could not grab port (tty/ttyS0): 'Cannot add port 'tty/ttyS0', unhandled serial type'
Jun 01 10:14:38 zira ModemManager[766]: <warn> Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:16.3': Failed to find primary AT port
Jun 01 10:14:47 zira su[718]: pam_systemd(su:session): Failed to create session: Connection timed out
Jun 01 10:14:48 zira su[718]: pam_unix(su:session): session closed for user vinc17
Jun 01 10:14:48 zira systemd[1]: Started Raise network interfaces.
[...]
Before systemd 230, I also got a failure with ModemManager in the
journal, but the boot was fast. I suppose that what is blocking
the boot is
pam_systemd(su:session): Failed to create session: Connection timed out
which is new. Earlier in the logs:
Jun 01 10:14:22 zira su[718]: Successful su for vinc17 by root
Jun 01 10:14:22 zira systemd[1]: Reached target Sockets.
Jun 01 10:14:22 zira su[718]: + ??? root:vinc17
Jun 01 10:14:22 zira systemd[1]: Reached target Basic System.
Jun 01 10:14:22 zira su[718]: pam_unix(su:session): session opened for user vinc17 by (uid=0)
This is part of one of my /etc/network/if-up.d scripts, where I have
"su vinc17 -c some_script" (which just does a rewrite of one of my
config files).
-- Package-specific info:
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.5.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii adduser 3.114
ii libacl1 2.2.52-3
ii libapparmor1 2.10-4
ii libaudit1 1:2.5.2-1
ii libblkid1 2.28-5
ii libc6 2.22-9
ii libcap2 1:2.25-1
ii libcap2-bin 1:2.25-1
ii libcryptsetup4 2:1.7.0-2
ii libgcrypt20 1.7.0-2
ii libgpg-error0 1.22-2
ii libkmod2 22-1.1
ii liblzma5 5.1.1alpha+20120614-2.1
ii libmount1 2.28-5
ii libpam0g 1.1.8-3.2
ii libseccomp2 2.3.1-2
ii libselinux1 2.5-3
ii libsystemd0 230-2
ii mount 2.28-5
ii util-linux 2.28-5
Versions of packages systemd recommends:
ii dbus 1.10.8-1
ii libpam-systemd 230-2
Versions of packages systemd suggests:
pn systemd-container <none>
pn systemd-ui <none>
Versions of packages systemd is related to:
ii udev 230-2
-- Configuration Files:
/etc/systemd/journald.conf changed:
[Journal]
Storage=persistent
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list