mails from Anacron

  • Hi guys,


    I'm getting nearly every week one mail from anacron with following content:


    Code
    /etc/cron.daily/logrotate:
    Usage: /etc/init.d/rsyslog {start|stop|rotate|restart|force-reload|status}
    invoke-rc.d: initscript rsyslog, action "reload" failed.
    error: error running shared postrotate script for '/var/log/autoshutdown.log
    '
    Usage: /etc/init.d/rsyslog {start|stop|rotate|restart|force-reload|status}
    invoke-rc.d: initscript rsyslog, action "reload" failed.
    error: error running shared postrotate script for '/var/log/transmissionbt.log
    '
    run-parts: /etc/cron.daily/logrotate exited with return code 1



    What shall I do? :)

  • I also get daily emails about an anacron job, but mine is cron.daily.

    Code
    /etc/cron.daily/apt:
    Creating index of upgradeable packages ...
    Creating index of OpenMediaVault plugins ...


    Today it additionally contained:

    Code
    /etc/cron.daily/openmediavault-mdadm:
    MAILADDR server@domain.de


    Any idea which program is responsible?

    ESXi: SM X9SCA-F || Xeon E3-1220LV2 || Kingston ECC 16GB DDR3-1333 || 2x IBM M1015 (IT) || 38TB raw || Chenbro SR11269

    Einmal editiert, zuletzt von T-A-Z ()

  • same here! :)


    Zitat

    Anacron job 'cron.daily' on nas [nas]
    /etc/cron.daily/openmediavault-mdadm:
    MAILADDR ...


    Zitat

    Anacron job 'cron.daily' on nas [nas]
    /etc/cron.daily/logrotate:Usage: /etc/init.d/rsyslog {start|stop|rotate|restart|force-reload|status}invoke-rc.d: initscript rsyslog, action "reload" failed.error: error running shared postrotate script for '/var/log/autoshutdown.log 'run-parts: /etc/cron.daily/logrotate exited with return code 1/etc/cron.daily/openmediavault-mdadm:MAILADDR


    Zitat

    Anacron job 'cron.daily' on nas [nas]
    /etc/cron.daily/logrotate:
    Usage: /etc/init.d/rsyslog {start|stop|rotate|restart|force-reload|status}
    invoke-rc.d: initscript rsyslog, action "reload" failed.
    error: error running shared postrotate script for '/var/log/autoshutdown.log '
    run-parts: /etc/cron.daily/logrotate exited with return code 1

    HP Proliant Gen8 with ESXi6.5


    Storage - Raid5 with 4 x 3TB WDRed - System on microSD / Datastore on Samsung 850Pro - 250GB

  • same here: mdadm sends me a message containing only my email address..

    OMV last 64bit on AMD Sempron LE-1250 - 4GB ram - Leaf Computer 4 port SATA II pci
    6x1TB WD Green RAID5 - IDE 80GB+60GB JBOD - 60GB SSD OS
    NZXT Source 210 Elite

  • Thanks for your fix regarding mdam volker.
    However I am also getting emails regarding apt, any idea's how this can be fixed?


    Code
    Subject: Anacron job 'cron.daily' on $host
    /etc/cron.daily/apt:
    Creating index of upgradeable packages ...
    Creating index of OpenMediaVault plugins ...

    ESXi: SM X9SCA-F || Xeon E3-1220LV2 || Kingston ECC 16GB DDR3-1333 || 2x IBM M1015 (IT) || 38TB raw || Chenbro SR11269

  • Hallo,


    trotz des Tipps, den autoshutdown einmal zu aktivieren und sofort wieder zu deaktivieren bekomme ich die tägliche Mail mit folgendem Inhalt:


    Betreff: Anacron job 'cron.daily' on Server [Server]


    Inhalt:
    /etc/cron.daily/apt:
    Creating index of upgradeable packages ...
    Creating index of openmediavault plugins ...



    Wie stelle ich das ab?

  • Hey,


    cron is by default sending the output of its scripts via mail (in case something goes wrong).
    The scripts can be found in /etc/cron.daily/* and /etc/cron.weekly/*.



    If you get this:



    Zitat

    /etc/cron.daily/apt:
    Creating index of upgradeable packages ...
    Creating index of openmediavault plugins ...


    Apparently /etc/cron.daily/apt calls the mkaptidx script from omv which always creates output:

    Just comment out this lines in /usr/sbin/omv-mkaptidx and there should be no output.



    If you get this:





    You can disable it via editing the /etc/apt/apt.conf.d/02periodic configuration file:


    set APT::Periodic::Verbose to 0:


    APT::Periodic::Verbose "0";


    If you get this:




    You can disable this via the Webinterface: Notification -> Notifications: Disable "Software Updates"


    If you get this:


    Zitat

    /etc/cron.weekly/openmediavault-update-smart-drivedb:
    Updating smartmontools 5.41 drive database ...
    /usr/share/smartmontools/drivedb.h updated from branches/RELEASE_5_41_DRIVEDB

    Edit the /etc/cron.weekly/openmediavault-update-smart-drivedb file (line 50+51), that it looks like this:


    #echo "Updating smartmontools ${version} drive database ..."
    eval ${tmpscript} 2> /dev/null

  • What shall I do if I get this?


    /etc/cron.weekly/openmediavault-update-smart-drivedb:
    Updating smartmontools 5.41 drive database ...
    sed: Kann 32 Elemente nicht auf stdout schreiben: Datenübergabe unterbrochen (broken pipe)
    cat: Schreibfehler: Datenübergabe unterbrochen (broken pipe)
    /usr/share/smartmontools/drivedb.h updated from branches/RELEASE_5_41_DRIVEDB


    Does anyone know why the pipe is broken? I am still on omv 2 and I would guess some update of openmediavault last week might have caused this? System is unchanged for weeks and I never got this error before...!

  • And an additional question: What's the purpose of the following mail, I get daily on my OMV 3 installation:


    Code
    Cron <root@nas> test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null [nas.*************]
    
    
    invoke-rc.d: policy-rc.d denied execution of start.


    Of course, I could modify policy-rc.d, and from what I've seen, it seems to be related to sysvinit (which is a bit odd, since Debian 8 uses systemd instead), but without knowing the reason for it, I don't want to :)


    Thanks
    Christoph

Jetzt mitmachen!

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