/etc/cron.daily/logrotate File exists error

  • I'm receiving email alerts showing:

    Code
    /etc/cron.daily/logrotate:
    error: error creating output file /var/log/nginx/openmediavault-webgui_access.log.1.gz: File exists
    error: error creating output file /var/log/nginx/openmediavault-webgui_error.log.1.gz: File exists
    run-parts: /etc/cron.daily/logrotate exited with return code 1

    shouldn't logrotate be able to handle deleting previously rotated logs?

    • Official Post

    Looks like the cron job ran twice. I would just delete the two files causing the problems.

    omv 7.5.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.3.2 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    Do you reboot often? Are you using the flashmemory plugin?

    omv 7.5.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.3.2 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!