Re: [chrony-users] Chrony not taking SOCKET data from Application

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Hi Miroslav Lichvar,

I have used a different socket to send the GPS time to chrony. But I see GPS status in chronyc as #?. And I didnt see the GPS time taken into consideration by chronyd. And I didnt see in the log that it received samples from SOCK refclock.

Can you please check if my configuration is correct and how to configure chrony to take GPS time.

Please find the attachments of the config file and log taken.

Thanks & Regards
Sarveshwar.K

On Mon, Jan 23, 2023 at 7:49 PM sarveshwar k <sarveshwar.kt@xxxxxxxxx> wrote:
Hi Miroslav Lichvar,

Yes I used the default socket created when run the chronyd. I will use another socket to be created by chronyd for getting time.

Thanks & Regards
Sarveshwar.K

On Mon, Jan 23, 2023 at 6:04 PM Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
On Mon, Jan 23, 2023 at 05:54:20PM +0530, sarveshwar k wrote:
> But I see the data is not received at all. I expected read_sample()
> function will be triggered when received on the socket. But I am seeing
> error message from file cmdmon.c file mentioning "Read command packet
> without the source address". I am using Unix Domain socket with SOCK_DGRAM
> option.

That suggests you are sending the message to the cmdmon socket
(default /var/run/chrony/chronyd.sock) instead of the socket specified
by refclock SOCK directive.

--
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.

Attachment: chrony.conf
Description: Binary data

Attachment: c3.log
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/