2

I used the RPi Imager on my Mac to setup RPi OS 64-bit (the recommended version for me). Immediately after booting for the first time, I noticed that the date is stuck on 12/5/2023 (the date of the last release) and the time is also wrong. Basically the same as this issue. I'm new to this, but I believe it is affecting my ability to update and install various things. I've tried many of the suggestions I found online such as:

  • reconfiguring the file at /etc/systemd/timesync.conf
  • sudo systemctl enable systemd-timesyncd
  • sudo timedatectl set-ntp true

I've also verified that I have internet connection. I know I could also manually reset the date and time, but I'd like a more permanent solution. Is this a common problem when starting up out of the box or is there some other issue that I may not be aware of?

EDIT:

I reflashed it and still have the same problem: timedatectl status returns:

Local time: Tue 2023-12-05 00:31:45 EST
Universal Time: Tue 2023-12-05 05:31:45 UTC
RTC time: Thu 1970-01-01 00:06:24
Time zone: America/New_York (EST, -050)
System clock synchronized: no
NTP service: active
RTC in local TZ: no

I've also updated /etc/systemd/timesyncd.conf the only changes are uncommenting all the lines and adding NTP=us.pool.ntp.org:

[Time]
NTP=us.pool.ntp.org
FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
RootDistanceMax=5
PollIntervalMinSec=32
PollIntervalMaxSec=2048
ConnectionRetrySec=30
SaveIntervalSec=60

sudo systemctl status system-timesyncd returns

systemd-timesync.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesync.dservice; enabled; preset: enabled)
Active: active (running) since Tue 2023-12-05 00:44:01 EST; 9min ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 2043 (systemd-timesyn)
Status: "Connecting to time server 216.229.4.69:123 (us.pool.ntp.org)."
Tasks 2 (limit: 9250)
CPU: 57ms
CGroup: /system.slice/systemd-timesyncd.service

Dec 05 00:44:01 [host] systemd[1]: Starting systemd-timesyncd.service - Network Time Synchronization...
Dec 05 00:44:01 [host] systemd[1]: Started systemd-timesyncd.service - Network Time Synchronization.
Dec 05 00:44:11 [host] system-timesyncd[2101]: Timed out waiting for reply from 216.229.4.69:123 (us.pool.ntp.org).
Dec 05 00:44:21 [host] system-timesyncd[2101]: Timed out waiting for reply from 69.10.223.132:123 (us.pool.ntp.org).
Dec 05 00:44:32 [host] system-timesyncd[2101]: Timed out waiting for reply from 162.159.200.1:123 (us.pool.ntp.org).
Dec 05 00:44:42 [host] system-timesyncd[2101]: Timed out waiting for reply from 198.60.22.240:123 (us.pool.ntp.org).
Dec 05 00:45:24 [host] system-timesyncd[2101]: Timed out waiting for reply from 129.250.35.250:123 (us.pool.ntp.org).
Dec 05 00:45:35 [host] system-timesyncd[2101]: Timed out waiting for reply from 72.46.53.234:123 (us.pool.ntp.org).
Dec 05 00:45:45 [host] system-timesyncd[2101]: Timed out waiting for reply from 72.14.183.39:123 (us.pool.ntp.org).
Dec 05 00:45:55 [host] system-timesyncd[2101]: Timed out waiting for reply from 198.137.202.56:123 (us.pool.ntp.org).

8
  • as per the "basically same" link - what is the contents of /etc/systemd/timesync.conf now that you changed it? what is the output of systemctl status systemd-timesyncd? what is the output of timedatectl - of course, the pi5 has an onboard RTC, so that may play a part in the solution too Commented Feb 26 at 23:25
  • @Milliways I didn't do any sort of custom configurations when connecting the RPi to the network. I'm using the RPi desktop and it shows it is connected, I'm also able to ping various websites, as well as use the browser. My laptop and phone are connected to the same network with no issues.
    – yuki
    Commented Feb 26 at 23:40
  • @JaromandaX I edited the post with more details about the timesyncd.conf and the outputs of timedatectl and systemctl status systemd-timesyncd
    – yuki
    Commented Feb 27 at 0:31
  • what's the result of ping us.pool.ntp.org Commented Feb 27 at 0:52
  • try copying the fallbackNTP values to NTP (not sure why the fallback isn't even tried!) - I suspect you're "too far" (in network terms) from the US ntp pool - if the result of the above ping tells you TTL expired in transit then that would be the case ... you are in the USofA right? Commented Feb 27 at 0:55

3 Answers 3

2

This is a networking issue not a time issue (possibly external to your Pi unless you have an error in network configuration).

If you set time (and have a RTC battery) it should work until the networking issue is resolved.

1
  • In my case, my Firewall was blocking the debian ntp servers *.debian.pool.ntp.org, where * means 0 to 4). After I allowed those in my FW it seems to be working OK, again. Commented May 9 at 13:02
0

i was looking answer to our rpi5 timesync problem here

i did this

sudo apt install systemd-timesyncd

it helped a lot

after that

sudo timedatectl set-ntp true

and my rpi5 takes now time from internet

(i think that earlier i installed ntp too)

before those i tried all normal ways but problem was something was missing

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Apr 22 at 16:56
0

I followed a lot of the instructions above but still had issues with RPI 5 running Kali Linux. I had made necessary changes to charge rechargeable battery in the config.txt file in the boot folder but still issues. Confirmed battery voltage was 3 V in terminal. Had to uninstall ntp and reinstall systemd

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented May 26 at 1:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.