spr-networks / super

📡 SPR: Open Source, secure, user friendly and fast wifi routers for your home. One wifi password per device. Ad Blocking & Privacy Blocklists. Policy Based Network Access
https://www.supernetworks.org/
BSD 3-Clause "New" or "Revised" License
196 stars 13 forks source link

Time is always off on my SPR router #317

Closed 0vercl0k closed 3 months ago

0vercl0k commented 6 months ago

I think I have always noticed that somehow the time is always off on my SPR router, but I didn't really care too much. But since there's now the OTP, the time actually matters as otherwise I just keep getting wrong OTPs which prevents me from accessing feature like showing the WiFi password, etc.

Is this something you guys have noticed? How do I help debug that?

Cheers

lts-rad commented 6 months ago

i think this is a bug we need to fix on clearfog . i will make sure we are running date

ntpdate -s time.nist.gov

lts-rad commented 6 months ago

https://github.com/spr-networks/SuperTBD/issues/121

Tiecoon commented 5 months ago

https://github.com/spr-networks/cn913x_build/commit/ec8fb940a0253927579b74ed1269443256789c80 ntpdate.service in this commit fails to start on my box

systemctl status ntpdate | less
 × ntpdate.service - NTP Time Synchronization
      Loaded: loaded (/usr/lib/systemd/system/ntpdate.service; disabled; preset: enabled)
      Active: failed (Result: exit-code) since Sat 2024-06-22 04:10:11 UTC; 3min 24s ago
    Duration: 1ms
     Process: 10890 ExecStart=/usr/bin/ntpdate time.nist.gov (code=exited, status=203/EXEC)
    Main PID: 10890 (code=exited, status=203/EXEC)
         CPU: 1ms

 Jun 22 04:10:11 spr systemd[1]: Started ntpdate.service - NTP Time Synchronization.
 Jun 22 04:10:11 spr systemd[1]: ntpdate.service: Main process exited, code=exited, status=203/EXEC
 Jun 22 04:10:11 spr systemd[1]: ntpdate.service: Failed with result 'exit-code'.
Tiecoon commented 5 months ago

ntpdate seems to be located at /usr/sbin/ntpdate

lts-rad commented 3 months ago

Finally getting to this, thanks @Tiecoon . https://github.com/spr-networks/cn913x_build/commit/80d90f10fc932bef2719ea2be155dd229d40605c