limit linux log sizes #715
Comments
|
Odd I believe we only use journald which by default doesn't persist. Seems odd that a syslog file would even be created at all. |
|
Looking at my device I see about 100MB in /var/log. The log files themselves are getting rotated but historic versions are also being retained - in some cases I have upwards of 7 compressed historic logs (across all sub systems) Looking at /etc/systemd/journald.conf it appears we may be running a default configuration:
|
|
fixed. enabled:
|
|
@tehn is that file really stored in |
|
yep!
|
|
but that's |
|
thank you for spotting this :) |
|
I'm still unsure where the files in |
|
@simonvanderveldt any further suggestions what to change? |
|
@tehn I'll have a look this weekend |
journaldIt seems like there's only 1 journald config file, the other locations listed in the docs https://www.freedesktop.org/software/systemd/man/journald.conf.html are empty:
All settings are commented out, unfortunately it seems like there's no way to let journald/journalctl print which settings it's currently using :( Assuming the docs are correct the journal itself isn't being persisted since
The changes made by @tehn are still a smart thing to do in case someone were to have norns running for a long period of time the journal might become rather large, so putting a cap on that is a good move :) syslogBut the initial issue was with log files created by syslog. We now know there's no integration from journald to syslog but for some reason syslog is also being ran independently of journald, no clue why raspbian went with this:
Maybe we can just disable syslog? Anyone know why it's still there despite journald also being used? |
|
Investigation of https://linux.die.net/man/5/rsyslog.conf The section on rules and output channels seem like they might offer the control we’re after - that is assuming the rsyslogd is being used on norns (I’m away from a device at the moment) |
|
trying a few things. for
for
for
hopefully this caps everything at 1M |
|
attempted fix monome/norns-image#61 |
|
closing this. reopen if we see problems. |
not the first time a user has run out of disk space from huge log files
Output from
ls /var/logfrom https://llllllll.co/t/norns-help/14016/972?u=zebrai'm no expert but i thought
logrotatewas the typical way to deal with this.(maybe this should be on norns-image)
The text was updated successfully, but these errors were encountered: