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

yuki
  • 29
  • 1
  • 4

3 Answers3

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.

Milliways
  • 62,573
  • 32
  • 113
  • 225
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

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