Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-29 Thread Osamu Aoki
check it if systemd.environment-generator is used) * Bug #925160 systemd: user session slow to start (11 seconds) (Mar 2019) Since 0.40-1 used systemd.environment-generator, the hook scrip was run even for ssh login and delay of 11 seconds was noticed. ssh with X-session doesn't

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-21 Thread Aaron M. Ucko
Package: im-config Version: 0.39-1 Followup-For: Bug #925160 I've also encountered slowness here, sometimes to the point of tripping systemd timeouts. The culprit appears to be repeatedly searching /usr/lib via find -- on the system where this issue has bitten me most badly, I have hundreds of

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-21 Thread Osamu Aoki
On Fri, Mar 22, 2019 at 04:42:50AM +0900, Osamu Aoki wrote: ... > > > Mar 21 13:41:49 hostname systemd[237922]: Successfully forked off > > > '(direxec)' as PID 237927. > > > Mar 21 13:42:02 hostname systemd[237922]: > > > /usr/lib/systemd/user-environment-generators/70-im-config succeeded. > If

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-21 Thread Osamu Aoki
Hi, On Thu, Mar 21, 2019 at 05:51:45PM +0100, Michael Biebl wrote: > Control: reassign -1 im-config > Control: tags -1 - moreinfo > Control: affects -1 + systemd > > Am 21.03.19 um 13:51 schrieb Laurent Bonnaud: > > On 20/03/2019 19.39, Michael Biebl wrote: > > > >> Another info that might help

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-21 Thread Michael Biebl
Control: reassign -1 im-config Control: tags -1 - moreinfo Control: affects -1 + systemd Am 21.03.19 um 13:51 schrieb Laurent Bonnaud: > On 20/03/2019 19.39, Michael Biebl wrote: > >> Another info that might help give a clue is setting >> LogLevel=debug in /etc/systemd/user.conf, reboot, log in,

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-21 Thread Laurent Bonnaud
On 20/03/2019 19.39, Michael Biebl wrote: > Another info that might help give a clue is setting > LogLevel=debug in /etc/systemd/user.conf, reboot, log in, then attach > the output of journalctl --user -b Thanks, it allowed me to find the cause of the problem: Mar 21 13:41:49 hostname

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-21 Thread Laurent Bonnaud
On 3/20/19 7:24 PM, Michael Biebl wrote: >> Do you have any (user) generators which might take a long time? > Typical places to check: > > /usr/lib/systemd/user-environment-generators/ > /usr/lib/systemd/user-generators/ Here is what I have in this system: # ls -l

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-21 Thread Laurent Bonnaud
On 3/20/19 5:52 PM, Michael Biebl wrote: > Is this problem reproducible if you login locally? Yes. When I log in from a local VT, just after typing the password: - I see the contents of /etc/motd - I wait for 11 seconds - then I see the shell prompt Thanks, -- Laurent.

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Michael Biebl
Control: tags -1 + moreinfo Am 20.03.19 um 19:24 schrieb Michael Biebl: > Am 20.03.19 um 19:19 schrieb Michael Biebl: >> Am 20.03.19 um 19:01 schrieb Laurent Bonnaud: >>> Timestamp generators-start: Wed 2019-03-20 15:06:27 CET >>> Timestamp generators-finish: Wed 2019-03-20 15:06:38 CET >> >>

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Michael Biebl
Am 20.03.19 um 19:19 schrieb Michael Biebl: > Am 20.03.19 um 19:01 schrieb Laurent Bonnaud: >> Timestamp generators-start: Wed 2019-03-20 15:06:27 CET >> Timestamp generators-finish: Wed 2019-03-20 15:06:38 CET > > That is odd. > Do you have any (user) generators which might take a long time?

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Michael Biebl
Am 20.03.19 um 19:01 schrieb Laurent Bonnaud: > Timestamp generators-start: Wed 2019-03-20 15:06:27 CET > Timestamp generators-finish: Wed 2019-03-20 15:06:38 CET That is odd. Do you have any (user) generators which might take a long time? -- Why is it that all of the instruments seeking

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Laurent Bonnaud
On 3/20/19 5:47 PM, Michael Prokop wrote: > What do you mean with "Further connections are fast", ssh-ing into > the system as the same user ? Exactly. > (do you use ssh with ControlMaster?) I do not use ControlMaster. > Is connecting via `ssh -o ControlPath=none ...` also slow? Using the

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Laurent Bonnaud
On 3/20/19 5:47 PM, Michael Prokop wrote: > Just a quick shot, are you sure your reverse DNS is OK? Yes. > If you set `UseDNS no` in /etc/ssh/sshd_config, is the SSH login faster? Setting "UseDNS no" does not solve the problem. Thanks, -- Laurent.

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Laurent Bonnaud
On 3/20/19 5:52 PM, Michael Biebl wrote: > Is this problem reproducible if you login locally? Sorry, I will have to wait until tomorrow to have physical access to this system... Thanks, -- Laurent.

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Michael Biebl
On 20.03.19 17:36, Laurent Bonnaud wrote: > Package: systemd > Version: 241-2 > Severity: important > > > Dear Maintainer, > > on this system, an initial ssh connection needs 11 seconds to complete (as > root or any other user). Further connections are fast. Is this problem reproducible if

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Michael Prokop
* Laurent Bonnaud [Wed Mar 20, 2019 at 05:36:44PM +0100]: > on this system, an initial ssh connection needs 11 seconds to complete (as > root or any other user). Further connections are fast. > This is not a slow boot problem because it occurs even when the machine has > been booted for days.

Bug#925160: systemd: user session slow to start (11 seconds)

2019-03-20 Thread Laurent Bonnaud
Package: systemd Version: 241-2 Severity: important Dear Maintainer, on this system, an initial ssh connection needs 11 seconds to complete (as root or any other user). Further connections are fast. This is not a slow boot problem because it occurs even when the machine has been booted for