Questions tagged [ntp]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
25 views

Does systemd-timesyncd still check for the presence of other ntp daemons?

In buster, the following command could be used to list the configuration of systemd-timesyncd: $ systemctl cat systemd-timesyncd Note the reference at the end of the cat listing to a [Unit], with ...
Seamus's user avatar
  • 21.1k
3 votes
2 answers
271 views

Raspberry Pi network time, and accurate time for astronomy Data taking needs, at a loss

Does anyone know how to get network time for collecting data using Raspberry pis with no backup battery. Regular googling has gotten me things that do not work. They are Pi 4B with 4GB or 8 GB of RAM ...
strange_octopi's user avatar
1 vote
1 answer
103 views

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 ...
Tom's user avatar
  • 11
0 votes
1 answer
102 views

Corrupted syslog file. Has anyone a clue what could have happened here?

this is the extract of the syslog from a Raspberry Pi. On it runs an unbound server and other network stuff. For some time I have the problem that in "regular" intervals (about every 4 weeks)...
JJandke's user avatar
  • 71
1 vote
0 answers
744 views

How to make system clock to synchronize? [closed]

I bought a new RPi 4 model B. When doing the setup and setting an Internet connection, the RPi told me that the clock could not synchronize. After a couple of attempts I continued anyway, and obviusly ...
delgado's user avatar
  • 23
0 votes
1 answer
1k views

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 ...
Rankinstudio's user avatar
0 votes
2 answers
201 views

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 ...
Ross's user avatar
  • 152
0 votes
1 answer
698 views

raspberry pico and circuitpython with ethernet and ntp server sync

I am trying to built a clock with rpi pico and circuitpython. For iot connection I use a WIZNET5K module and so I used the adafruit_wiznet5k library. It connects alright. The next step is to sync the ...
thermike's user avatar
0 votes
1 answer
1k views

Raspberry Pi defaults to Ethernet connection over Wifi

I have been trying to connect my Raspberry Pi to the internet through its built in Wifi, as well as controlling/ accessing the Pi via ssh though a Static IP address via the built in Ethernet port. ...
Slazl's user avatar
  • 3
3 votes
1 answer
893 views

GPS data is collected well, but pps data is not collected

I have a Raspberry Pi 3 B+ with Raspberrypi add-on GPS module based NEO-6. I configured the device to act as NTP server but the NTP server won't work. When I use ppstest command, I get the following ...
Harzarics's user avatar
4 votes
6 answers
15k views

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 ...
treskilion's user avatar
0 votes
1 answer
794 views

NTP not syncing

I need some help regarding the NTP daemon. I have problem to make ntpd sync with any external NTP servers. Raspberry IP is 192.168.10 (eth0). To simplify troubleshooting I am using the default ...
amprantino's user avatar
1 vote
2 answers
627 views

How to make sure RTC is accurate

I am using a RTC. I read the documentation for this module that it will lose a second every 24 hours. So, I assume i have to update it myself. After Googling I was drawn to this solution: hwclock --...
user avatar
0 votes
1 answer
154 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 ...
JohnnyBravo's user avatar
0 votes
0 answers
400 views

How to configure the Pi to automatically sync its time with the first android device that connects to it

I have a Raspberry Pi that has no access to internet. It is configured as an access point that I can connect to using my smartphone or tablet. Time on the Raspberry Pi is never correct after booting ...
Mehdi's user avatar
  • 101
2 votes
1 answer
153 views

How to use ntp time as default time while using Raspberry Pi as a gateway?

I am using Raspberry Pi 4 as a gateway to my esp8266 devices. I have connected ethernet to Raspberry Pi for internet connection. It works fine. I want to generate NTP time in my ESP8266 device. When I ...
Pratik's user avatar
  • 31
2 votes
1 answer
2k views

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 ...
Peggy Schafer's user avatar
2 votes
0 answers
149 views

DNS and NTP not working after installing NetworkManger on Raspberry Pi

can anyone help me, this issue has been driving me mad for 4 months, I have very limited experience with any form or Linux and at a complete loss at to how to make it work. I have a Raspberry Pi 4 ...
David R Yuill-Kirkwood's user avatar
2 votes
2 answers
3k views

GPS (USB) with NTP has a consistantly large offset and high jitter from public NTP sources

I have a Raspberry Pi Model B Rev 2 (BCM2835 rev 000e). Connected to it is a USB G-Mouse GPS receiver - which is really just a u-blox 7 GPS receiver. I've had it running for about 15 hours now and it ...
lightswitch05's user avatar
3 votes
3 answers
2k views

How to know if time is synced?

I'm writing a software in C and it is running as a systemd service. I need the service to run after time has synced or alternatively, I need a way for my C program to identify if time has synced. I'm ...
Diogo Melo's user avatar
0 votes
0 answers
147 views

Raspberry Pi Date and Time wrong with using both Ethernet and WiFi

Update I resolved the issue. My static ip address had a default gateway set. Once removed the issue was fixed. I have a Raspberry Pi that I use in headless mode, and it has been configured to ...
Ian's user avatar
  • 9
1 vote
1 answer
2k views

Configure Date and Time from On Boarding Script

