Qsync problem - successful sync, but then retries forever
.
Hi guys. I'm on Easy Buster, and I'm having a problem with qsync.
When the qsync service is enabled, after bootup the system time is indeed correctly set after a few seconds of the internet connection going active, which is fine, but it looks like qsync keeps trying to sync again, about every 5-6 seconds, apparently forever.
After every 5-6 seconds of an empty 'netstat' command, I get this for 5-7 seconds:
Code: Select all
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:123 0.0.0.0:* 9211/ntpdate
udp6 0 0 :::123 :::* 9211/ntpdate
Then, empty 'netstat' for another 5-6 seconds, then the above again. It seemingly repeats forever.
Because it looks like it worked just fine the first time (as verified by looking at the system clock), why does this happen? I DO NOT want to keep spamming the ntp servers every 5-6 seconds, 24x7, for no reason.
I noticed that doing my own 'ntpdate pool.ntp.org' command does not stop the problem, so I tried running /usr/sbin/qsync which brought up the GUI, so I appended --help to look for a 'run silently, no GUI' option, but merely appending --help did exactly that. No GUI, and during the run, netstat showed it connected to north-america.ntp.org and updated the time, then exited and the command prompt returned. It also stopped the problem! No more NTP connections every 5-6 seconds. Even weirder, the problem remained gone even after multiple reboots!
Why would that fix it? Anyway, in case the fix isn't permanent, I made a script and put it in /root/Startup. It sleeps for 30 seconds (to let the internet connection get established), then does "/usr/sbin/qsync --help". I assume this should fix the problem permanently.
Anyone have any idea what this problem is/was all about? I Googled a lot, and am still baffled as to why. Will my improvised fix keep the problem from happening again? Thanks!
(P.S. -- qsync seems to use the "-b" option of ntpdate, which forces use of step instead of adjust, whereas my manually-run ntpdate commands don't specify "-b". Not sure if that is relevant. Regardless, qsync should not have this "retry forever after success" bug to begin with.)
.