Re: [chrony-users] Chrony refclock socket 'disappears' |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Chrony refclock socket 'disappears'
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 12 Feb 2024 14:13:08 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707743591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3LDiIi67y7J7/MFT2z3Ik92b7TiZHy6VngvXSWuIhSg=; b=WAEevEWiO0DE4KE6PDsm0zPsCO6RStpGq9o5PhEQFRgk3F8ff45N6d5HG7P8gUR8B+Bj/l aCXv1lhiJjc7f34WQH9JpjKV5wzAX6eJ186kx9p51BdZDKfWmMCPNF/3HNAC/qRbzogLmX /4k15Ju3RpEclmpPik0aV8dSBnu8Tt8=
On Mon, Feb 12, 2024 at 07:14:24AM -0500, Kevin P. Fleming wrote:
> However, randomly, the GPS source just stops, and Chrony starts tracking one of the servers from us.pool.ntp.org. With the current configuration files there is nothing output in any logs (either for Chrony or gpsd) when this happens, but if I restart gpsd then I see this:
>
> Feb 12 06:16:56 core23-a systemd[1]: Starting gpsd.service - GPS (Global Positioning System) Daemon...
> Feb 12 06:16:56 core23-a gpsd[2349564]: gpsd:ERROR: SHM: shmget(0x47505344, 29416, 0666) SHM export failed: Invalid argument(22)
I'd suspect another gpsd instance started for some reason and
interfering with this one. Maybe a USB device is plugged in and some
script starts a new instance instead of adding the device to the
existing one?
> What can I do to figure what may be causing this? Is it safe/wise to run chronyd in 'production' mode with "-L 2"? This situation only occurs about once per week across the two machines, so I'll have to run with logging enabled for quite some time to catch it.
-L 2 will reduce logging. -L 0 is default. -L -1 would log debug
messages if they are compiled in.
You can try attaching to the chronyd process with strace to confirm
it's not receiving anything on the socket when it happens. It would be
just waiting in the select() call.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.