Join the community today
Register Now

[Solved] Log rotation permission denied

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

  1. BamaStangGuy

    BamaStangGuy Active Member

    509
    147
    43
    May 25, 2014
    Ratings:
    +195
    Local Time:
    2:03 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

    33,678
    7,456
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,461
    Local Time:
    5:03 PM
    Nginx 1.13.x
    MariaDB 5.5
  3. eva2000

    eva2000 Administrator Staff Member

    33,678
    7,456
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,461
    Local Time:
    5:03 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

    509
    147
    43
    May 25, 2014
    Ratings:
    +195
    Local Time:
    2:03 AM
    Thanks
     
  5. eva2000

    eva2000 Administrator Staff Member

    33,678
    7,456
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,461
    Local Time:
    5:03 PM
    Nginx 1.13.x
    MariaDB 5.5
  6. eva2000

    eva2000 Administrator Staff Member

    33,678
    7,456
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,461
    Local Time:
    5:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    folks can test logrotate for nginx with command
    Code (Text):
    logrotate -df /etc/logrotate.d/nginx
     
..