Welcome to Centmin Mod Community
Register Now

[Solved] Log rotation permission denied

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

  1. BamaStangGuy

    BamaStangGuy Active Member

    470
    137
    43
    May 25, 2014
    Ratings:
    +180
    Local Time:
    11:24 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

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:24 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:24 AM
    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

    470
    137
    43
    May 25, 2014
    Ratings:
    +180
    Local Time:
    11:24 AM
    Thanks
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:24 AM
    Nginx 1.13.x
    MariaDB 5.5
  6. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    folks can test logrotate for nginx with command
    Code (Text):
    logrotate -df /etc/logrotate.d/nginx