logrotate error

  • imSCP 1.5.1
    Debian 9
    Courier, PHP-FCGID


    I got this error message after the upgrade to 1.5.1

    Code
    1. /etc/cron.daily/logrotate:
    2. logrotate_script: 2: logrotate_script: /usr/local/lib/imscp_panel/imscp_panel_reopenlogs: Permission denied
    3. error: error running non-shared postrotate script for /var/log/imscp_panel.log of '/var/log/imscp_panel.log '
    4. run-parts: /etc/cron.daily/logrotate exited with return code 1

    Edited once, last by fulltilt ().

  • Permissions on the /usr/local/lib/imscp_panel/imscp_panel_reopenlogs script are?

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

  • @fulltilt


    It should be executable :


    Shell-Script
    1. [email protected]:~# chmod u+x /usr/local/lib/imscp_panel/imscp_panel_reopenlogs
    2. [email protected]:~# ls -la /usr/local/lib/imscp_panel/imscp_panel_reopenlogs
    3. -rwxr-x--- 1 root root 318 janv. 28 11:02 /usr/local/lib/imscp_panel/imscp_panel_reopenlogs
    4. [email protected]:~#


    That is a bug which has been fixed already in the 1.6.x branch.


    https://github.com/i-MSCP/imscp/blob/1.6.x/CHANGELOG#L91

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