![]() |
[PROBLEM] Wrong date/time - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] Wrong date/time (/showthread.php?tid=5632) |
Wrong date/time - Sehnsucht - 06-13-2023 I just noticed both my moOde boxes have the wrong date/time. Pretty sure it's been correct for years. I'm on version...well, not sure where the version is but my install log ends with: 20230317 090950 updater: Finish 2023-03-14 update for moOde Isn't incorrect date/time a potential cause of authentication issues? RE: Wrong date/time - Tim Curtis - 06-13-2023 I've never seen that message before. After rebooting do the following: Menu, Configure, System Menu, System info The current time is printed in the System Parameters block near the top. RE: Wrong date/time - Sehnsucht - 06-13-2023 (06-13-2023, 11:46 AM)Tim Curtis Wrote: I've never seen that message before.Sorry, that last line was in the wrong font - not part of the log! Ah - never realised the menu gave different options from different pages! moOde release = 8.3.0 2023-03-14 RaspiOS = 11.6 Linux kernel = 5.15.84-v8+ #1613 Platform = Pi-4B 1.1 2GB Architecture = aarch64 (64-bit) System uptime = up 3 hours, 57 minutes Timezone = Europe/London Current time = 2023-06-06 22:24:03 Yeah, that's not the right date/time. The other one: moOde release = 8.3.0 2023-03-14 RaspiOS = 11.2 Linux kernel = 5.15.84+ #1613 Platform = Pi-Zero W 1.1 512MB Architecture = armhf (32-bit) System uptime = up 1 minute Timezone = Europe/London Current time = 2023-06-05 22:36:34 Very similar date/time. RE: Wrong date/time - Tim Curtis - 06-13-2023 Check the time sync service from command line. If it is not able to connect to Internet time servers there should be some errors. Command Code: systemctl status systemd-timesyncd Example Code: pi@moode:~ $ systemctl status systemd-timesyncd RE: Wrong date/time - Sehnsucht - 06-13-2023 (06-13-2023, 12:08 PM)Tim Curtis Wrote: Check the time sync service from command line. If it is not able to connect to Internet time servers there should be some errors. Here's what I get plus proof the internet is fine: Code: pi@electro:~ $ systemctl status systemd-timesyncd RE: Wrong date/time - TheOldPresbyope - 06-13-2023 @Sehnsucht This seems like a red flag: Code: Status: "Idle." Compare that to the same line in Tim's output. What do you get in response to timedatectl? On my systems, which synchronized successfully, I see something like the following Code: pi@m833p3lcd:~ $ timedatectl where the clock is reported to be synchronized and the NTP service is active. Searching the InterWeb, I found a similar problem reported by a Ubuntu user somewhere in the world. It was suggested by respondents that the system may be taking too long to find and synchronize with an authoritative time server. As distributed, the default timeout in moOde (e.g., RaspberryPiOS) is 5s. That should be plenty of time for most setups but apparently there are edge cases. It was suggested to edit the /etc/systemd/timesyncd.conf file to uncomment the #RootDistanceMaxSec=5 line and increase the timeout value from 5 to, say, 15. It can't hurt to try; you can always change it back it if doesn't work. Regards, Kent RE: Wrong date/time - Nutul - 06-13-2023 (06-13-2023, 08:08 PM)Sehnsucht Wrote:(06-13-2023, 12:08 PM)Tim Curtis Wrote: Check the time sync service from command line. If it is not able to connect to Internet time servers there should be some errors. Jun 06 18:23:04 electro systemd-timesyncd[1039]: Timed out waiting for reply from 192.168.4.1:123 (192.168.4.1). Looks like your time-server is in your local network, like I use to do on my KODI box (I tell it the time server is my router...) Nevertheless, it times out => no time-sync. RE: Wrong date/time - Sehnsucht - 06-13-2023 (06-13-2023, 08:39 PM)TheOldPresbyope Wrote: What do you get in response to timedatectl? On my systems, which synchronized successfully, I see something like the following I get: Code: Local time: Tue 2023-06-06 18:44:10 BST (06-13-2023, 08:39 PM)TheOldPresbyope Wrote: Searching the InterWeb, I found a similar problem reported by a Ubuntu user somewhere in the world. It was suggested by respondents that the system may be taking too long to find and synchronize with an authoritative time server. As distributed, the default timeout in moOde (e.g., RaspberryPiOS) is 5s. That should be plenty of time for most setups but apparently there are edge cases. I just tried a few, ending up with a value of 25. I rebooted after each change and waited a while, but no change. I tried stopping and starting systemd-timesyncd and it started showing Idle. before my 25 seconds were up. I kept digging/experimenting and it turns out the fix is to edit /etc/systemd/timesyncd.conf and set NTP to have the content of the FallbackNTP line: NTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org Perhaps this should be the default for moOde installs if there's no downsides? Or perhaps keep the NTP line commented and simply uncomment the FallbackNTP line? Edit: Nope, I tried this on my other moOde box. I guess you have to set NTP not FallbackNTP because moOde thinks the one it's found (outside of this config file) is good enough to not need to fallback to anything, despite the "Idle." clue. (06-13-2023, 08:46 PM)Nutul Wrote: Jun 06 18:23:04 electro systemd-timesyncd[1039]: Timed out waiting for reply from 192.168.4.1:123 (192.168.4.1). That IP address is my gateway - an EERO router. I've had it a few months - it's pretty good. It's possible the time on moOde has been wrong since then. I see nothing in the EERO config (an android app) pertaining to ntp/time servers, nor do I see much on the subject when I google. My other devices (linux desktop, chromebook, windows laptops, assorted phones/tablets) all show the correct time. RE: Wrong date/time - TheOldPresbyope - 06-14-2023 Actually, I see a smattering of seemingly related posts on the InterWeb regarding eero (especially with eero Secure) but I'm not in a position to comment. For a time in the past, I was on an ISP-provided eero mesh network and had no problem with moOde and time synchronization. That was then and this is now. Lots of changes have occurred in all of the components involved. In any case, this is an issue between eero and Raspberry Pi OS; moOde is just going along on the ride. I suppose the moOde build could override the default /etc/systemd/timesyncd.conf file, but I'm not certain what the best settings would be. AFAIK the default settings allow each installation to find the closest available NTP server and this change would override that behavior. For the vast majority of us, the default settings work fine. I'm not able to experiment with this for now. My partner and I fly to California in 10 hours to spend a couple of weeks with her new grandchild. That is a more exciting prospect than futzing with code ![]() Regards, Kent |