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.

95 questions
83
votes
16 answers

How to force NTPD to update date/time after boot?

The Raspberry Pi lacks a hardware clock. How do I force NTPD to update date/time immediately after every boot? I'm running Raspbian and the Raspberry Pi is connected using an Ethernet cable.
Alessandro Da Rugna
  • 1,236
  • 3
  • 13
  • 17
25
votes
4 answers

How is time kept on the Raspberry Pi?

How is time kept on a Raspberry Pi with the latest Raspbian release? What sets the internal clock from an NTP server? What happens when no NTP server is available? From my program I am trying to determine if the time has been set from NTP and ask…
Guy
  • 1,667
  • 1
  • 16
  • 18
17
votes
3 answers

Time and timezone issues on Raspberry Pi

I've a Raspberry Pi that I was using in the EST timezone. It had an NTP service installed (sudo apt-get install ntp) and the Raspberry Pi was set to the UTC timezone. The date on the Raspberry Pi was correct, until I took the Raspberry Pi to the…
Ninja
  • 271
  • 1
  • 2
  • 5
9
votes
3 answers

Switch out the X1 Oscillator on a RPI 2/3

Just like a lot of people I'm using a RPi as a NTP server (more info about the basic setup here: https://framkant.org/2017/03/stratum-1-ntp-server-with-freebsd-on-raspberry-pi/) I have found that the stability is really bad and it's especially…
Peter
  • 201
  • 2
  • 6
9
votes
2 answers

How do I set Raspbian to use the primary time server time.nist.gov?

I have several Rpi3s running Raspbian. They collect data and I use FileZilla to copy data from one to another. Ideally, I am only copying files that have changes or are new. FileZilla can be installed on a PC at FileZilla download…
SDsolar
  • 2,378
  • 8
  • 26
  • 43
8
votes
3 answers

Chrony doesn't sync time with gpsd

I have a Raspberry Pi that will be used for logging sensor data while not connected to the internet. Since the Raspberry Pi doesn't have an RTC, and to still get the actual time, I want to use a GPS receiver for the time. I would like to use gpsd…
Frank Kusters
  • 221
  • 2
  • 5
7
votes
1 answer

How to set custom NTP servers in recent raspbian (Stretch) systems?

How do I set the NTP server setting to a custom value in recent versions of Raspbian? I've noticed in a Stretch image that /etc/ntpd.conf does not exist in the default full image, nor is ntpd process running or even installed, yet when on an…
Jeremy Impson
  • 283
  • 1
  • 3
  • 9
7
votes
1 answer

How to disable or shutdown NTP daemon?

I am running PI 3 as a standalone system. Therefore, it won't have internet connection and pi's date and time is manually set and Real Time Clock chip is used to keep the pi's date/time current. It works great. However, after running into unrelated…
ThN
  • 1,081
  • 6
  • 22
  • 37
6
votes
4 answers

NTPd is not updating time

I am running raspbian wheezy, upgraded to all the latest packages. The only custom package installed on it is Oracle's Java 8, everything else and its configuration is stock. Yesterday I noticed that the rpi time was wrong (after a short power…
danielv
  • 221
  • 1
  • 2
  • 6
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
5
votes
1 answer

NTPD not actually setting the time

NTPD appears to run successfully and poll the time server, however it doesn't actually set the time. # ntpd -d & ntp engine ready reply from 83.170.75.28: offset 1348642593.061240 delay 0.035977, next query 9s # date Thu Jan 1 10:53:29 BST…
Jivings
  • 22,656
  • 11
  • 94
  • 140
5
votes
8 answers

Raspberry pi cannot synchronize clock

I have bought three raspberry pi's with the intention of using them as temperature sensors throughout the building. I have bought the following models: 1 raspberry pi 4 model b 2gb 2 raspberry pi 4 model b 4gb (due to chip shortage 2gb were no…
treskilion
  • 81
  • 1
  • 1
  • 7
4
votes
1 answer

Time sync with WiFi

It looks like the ntpd doesn't get the correct time with WiFi. My Raspberry Pi's are connected via WiFi dongles (which work without problems) to my network. The odd thing is, I read that the time should be on "Jan 1, 1970" if it doesn't work…
Dominik
  • 350
  • 1
  • 4
  • 10
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…
4
votes
3 answers

Why isn't NTPd updating local time?

I'm really happy with my Pi so far, but now that the website I'm developing on it is starting to need the time and date, I thought it was about time to get NTPd working. So I installed an NTP server onto my Windows machine which acutally has a clock…
phillid
  • 79
  • 1
  • 6
1
2 3 4 5 6 7