I'm currently running a Pi as a file and Webserver on my small home network. My two Windows-10 PCs have the correct time, but I noticed the Pi time is approx 45 minutes off. No big deal, but when I save a file there, I'd like to see the correct time-stamp on it.
I have unplugged and replugged the PI, and also tried a
sudo /etc/init.d/ntp restart ..... but the clock is still slow.
/etc/ntp.conf is as follows (I've eliminated the # lines for brevity)
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server time.nrc.ca
server time.chu.nrc.ca
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery**
Running a sudo ntpq -p
shows....
remote refid st t when poll reach delay offset jitter
==============================================================================
time.nrc.ca .INIT. 16 u - 512 0 0.000 0.000 0.000
time1.chu.nrc.c .INIT. 16 u - 512 0 0.000 0.000 0.000
Anyone have an idea as to what my problem is?
UPDATE #2, Feb 11....
As the Raspberry time was more than 1000 seconds behind, I manually corrected it with
sudo date -s "(date and time)" but deliberately made it 5 minutes slow, just to see if I could get it updated via internet.
No luck so far.
I have also removed DHCP from the Raspberry Pi.
And have rebooted it as well as run
sudo /etc/init.d/ntp restart a couple of times
I have 4 ntp servers now- with an iburst attached.
#server ntp.your-provider.example
server time.nrc.ca iburst
server time.chu.nrc.ca iburst
server time.nist.gov iburst
server wwv.nist.gov iburst
But the Pi time is still 5 minutes slow. FWIW, I dual-boot Ubuntu systems with my Win-10 Pcs. Ubuntu has no problem getting correct internet time. I'll reboot one of these and attempt to see how Ubuntu has no problem acquiring the internet time via the edits and cmmds I used on the Pi. Stand by for more input here! ;-)
nptd
myself I do wonder about your use of only two time-servers, both seemingly very close to each other. – SlySven Feb 09 '16 at 22:27