moggieuk / Happy-Hare

MMU software driver for Klipper (ERCF, Tradrack, Prusa)
GNU General Public License v3.0
409 stars 99 forks source link

Info on Why 'Timer Too Close' Can Happen - Public Service Bulletin #338

Open zeplintwo opened 2 weeks ago

zeplintwo commented 2 weeks ago

Info on Why 'Timer Too Close' Can Happen - Public Service Bulletin This is not directly a bug.

When using the script from Staubgeborener/klipper-backup to keep updated backups, the script can cause 'Timer too close' errors in conjunction with Happy-Hare and ERCF.

I experienced a major storm in my area, which left us without our primary ISP and its DNS routers. While running through 'personal hotspots'/cellphone ISP, the DNS to GitHub, even when not updating this script, would cause the Happy-Hare to trigger 'Timer too close' errors in Klipper.

Errata to Correct from 'FAQ':

Version Information:

Removed:

The OS was updated to the current apt packages before the issue, but no specific versioning is available.

Public Service Bulletin This is more of a public service bulletin indicating that this issue could happen in rare cases. It is not a bug that needs to be addressed by the Happy-Hare team. I do not think this is an issue with Klipper-backup directly. It seems more like a timer and DNS timeout bug causing an error to be generated by Klipper.

moggieuk commented 2 weeks ago

Thanks. I can probably incorporate this into the Troubleshooting page of the wiki: https://github.com/moggieuk/Happy-Hare/wiki/Troubleshooting-and-Common-Issues

Note that another TTC source that was discovered (also related to too much file writing with slower or old SD-cards -- they get slower over time) is that the "save_variable" call in klipper is not very efficient. HH stores a lot of state in it and thus can provoke TTC. HH v2.6.0 (just make generally available) includes implementation of a batch update to mmu_vars.cfg that reduces the number of file write/read cycles from about 10 to 1 or 2.