|Re: [chrony-users] Not getting time from gpsd|
[ Thread Index |
| More chrony.tuxfamily.org/chrony-users Archives
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Not getting time from gpsd
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Mon, 8 Aug 2016 16:53:45 +1200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0-2; h=Feedback-ID:X-Smtpcorp-Track:To:Message-Id:Date: From:Subject; bh=vOYqhCm4NpXYe+4n0Sifppa9J2FwPrP70p1gwAz2KJ0=; b=n74Vf6PCX8cA XEoCVvvcf/rk8zERl4Mbiyg/mYCXUMkYwSiUUXXE5FDIY4c5EVvRz9TIl2cQUCrQwOCegZYxrYbUV X9MvkQ5H41eZqkWwkHSeGuGH9moHQ7uBSMJoAy0+ShOqwpXIMWQlCIe91ajuas1nrqTvjITN/41Fe qt9Cz1ZbMlrFUXH3fuZ02tf3K5BA20EjVzcI7LdNkICA4rRTyoAZGvYs7rnIazGVGZ7Xq3Fk1l8bX BK0J1ZcSNr6SIVmfwauWag8n6z9f/8DbCM0UF2hg0oGOyitQGw1w8q6ksJYf82Q5pfFylpUkIyjCD uDkGcmrzmJRozURlpXeG4w==;
- Feedback-id: 149811m:149811acx33YQ:149811slzGVtYoZQ:SMTPCORP
Debian jessie gets the start dependencies wrong and starts gpsd before starting chronyd.
The simple fix is to stop gpsd, wait a few seconds and then restart it. It should then attach to the chrony listening socket.
A long term fix is to sort out the dependencies. There was a lot of discussion of this on the gpsd mail list a few months back. A search of the their archives may be helpful.
> On 8/08/2016, at 4:21 PM, Steve Horton <stevejhorton@xxxxxxxxx> wrote:
> I see gpsd using the socket but I don't see chrony accessing it at all. Can you comment out the shm line and strace chrony again? I think that's where the issue is.
> On Aug 7, 2016 10:27 PM, "Chris Greenman" <chris.m.greenman@xxxxxxxxx> wrote:
> I've attached the strace files. The commands I used were:
> root@IrishMistII:/tmp# strace -o /tmp/chrony.strace.out chronyd
> root@IrishMistII:/tmp# strace -o /tmp/gpsd.strace.out gpsd -D 8 -F /var/run/chrony.ttyACM0.sock /dev/ttyACM0
> On Aug 7, 2016 12:50 AM, "Steve Horton" <stevejhorton@xxxxxxxxx> wrote:
> We need to see if gpsd is sending and if chrony is rx anything on that socket. I'd start both process in strace to srart. Then maybe start gpsd in debug -D 8 and see if its writing to that chrony socket. Strace will show what's happening underneath.
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.