Gentoo Archives: gentoo-user

From: "Holger Hoffstätte" <holger@××××××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: chrony-3.3 hangs at boot
Date: Mon, 03 Sep 2018 21:50:16
Message-Id: pan$eea53$31938c4$bf7aa67$ee664e5f@applied-asynchrony.com
In Reply to: Re: [gentoo-user] Re: chrony-3.3 hangs at boot by Mick
1 On Mon, 03 Sep 2018 22:23:18 +0100, Mick wrote:
2
3 > On Monday, 3 September 2018 19:10:52 BST Holger Hoffstätte wrote:
4 >> On Mon, 03 Sep 2018 17:48:53 +0100, Mick wrote:
5 >> > I just noticed today chronyd hangs during boot for a minute and a half.
6 >> > The logs do not reveal anything amiss. I suspect it waits for a network
7 >> > connection, which is not yet up when chronyd launches.
8 >> >
9 >> > Sep 3 17:38:26 asus syslog-ng[1858]: syslog-ng starting up;
10 >> > version='3.13.2' Sep 3 17:38:26 asus chronyd[1930]: chronyd version 3.3
11 >> > starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP +SCFILTER -SIGND
12 >> > +ASYNCDNS -SECHASH +IPV6 -DEBUG) Sep 3 17:38:26 asus chronyd[1930]:
13 >> > Frequency -13.776 +/- 1.023 ppm read from /var/lib/chrony/drift
14 >> > Sep 3 17:38:26 asus acpid[1894]: starting up with netlink and the input
15 >> > layer Sep 3 17:38:26 asus acpid[1894]: 1 rule loaded
16 >> > Sep 3 17:38:26 asus acpid[1894]: waiting for events: event logging is off
17 >> > Sep 3 17:40:57 asus kernel: random: crng init done
18 >> > Sep 3 17:40:57 asus kernel: random: 3 urandom warning(s) missed due to
19 >> > ratelimiting
20 >> > Sep 3 17:40:57 asus chronyd[1930]: Loaded dump file for 10.10.10.1
21 >> >
22 >> >
23 >> > Have you noticed the same?
24 >> >
25 >> > Is there a fix/workaround for this?
26 >>
27 >> Yes and yes; countless people have been hit by this, I was probably the
28 >> first to notice/debug it. It happens due to changes in Linux' random number
29 >> generator, which is now slowly making it into older kernels as well.
30 >>
31 >> If you're interested in the gory details you can read about them
32 >> in the thread "Chrony vs. Linux RNG" at [1] or just update to chrony-3.4rc1
33 >> which contains the "fix". Despite being an rc1 it works fine as usual,
34 >> so short of applying the patch to your local build this is the easiest
35 >> option.
36 >>
37 >> cheers,
38 >> Holger
39 >>
40 >> [1]
41 >> https://listengine.tuxfamily.org/chrony.tuxfamily.org/chrony-users/2018/04/
42 >> threads.html#00036
43 >
44 > Thanks for this Holger, I had noticed in the logs a message just before
45 > chronyd started the kernel reporting "3 urandom warning(s) missed due to
46 > ratelimiting" but as this has been happening since the upgrade to 4.14.65-
47 > gentoo I didn't think it was kernel related.
48 >
49 > Anyway, I can confirm 3.4_pre1 available in the tree starts up fine with no
50 > delays.
51 >
52 > However, while shutting down I noticed:
53 >
54 > * Stopping chronyd ...
55 > * Error: chronyd failed to stop
56 >
57 > This is repeatable if I try to stop it manually. Version 3.3 didn't have this
58 > problem.
59
60 Ah yes, that's from upgrading. Apologies for the misleading advice,
61 I fixed that locally and forgot. :}
62
63 1) Edit /etc/init.d/chronyd and change occurrences of /run/chronyd.pid to
64 /run/chrony/chronyd.pid (i.e. add the subdirectory).
65
66 2) file a bug so that the init file gets fixed in portage as well. :)
67
68 cheers
69 Holger

Replies

Subject Author
Re: [gentoo-user] Re: chrony-3.3 hangs at boot Mick <michaelkintzios@×××××.com>