SOLVED daily logrotate error email

  • Hi, after power outage I am getting daily email. Can anyone help me with this? Thank you


    /etc/cron.daily/logrotate:
    error: bad top line in state file /var/lib/logrotate/status
    run-parts: /etc/cron.daily/logrotate exited with return code 1



    /etc/logrotate.conf


    # see "man logrotate" for details
    # rotate log files weekly
    weekly


    # keep 4 weeks worth of backlogs
    rotate 4


    # create new (empty) log files after rotating old ones
    create


    # uncomment this if you want your log files compressed
    #compress


    # packages drop log rotation information into this directory
    include /etc/logrotate.d


    # no packages own wtmp, or btmp -- we'll rotate them here
    /var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
    }


    /var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
    }



    and
    /var/lib/logrotate/status


    /usr/bin/shasum
    /usr/bin/shasum.bundled
    libdigest-sha-perl
    /usr/share/vim/vim80/doc/help.txt
    /usr/share/vim/vim80/doc/help.txt.vim-tiny
    vim-runtime
    /usr/share/man/man1/sh.1.gz
    /usr/share/man/man1/sh.distrib.1.gz
    dash
    /usr/share/man/man1/shasum.1.gz
    /usr/share/man/man1/shasum.bundled.1.gz
    libdigest-sha-perl
    /bin/sh
    /bin/sh.distrib
    dash
    /usr/share/initramfs-tools/hooks/klibc
    /usr/share/initramfs-tools/hooks/klibc^i-t
    klibc-utils
    /usr/share/vim/vim80/doc/tags
    /usr/share/vim/vim80/doc/tags.vim-tiny
    vim-runtime
    /etc/mpv/mpv.conf
    /etc/mpv/mpv-dist.conf
    linux-stretch-root-next-tinkerboard
    ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^$















    [ Read 25 lines ]
    ^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur Pos ^Y Prev Page M-\ First Line M-W WhereIs Next ^^ Mark Text
    ^X Exit ^R Read File ^\ Replace ^U Uncut Text ^T To Spell ^_ Go To Line ^V Next Page M-/ Last Line M-] To Bracket M-^ Copy Text

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!