Skip to content

Current log file handling can lead to crazy big overlay2 #508

@DutchShadow

Description

@DutchShadow

It's 1AM right now and I don't have the energy left to write up a full and clean issue report.
But I believe looking into the Logrotate defaults that are in docker, I think with IoT stack we can solve it by implementing something along the lines of https://hub.docker.com/r/marlic/rpi-logrotate .
The defaults that docker uses are very long and when messing with the home electricity and not having a UPS it can cause havoc to the Overlay2 filesystem.

For example the overlay filesystem gets filled with a 100gigs of pi-hole log if there's multiple power cycles...
The same issue came up with prometheus nodeexporter.

It has been a crazy rabbit hole and currently resetting the stack but let's get this sorted :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions