/etc/cron.daily/logrotate:invoke-rc.d: action rotate is unknown, but proceeding anyway

  • Hello,


    since Update ISCP 1.3.15 to 1.3.16 there is an empty file in /etc/logrotate.d -> imscp


    I think it is the reason for the Cron Mail:


    /etc/cron.daily/logrotate:invoke-rc.d: action rotate is unknown, but proceeding anyway.

    • i-MSCP 1.3.16


      • Build: 20170107


      • Codename: Horner
    • debian-jessie-amd64-hvm-2016-09-19-ebs on Amazon EC2
    • Plugins:

      • InstantSSH Version 5.0.1


      • LetsEncrypt Version 2.0.5


      • PanelRedirect Version 1.1.5


      • PhpSwitcher Version 2.3.2
    • Listeners

      • Nov 8 11:43 10_php_confoptions_override.pl


      • Dec 25 23:53 10_system_hosts.pl

    Thanks a lot for your good Job.


    ShortSnow

  • since Update ISCP 1.3.15 to 1.3.16 there is an empty file in /etc/logrotate.d -> imscp


    I think it is the reason for the Cron Mail:

    You're wrong ;) The problem doesn't comes from the /etc/logrotate.d/imscp file which is expected to be empty by default.


    The problem comes from one of your logrotate script which invokes invoke-rc.d <service> rotate as action that is unknown by invoke-rc.d.


    Please, give us the result of the following command on the affected system:

    Shell-Script
    1. # grep -nr invoke-rc.d /etc/logrotate.d

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello Nuxwin,


    thanks.


    Code
    1. root@aws004:/home/admin# grep -nr invoke-rc.d /etc/logrotate.d
    2. /etc/logrotate.d/php5-fpm:10: invoke-rc.d php5-fpm restart > /dev/null
    3. /etc/logrotate.d/apache2:11: invoke-rc.d apache2 reload > /dev/null
    4. /etc/logrotate.d/rsyslog:10: invoke-rc.d rsyslog rotate > /dev/null
    5. /etc/logrotate.d/rsyslog:35: invoke-rc.d rsyslog rotate > /dev/null
    6. /etc/logrotate.d/nginx:16: invoke-rc.d nginx rotate >/dev/null 2>&1
    7. root@aws004:/home/admin#

    ShortSnow

  • Result of:



    Code
    1. # invoke-rc.d rsyslog rotate

    ?


    Shell-Script
    1. invoke-rc.d nginx rotate

    ?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Code
    1. root@aws004:/home/admin# invoke-rc.d rsyslog rotate
    2. invoke-rc.d: action rotate is unknown, but proceeding anyway.
    3. [ ok ] Closing open files: rsyslogd.
    4. root@aws004:/home/admin# invoke-rc.d nginx rotate
    5. invoke-rc.d: action rotate is unknown, but proceeding anyway.
    6. [ ok ] Re-opening nginx log files: nginx.
    7. root@aws004:/home/admin#

    Hi Nuxwin,


    thanks for help and putting me in the right direction. I try to reproduce this with a backup of IMSCP 1.3.15 and update it again. Now the error is not there. So it is not usefull to spend more time in research of this problem.


    Thanks al lot and sorry for the time you spend on helping me.


    Greets ShortSnow


    Please close

  • @ShortSnow


    Ok. If you get the problem again, just do: rm /usr/sbin/policy-rc.d
    This file that is created by i-MSCP is normally deleted automatically after packages installation/update.


    See also:

    The file is not removed only if the i-MSCP installer stop before finishing installing/updating distribution packages

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hi,


    startet the EC2 EBS Volume with the failure to test this out and i can confirm. The file was there and remove was the solution.


    Thank you


    ShortSnow