Anacron job 'cron.daily' log rotate error upon shutdown.

  • Hi,


    Just received this errors upon shutdown few times already.


    backport: 4.7.0 x64



    Code
    /etc/cron.daily/logrotate:
    error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/error.log '
    run-parts: /etc/cron.daily/logrotate exited with return code 1


    In case somebody seek for the solution.


    1. Retrieve the mysql password: /etc/mysql/debian.cnf 


    2. Then run mysql as root.


    3. Replace xxxxs with actual password.

    Code
    GRANT RELOAD, SHUTDOWN, PROCESS, SHOW DATABASES, SUPER, LOCK TABLES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY PASSWORD 'xxxxxxxxxxxxxxxx'; FLUSH PRIVILEGES;

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    2 Mal editiert, zuletzt von tinh_x7 ()

  • This error came back in OMV 3.0.59.
    Hopefully this solution fix it:


    nano /etc/logrotate.d/nginx


    change invoke-rc.d nginx rotate >/dev/null 2>&1 to service nginx rotate >/dev/null 2>&1

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    2 Mal editiert, zuletzt von tinh_x7 ()

Jetzt mitmachen!

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