Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: RPi Clock Fix  (Read 1674 times)

tiffy

  • Kitizen
  • ****
  • Posts: 1319
RPi Clock Fix
« on: November 05, 2017, 05:36:54 PM »

An old issue I know and one close to MDWS, Tony's heart, incorrect RPi clocks.
An easy fix I've found on line which I have had to use a number of times on the 3 RPi's I look after running DSLStats to MDWS, one Mk.1 and two RPi Zero W's all running Raspbian.

To my surprise, all my RPi's survived last weeks GMT reset without any issues, reverted to GMT automatically.
Today, after a planned router/modem re-synch my RPi came back post re-boot with over an hour time error, I have read on the RPi forums that if a time error is greater than 100 sec's the Raspbian "ntp" routine can not correct this.
Apply the following fix:

From RPi command prompt:

sudo /etc/init.d/ntp stop
sudo ntpd -q -g
sudo /etc/init.d/ntp start

This will correct the RPi clock and bring it within range of the "ntp" routine which will now update from on line time reference sources.

Other fixes are available on line but this is simple and has always worked for me.
Logged
BT FTTP 150/30, BT Smart Hub 2

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43467
  • Penguins CAN fly
    • DSLstats
Re: RPi Clock Fix
« Reply #1 on: November 05, 2017, 06:24:30 PM »

Thanks for that, tiffy.
Logged
  Eric
 

anything