Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to delete commonly used eternal growing logfiles #1284

Closed
mpvader opened this issue May 31, 2024 · 4 comments
Closed

Add code to delete commonly used eternal growing logfiles #1284

mpvader opened this issue May 31, 2024 · 4 comments
Assignees
Milestone

Comments

@mpvader
Copy link
Contributor

mpvader commented May 31, 2024

Recently, I've had various systems that were stuck because the data partition is full.

Reason was 3rd party plugins.

this issue is about deleting the most common of them early at boot.

also, I'm in touch with a few of the maintainers to get them to change their ways, see here for the most detailed one: henne49/dbus-opendtu#173.

And we have an issue for Venus OS to add showing a warning when the disk of the GX is (getting) full.

But aside from that, and probably much less work, perhaps we should just at boot, before those services start, delete certain files if they exist.

This issue is to keep a list while I'm getting in touch with those projects.

  • /data/dbus-opendtu/current.log, they solved it for new releases, including deleting the file when user re-runs their install script. issue
  • /data/dbus-shelly-em-smartmeter/current.log, root cause discussion started today commnity
  • /data/dbus-shelly-3em-smartmeter/current.log, root cause not fixed yet issue
  • /data/dbus-shelly-1pm-pvinverter/current.log, discussion: current.log is getting too big vikt0rm/dbus-shelly-1pm-pvinverter#4
@mpvader mpvader added this to the v3.40 milestone May 31, 2024
@mpvader
Copy link
Contributor Author

mpvader commented May 31, 2024

@izak fyi

@mpvader
Copy link
Contributor Author

mpvader commented Jun 13, 2024

@mansr can you add a script somewhere early at boot that removes the above listed four files? thanks.

@philipptrenz
Copy link
Collaborator

It spreads more and more:

I think we should consider /data/dbus-*/current.log. A simple rm might not work due to the file size, I like to use cat /dev/null > current.log for such cases.

mansr added a commit to victronenergy/meta-victronenergy that referenced this issue Aug 8, 2024
Several third-party add-ons create ever-growing log files.  To prevent
the data partition filling up, truncate any such files larger than
1 MB on startup.

victronenergy/venus#1284
@mpvader
Copy link
Contributor Author

mpvader commented Sep 16, 2024

discussed with Jeroen today, he'll look into it (and then most likely take the initscripts commit into master)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants