Learn about Centmin Mod LEMP Stack today
Become a Member

[Solved] Log rotation permission denied

Discussion in 'Bug Reports' started by BamaStangGuy, May 29, 2017.

  1. BamaStangGuy

    BamaStangGuy Active Member

    465
    136
    43
    May 25, 2014
    Ratings:
    +179
    Local Time:
    1:18 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.09beta01
    • Nginx Version Installed: i.e. 1.13.10
    • When was last time updated Centmin Mod code base ? : Today
    Did something change today? Started getting this email cron error:

    Code:
    /etc/cron.daily/logrotate:
    
    error: error creating output file /var/log/nginx/localhost.access.log-20170528.gz: Permission denied
    error: error creating output file /var/log/nginx/localhost.error.log-20170528.gz: Permission denied
    error: error creating output file /usr/local/nginx/logs/access.log-20170528.gz: Permission denied
    error: error creating output file /usr/local/nginx/logs/error.log-20170528.gz: Permission denied
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:18 PM
    Nginx 1.13.x
    MariaDB 5.5
  3. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:18 PM
    Nginx 1.13.x
    MariaDB 5.5
    just updated 123.09beta01 to reverse commit, so re-run centmin.sh after update for fix
     
  4. BamaStangGuy

    BamaStangGuy Active Member

    465
    136
    43
    May 25, 2014
    Ratings:
    +179
    Local Time:
    1:18 AM
    Thanks
     
  5. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:18 PM
    Nginx 1.13.x
    MariaDB 5.5
  6. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:18 PM
    Nginx 1.13.x
    MariaDB 5.5
    folks can test logrotate for nginx with command
    Code (Text):
    logrotate -df /etc/logrotate.d/nginx