I work at a manufacturing plant and we use raspberry pis for videos on a schedule. We use Screenly to schedule when certain videos will play back but currently I also need to manually correct the date ...
Chad's user avatar
  • 11
0 votes
2 answers
814 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....
Manoj's user avatar
  • 11
1 vote
1 answer
503 views

Raspberry Pi 3 B+ not reading time from the GPS

I have a Raspberry Pi 3 B+ with Adafruit Ultimate GPS HAT (https://www.adafruit.com/product/2324) with external antenna. I configured the device to act as NTP server but the NTP server won't work (No ...
MikeAlbert's user avatar
1 vote
1 answer
169 views

Raspberry PI 3 B+ as NTP server cannot sync

I have setup my RPI 3 B+ model to act as an NTP server but I'm not able to sync my window machine to it. The NTP server uses PPS from GPS devices (Adafruit ultimate GPS hat) attached to external ...
MikeAlbert's user avatar
0 votes
0 answers
580 views

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 ...
livio's user avatar
  • 19
0 votes
0 answers
1k views

Raspberry pi ntp client fails to sync on network master clock

I have a pi3B+ with stretch. I am trying to sync its clock using a network master clock (a pc set as ntp server) through direct ethernet connection. I can't see my server synching the pi. I followed ...
livio's user avatar
  • 19
0 votes
1 answer
4k views

Raspberry Pi as LAN Time Server?

I found variations to my question but I'm not sure those other topics answer my question specifically. I have several smart switches on which I have flashed custom firmware. One of the primary ...
Mike Ingraham's user avatar
1 vote
1 answer
330 views

ntp doesn't work in raspberry pi

the problem is my raspberry pi 3 doesn't show the correct date and time.i edit this file: sudo nano /etc/ntp.conf with correct server addresses and i try this commands : sudo /etc/init.d/ntp stop ...
ali's user avatar
  • 37
1 vote
2 answers
271 views

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 ...
nomadic_squirrel's user avatar
5 votes
2 answers
6k 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.
Steven Lu's user avatar
  • 291
1 vote
2 answers
150 views

Bash script doubt - How can I automatically update the hwclock with NTP when I have internet connection

Bash script in How can I automatically update the hwclock with NTP when I have internet connection seems not to run as expected in Raspbian Stretch 9.4 The log file will be created with the first ...
Mike's user avatar
  • 19
1 vote
1 answer
74 views

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 ...
Alan Malkiel's user avatar
1 vote
1 answer
644 views

Synchronise Pi clocks on a LAN with no Internet connection

I'm setting up an installation where a small number of LAN connected Pis (model 3) will display a number of image slideshows, each on a separate display. As the images on each of the displays must ...
Socrats's user avatar
  • 15
7 votes
1 answer
28k views

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 ...
Jeremy Impson's user avatar
3 votes
3 answers
6k views

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 ...
bobuk's user avatar
  • 141
1 vote
2 answers
270 views

Temperature variations affect NTP server accuracy

I have a ‘fun’ problem I’m trying to sort out. Bear with me! I’ve been running a Raspberry Pi 1 B+ for a year or so as an NTPsec Stratum one timeserver - using the GPS Hat (Here’s how you can make ...
anastrophe's user avatar
1 vote
0 answers
174 views

Verifying how recently Pi system time has been synched to ntp servers within a script?

Questions are at the bottom. When adding a time stamp based on the Pi's system time to a data file, I'd like to include some information about how reliable that time is. For example, if the Pi has ...
uhoh's user avatar
  • 562
3 votes
1 answer
3k 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. ...
uhoh's user avatar
  • 562
-1 votes
2 answers
2k views

setting local ntp server does not work

I want to sync my RPI 3 to a local time server. I've installed ntp using apt-get. I edited the file /etc/ntp.conf and added the following line server [ip-address]. I restarted ntp using sudo ...
WalterBeiter's user avatar
8 votes
3 answers
5k 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 ...
Peter's user avatar
  • 191
1 vote
1 answer
745 views

System time problem on Raspberry Pi after power outage

If have a raspberry pi on Raspbian running a home automation server. That server depends upon accurate system time on the raspberry pi. When I have a power outage for a bit of time and then the ...
jfriend00's user avatar
  • 175
3 votes
1 answer
3k 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 ...
Nick Lee's user avatar
  • 133
3 votes
1 answer
596 views

NTP—Master for WLAN without acces to the internet

I have successfully managed to setup an RPi3 as a WLAN router, such that other clients can connect to it. In case the master is connected via Ethernet and has Access to the internet, that connection ...
philipp's user avatar
  • 193
2 votes
0 answers
252 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 ...
MattSidor's user avatar
  • 121
4 votes
1 answer
7k 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'...
Michael Hanagan's user avatar
9 votes
2 answers
13k 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 ...
SDsolar's user avatar
  • 2,328
0 votes
0 answers
637 views

Raspberry PI3 RTC problems with ntpd on jessie

i am looking for a solution that can prefer NTP, updating the RTC when possible, and then fall back to the RTC when no network is available. it seems that NTP do this job and when the ntp is running ...
hossein valizadeh's user avatar
1 vote
2 answers
3k 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/...
Sassa NF's user avatar
  • 111
0 votes
1 answer
1k views

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 ...
yscustom's user avatar