webcamd.service causes log spamming and eventually run out of memory #127

Closed
opened 2021-10-15 03:49:58 +02:00 by plloppii · 4 comments
plloppii commented 2021-10-15 03:49:58 +02:00 (Migrated from github.com)

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.service
RestartSec=10

I 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.

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.service` `RestartSec=10` I 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.
dw-0 commented 2021-10-18 11:07:21 +02:00 (Migrated from github.com)

So did your webcamd.log in /var/log/webcamd.log fill up indifinitely and you ran out of sdcard storage?

So did your webcamd.log in `/var/log/webcamd.log` fill up indifinitely and you ran out of sdcard storage?
plloppii commented 2021-10-18 16:50:55 +02:00 (Migrated from github.com)

Yup! correct. log files filled up after a few day of just being idle.

Yup! correct. log files filled up after a few day of just being idle.
dw-0 commented 2021-10-18 17:41:05 +02:00 (Migrated from github.com)

Okay. I will have a look. I think of rotating the logfiles then like its done in MainsailOS.

Okay. I will have a look. I think of rotating the logfiles then like its done in MainsailOS.
dw-0 commented 2021-10-31 11:25:20 +01:00 (Migrated from github.com)

I just pushed a commit for adding a logrotate rule.
The rule is set identical to the one found in the current MainsailOS release.

I just pushed a commit for adding a logrotate rule. The rule is set identical to the one found in the current MainsailOS release.
Sign in to join this conversation.