I have a LEMP server running Ubuntu 14.04 LTS. (Nginx 1.8)
I got this email about a failed cron job.
Anyone have a solution?
Cron <root@domain> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/logrotate: error: error running shared postrotate script for '/var/log/nginx/*.log ' run-parts: /etc/cron.daily/logrotate exited with return code 1
The only edit ive made lately was open /etc/logrotate.conf I uncommented the following line so my log files will be compressed
# uncomment this if you want your log files compressed compress
Donno if that would have caused it?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!