Questions tagged [ntp]

NTP, Network Time Protocol for time synchronization between computer systems over UDP.

The ntp protocol is, according to Wikipedia:

... a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in current use. NTP was originally designed by David L. Mills of the University of Delaware, who still oversees its development.

It is the main way - but others do exist - for a network connected device (including Raspberry Pis, which do not have a Real Time Clock built-in) to get and keep the time of day; it can also discipline most locally added RTC modules that might be added to an RPi, to improve their accuracy should one be present.

93 questions
5
votes
2 answers

NTP is not enabled (doesn't exist) but Pi figures out timezone and time. How?

the ntp string isn't found in syslog. It's definitely not running. But when it has internet access, it has the right time. What's the mechanism? This is on Raspbian Stretch minimal install.
Steven Lu
  • 291
  • 6
  • 15
4
votes
1 answer

Determining when NTP is active

I have a Python script that runs at startup and needs the correct time in order to function properly. I have setup the raspi-config to wait for a network connection before continuing so the code won't run until there is an internet connection (I…
3
votes
3 answers

Setup Raspberry Pi3 as NTP server (not using external NTP server)

I've searched around, but I cannot find an answer. Can I use my Raspberry Pi as an NTP server (independently). I want to synchronize 4 devices on a LAN for logging. They will be on a LAN with no WAN access... one is a Cisco Switch, one is the Pi…
bobuk
  • 141
  • 1
  • 3
3
votes
2 answers

Sync Raspberry Pi with NTP Server on Boot

I am using my Raspberry Pi with OpenMediaVault, a variant of Debian/Raspian intended for running a NAS server. The web interface for the operating system features a user interface that allows for hardware usage to be tracked using graphs generated…
2
votes
2 answers

Ntp service don't runs and timedate are wrong

My raspberry was wrong time and date. I run 'ps auxwww | grep ntp' and i get: pi 7282 0.0 0.1 4248 1480 pts/0 S+ 05:50 0:00 grep --color=auto ntp So i don't have ntp service running.. sudo systemctl status ntp.service ●…
R. Rodrigues
  • 51
  • 1
  • 8
2
votes
1 answer

Why my time is not correct, it is always 12 hours late

exact with the minutes but wrong with the hours. Mon Sep 8 08:54:44 BST 2014. When actually it is 20:54. I did : sudo /etc/init.d/ntp restart at least ten times no avail. My raspi activates a timelapse camera and has been working for month…
user3315730
  • 177
  • 1
  • 3
  • 8
2
votes
1 answer

How to set NTP client on RPi-4 to point to a local IP on my lan?

I'm putzing with RPi-4 with (I guess) stretch and initially both the NTP= and Fallbackntp= lines of timesyncd.conf are hashed out. Yet service ntp status shows it soliciting 10 pool servers. When I set my local lan router on the NTP= line and…
1
vote
2 answers

pi zero running raspbian has UTC time 4 hours off

Ok, I have this raspberry pi zero that's been running for most of a year now and I noticed a few weeks ago that the time was off by several hours. I did some digging and it just plain thinks that UTC time is 4 hours before what it should be. I poke…
nomadic_squirrel
  • 177
  • 1
  • 1
  • 7
1
vote
1 answer

Denver time zone shows EDT, -0400, should be MDT, -0600

Output from %timedatectl status is "Time zone: America/Denver (EDT, -0400)" Something is corrupt since Denver is in fact MDT, -0600. Is there a file I can remove and replace? Edit: As Jaromanda has pointed out, the file to replace is "Navajo", which…
Alan Malkiel
  • 73
  • 1
  • 6
1
vote
1 answer

ntpq -pn broadcast is stratum 16

I am working on a project, in which I set up a Raspberry Pi Model 4B as NTP-Server, where the Pi is using an USB GPS to get the correct time. This works fine! Now I want the Server to broadcast the correct time to everyone in the network. Currently…
Tom
  • 11
  • 2
0
votes
0 answers

cannot sync timedatectl (pi to PC)

when I type timedatectl I can see that sync is active. however the pi fails to get the time from a PC connected to it (on this pc the service W32time is running and should provide time info to all connected clients, this was configured as previously…
livio
  • 19
  • 3
0
votes
1 answer

ntp.conf Permission Denied on Pi3

I'm having an issue with my new Pi. I picked the starting project of Stratum 2 NTP server. At a minimum I would like to act as a local NTP server for machines on the LAN. Per multiple sources online I've tried : /etc/ntp.conf bash : /etc/ntp.conf…
yscustom
  • 13
  • 3
0
votes
0 answers

Wrong date after reboot ... always the same... 2016-10-02 (future!)

Why my Raspberry after reboot sets date to 2016-10-02, every time? Date after reboot is exactly 2016-10-02 every time.... there is NTP deamon that changes it, but before it, it's always 2016-10-02...
Flash Thunder
  • 345
  • 1
  • 4
  • 15
0
votes
1 answer

Cant get NTP service working on PI

I've read a few posts on here about this and I can't seem to solve it. The NTP service will not start with my pi. Model 4B Revision 1.2 (4 GB) I'm in a situation where the pi is blocked from internet but we have some local time servers setup. When I…
Rankinstudio
  • 111
  • 6
0
votes
2 answers

Default latest install of OS and NTP how to setp updates of leap-seconds.list

I have just installed a default image and added the NTP package and added my local NTP servers to it When NTP starts it gives the warning ".....leap-seconds.list.... will expire in less than 18 days" This is correct as the leap-seconds.list is one…
Ross
  • 152
  • 1
  • 8
1
2