Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ntp]

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

2
votes
1answer
26 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 ...
1
vote
2answers
45 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 ...
4
votes
2answers
228 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.
1
vote
2answers
34 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 ...
1
vote
1answer
31 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 ...
1
vote
1answer
27 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 ...
3
votes
1answer
1k 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 ...
2
votes
2answers
582 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 ...
1
vote
1answer
64 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 ...
1
vote
0answers
63 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 ...
2
votes
0answers
480 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. ...
0
votes
2answers
856 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 ...
1
vote
5answers
758 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 ...
1
vote
1answer
189 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 ...
2
votes
1answer
985 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
1answer
223 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 ...
2
votes
0answers
55 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 ...
3
votes
1answer
660 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'...
7
votes
2answers
4k 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 ...
0
votes
0answers
523 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 ...
1
vote
2answers
1k 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
434 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 ...
3
votes
1answer
2k views

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

DS3231 RTC not keeping time after shutdown on Raspberry Pi?

I'm assembling a Smart Mirror for an applied project for college. This mirror has a Raspberry Pi 3 on the back. How this all started is that the campus' network blocks NTP, so we had to buy an RTC ...
0
votes
1answer
153 views

NTP crashes Raspberry Pi

I have a Raspberry Pi 3. I use it as a FTP-server provisionally. Every 2/3 days it crashes because of a problem with the NTP. I have cut the power to reboot it. I have the system logs which show ...
6
votes
1answer
5k views

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

Time and timezone issues on Pi

I've a raspberry Pi that I was using in EST timezone. It had ntp service installed (sudo apt-get install ntp) and the Pi was set to UTC timezone. The date on the Pi was correct, until I took the Pi to ...
3
votes
3answers
2k 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 ...
4
votes
1answer
2k views

Raspberry Pi 2: Sync clock with local server?

I have 10 Rpi2s with me and I have created a setup like this. My Windows system clock is set to local time once and I expect it to be powered at all times. It is a Workstation class system and it acts ...
2
votes
1answer
433 views

Can I tell if NTP Synch has happened since boot?

I'm using a Raspberry Pi 2 (Jessie) to log some data. It only runs for a few hours at a time. When I boot it, the clock is wrong. This has been discussed at length in a number of threads. I'd like to ...
2
votes
0answers
320 views

NTP configuration is not working

I'm working with 10 raspberry and they are all connected to the same network via Wifi. I need to get the right time from the network, so I modified the ntp.conf file with the IP of my network (10.1.65....
3
votes
2answers
804 views

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 ...
1
vote
2answers
1k views

Raspberry pi time wrong

My raspberry Pi 2 has a wrong date and it is not a timezone problem since UTC time right now is (6:53 PM Thursday, June 2, 2016) and running: pi@raspberrypi2:~ $ date -u mié jun 1 14:13:45 UTC 2016 ...
0
votes
0answers
101 views

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...
1
vote
1answer
282 views

How can a raspberry pi get time from another pi

I'm trying to set a slave pi to let get time from master pi using ntp service. The master pi has been set to be a hotspot (which is not connected to the internet) and the slave pi connect to it via ...
4
votes
3answers
2k views

Raspberry Pi Time is off by 45 min

I'm currently running a Pi as a file and Webserver on my small home network. My two Windows-10 PCs have the correct time, but I noticed the Pi time is approx 45 minutes off. No big deal, but when I ...
3
votes
2answers
778 views

Make sntp run on boot in Jessie

I am building a raspbian-based distro (FullPageOS), and it seems like on boot of the latest Jessie sntp service is running, internet connection is established, but sntp is not updating the clock to ...
1
vote
1answer
904 views

Default NTP server on Arch Linux for rPI 2

I have a RPi 2 running Arch Linux (Linux 4.1.6-2-ARCH), I checked and it does not use ntpd but systemd-timesyncd. I quote from timesyncd wiki page To add time servers or change the provided ones, ...
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
3answers
11k 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 ...
0
votes
0answers
147 views

How do I set NTP time on my PiCamera/camera.py video feed?

I want to synchronize multiple RPIs to a single clock. For this I use a computer as the ntp server for all of them. All the RPIs now have the same time(server time). After synchronizing I want record ...
2
votes
0answers
1k views

Get time using NTP from LAN PC [closed]

For my application, the Raspberry Pi is not connected to the Internet. Instead, it communicates to my PC via a direct ethernet connection. The PC is a Windows 7 desktop PC which is NOT connected to ...
2
votes
1answer
1k views

configure timezone and DST settings

I'd like my raspbian to switch to european summertime (timezone Berlin) automatically. I've already configured the timezone to Europe/Berlin with dpkg-reconfigure tzdata and the current settings are ...
2
votes
1answer
2k views

Cannot ping localhost

While setting up an ntp client/server, I found a weird error where the client cannot check it's own time. I have traced this back to the fact that all of these commands time out: ping localhost ping ...
3
votes
2answers
2k views

How to run the NTP daemon automatically?

On my RaspBMC, the time drifts pretty much (more than a day in one month). So I started to use NTP, but have problems running it. I called sudo update-rc.d ntp enable, I also added DAEMONS=(!hwclock ...
1
vote
4answers
127 views

why two RPis show quite different ntp results?

I have two RPis running on the same network, with the same Internet access. One of them is a B and the other one a B+ model. Both run the same distro with ntp enabled for quite a long time (this is to ...
1
vote
1answer
1k views

Raspberry Pi, GPS (adafruit) and ntp does not work

How to achieve that ntpd synchronizes time from GPS? I have adafruit ultimate gps (without battery). It is connected to raspberry and i got fix. PPS pin not connected. I configured ntpd to use GPS ...
1
vote
1answer
318 views

Update time whenever possible

The Pi running Raspbian does not have a hardware clock or RTC (serial is being used by XBee) and whenever its turned off and restarted again, the time goes out of wack and we need to SSH in to ...
0
votes
1answer
9k 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 ...
2
votes
1answer
474 views

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 ...