Skip to content

Why is the logrotate.status file missing? #425

@matthuo333

Description

@matthuo333

When I run debug to test my configuration file, I get the following error:

reading config file /etc/logrotate.d/smartnode
Reading state from file: /var/lib/logrotate.status
error: error opening state file /var/lib/logrotate.status: No such file or directory
Allocating hash table for state file, size 64 entries

Handling 1 logs

rotating pattern: /var/log/smartnode.log after 1 days (7 rotations)
empty log files are not rotated, only log files >= 1048576 bytes are rotated, old logs are removed
considering log /var/log/smartnode.log
Creating new state
Now: 2021-10-13 12:52
Last rotated at 2021-10-13 12:00
log does not need rotating (log has already been rotated)

The current OS is OpenWrt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions