Want to subscribe to topics you're interested in?
Become a Member

[Solved] Log rotation permission denied

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

  1. BamaStangGuy

    BamaStangGuy Active Member

    526
    160
    43
    May 25, 2014
    Ratings:
    +212
    Local Time:
    12:50 PM
    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

    35,041
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    3:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. eva2000

    eva2000 Administrator Staff Member

    35,041
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    3:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    just updated 123.09beta01 to reverse commit, so re-run centmin.sh after update for fix
     
  4. BamaStangGuy

    BamaStangGuy Active Member

    526
    160
    43
    May 25, 2014
    Ratings:
    +212
    Local Time:
    12:50 PM
    Thanks
     
  5. eva2000

    eva2000 Administrator Staff Member

    35,041
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    3:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  6. eva2000

    eva2000 Administrator Staff Member

    35,041
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    3:50 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    folks can test logrotate for nginx with command
    Code (Text):
    logrotate -df /etc/logrotate.d/nginx
     
..