Questions tagged [ntp]

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

Filter by
Sorted by
Tagged with
8
votes
2answers
10k views

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 ...
20
votes
4answers
15k views

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 ...
2
votes
1answer
1k views

Recommended way for a python script to check NTP update status, and initiate an update if necessary?

I am writing a data logging python script and I would like it to find out if the system clock has been synchronized via NTP recently, and if not, to attempt to cause it to happen before proceeding. ...
69
votes
14answers
355k views

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.
5
votes
2answers
3k views

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.
6
votes
4answers
41k views

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 ...
2
votes
1answer
12k views

How to use NTP on Raspberry Pi by local NTP server

I have Raspberry Pi Model-B with the Raspbian Wheezy OS and a local NTP server. I want to synchronise my Raspberry Pi board with my local NTP server (not using the Internet). All the process must be ...
3
votes
1answer
3k views

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'...
3
votes
3answers
3k views

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 ...
6
votes
3answers
5k views

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 ...
5
votes
1answer
9k views

NTPD not actually setting the time [closed]

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,...
4
votes
3answers
4k views

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 ...
3
votes
1answer
2k views

Sync system clock with GPS time on `systemd-timesyncd`

With the arrival of Raspbian Stretch, ntpd is replaced by systemd-timesyncd. I used to be able to sync the system clock with GPS time by adding a few lines to /etc/ntp.conf. Anyone has any clue how to ...
3
votes
3answers
15k views

Incorrect time until I restart the ntp server (multiple times)

I am using Raspberry PI Model B with Raspbian, installed by NOOBS, upgraded to the latest version. The NTP server is automatically started in the boot process. When I boot my RPI, the time is always ...
3
votes
1answer
7k views

Time and date on clean install of raspbian is very wrong

The time and date of my pi with a clean install of raspbian running is very wrong. If I run date now, it tells me this: Thu May 7 01:39:43 2015. Neither the time or date is right. I've tried to ...
2
votes
0answers
124 views

How to manually adjust system clock for testing purposes

I have written a Python script that is set to run different functions at different days/times. I would like to test it by setting the system clock to 1-2 minutes before the dates/times that the Python ...
2
votes
3answers
12k views

Timezone correctly set but incorrect output

I'm using a Raspberry 1B and I have reset the timezone with sudo dpkg-reconfigure tzdata I want to use Europe/Paris. It say it works correctly, the time is said to be CEST but it is totally wrong I ...
1
vote
2answers
2k views

ntpd -gq hangs and time is not updated

In attempts to synchronize time, following the advice to run $ sudo ntpd -qg. This does not terminate on its own, and the time is not updated. How to debug this problem? pi@raspberrypi:~ $ sudo /etc/...
0
votes
1answer
31 views

Switch out the X1 Oscillator on a RPI

Just like a lot of people I'm using a RPi as a NTP server. There is a nice thread about it here: Switch out the X1 Oscillator on a RPI 2/3 User @colintd had a brilliant answer about switching the ...
0
votes
2answers
457 views

What is the most apt way to setup a RTC?

I've gone through a plethora of sources and found it a little confusing with too much information hence posting this question. Firstly, the scenario is, I've set up my PI-3B(jessie) with PCF8523t RTC....