webcamd.service causes log spamming and eventually run out of memory #127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Recently came across this while using this amazing script.
I installed klipper, moonraker, and fluidd all through kiauh script.
I did want to have the option to add a webcam in the future so I selected yes to download webcamd.
However in doing so, my raspberry pi ran out of memory a few days later because of the continuous rebooting of the webcamd service.
Source of issue, in
webcamd.serviceRestartSec=10I don't know if this is a feature or a bug, but it doesnt seem very right to be spamming the logs if the webcamd service cannot come up.
I think a simple reboot of the pi when would work fine to get the webcam initialized.
So did your webcamd.log in
/var/log/webcamd.logfill up indifinitely and you ran out of sdcard storage?Yup! correct. log files filled up after a few day of just being idle.
Okay. I will have a look. I think of rotating the logfiles then like its done in MainsailOS.
I just pushed a commit for adding a logrotate rule.
The rule is set identical to the one found in the current MainsailOS release.