CB1 icon indicating copy to clipboard operation
CB1 copied to clipboard

Issue with system time

Open morrmaker opened this issue 1 year ago • 11 comments

I have reimaged my board several times and it always sets the back to July 16, 2023. I'm able to manually set it to current date time with timedatectl however, after having printer turned of for awhile I now notice it is 4 hours behind. Is there a way to set NTP service to keep this in sync. Timedatectl shows "NTP servie: n/a"

morrmaker avatar Jan 06 '24 06:01 morrmaker

change your timezone in "system.cfg" to "America/Seattle" or whatever your designator is. I used google to find mine.

Chinstrap777 avatar Jan 06 '24 23:01 Chinstrap777

Yes. Forgot to mention I already set the timezone.

morrmaker avatar Jan 07 '24 00:01 morrmaker

I also have the same problem. Have set the timezone in the system.cfg as well as at the command line and I still get the same error. All OS updates are installed.

#!/bin/bash

biqu@anet:~$ timedatectl status
               Local time: Tue 2024-01-30 15:44:44 AEDT
           Universal time: Tue 2024-01-30 04:44:44 UTC
                 RTC time: Fri 1970-01-02 00:21:24
                Time zone: Australia/Melbourne (AEDT, +1100)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no

biqu@anet:~$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 used-to-be-ntp. .INIT.          16 u    - 1024    0    0.000   +0.000   0.000

freegithubuser avatar Jan 30 '24 04:01 freegithubuser

Same problem here, I cannot update via Mainsail because the system date is so old. Even in Kiauh I get the "E: Release file for http://deb.debian.org/debian-security/dists/bullseye-security/InRelease is not valid yet (invalid for another 243d 8h 37min 8s). Updates for this repository will not be applied."

Sayon13 avatar Mar 13 '24 17:03 Sayon13

image_2024-03-13_143446657

Sayon13 avatar Mar 13 '24 17:03 Sayon13

image moonraker.log

Sayon13 avatar Mar 13 '24 18:03 Sayon13

The problem appears that NTP which is responsible for network time isn't running/working. I have tried changing NTP servers and configuration but still had no luck. I'm sure someone has figured it out, but until then I have found that I need to SSH into it and set the date and time manually after each boot for it to stay current. Some short power off states (a few minutes) or while whilst rebooting seem to freeze for that short period,

sudo date "YYYY-MM-DD HH:MM:SS" or alternatively if your local is set to use a different date standard, follow that standard.

freegithubuser avatar Mar 13 '24 21:03 freegithubuser

The think that kills me inside is that it was working fine before I update it.. I gave up on it and just change it for a rpi 3b+

Sayon13 avatar Mar 13 '24 21:03 Sayon13

I also have the same problem. Have set the timezone in the system.cfg as well as at the command line and I still get the same error. All OS updates are installed.

#!/bin/bash

biqu@anet:~$ timedatectl status
               Local time: Tue 2024-01-30 15:44:44 AEDT
           Universal time: Tue 2024-01-30 04:44:44 UTC
                 RTC time: Fri 1970-01-02 00:21:24
                Time zone: Australia/Melbourne (AEDT, +1100)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no

biqu@anet:~$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 used-to-be-ntp. .INIT.          16 u    - 1024    0    0.000   +0.000   0.000

Looks like you have to:

sudo debian-config

To actually change the time zone and time

Chinstrap777 avatar Mar 13 '24 21:03 Chinstrap777

Hello there!

I solved the problem. Had the same issue.

got to

https://wiki.debian.org/DateTime

and look for installation of ntp. Do it. Nano into the mentioned file and add local servers from the local sources under "Managing NTP Pools" right under the ones that are mentioned in the file. Save the file and reboot.

Just did it and it works now for me. Did Update and Upgrade and now downloaded KIAUH and install Klipper.

PH1980 avatar Mar 15 '24 15:03 PH1980

Hello there!

I solved the problem. Had the same issue.

got to

https://wiki.debian.org/DateTime

and look for installation of ntp. Do it. Nano into the mentioned file and add local servers from the local sources under "Managing NTP Pools" right under the ones that are mentioned in the file. Save the file and reboot.

Just did it and it works now for me. Did Update and Upgrade and now downloaded KIAUH and install Klipper.

Thanks PH1980, worked a treat!

freegithubuser avatar Mar 15 '24 21:03 freegithubuser