[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Error with logrotate.



Afternoon,

I just updated from Debian 8 to 9 and I'm getting the following error.  I'm guessing it's something to do with permissions?

Something to do with the create 640 root adm?

/etc/cron.daily/logrotate:
error: unable to open /home/philip/logs/access.log.1 for compression
error: unable to open /home/philip/logs/error.log.1 for compression
run-parts: /etc/cron.daily/logrotate exited with return code 1

/home/philip/logs/*.log {
	su philip philip
	daily
	missingok
	rotate 14
	compress
	delaycompress
	notifempty
	create 640 root adm
	sharedscripts
	postrotate
                if /etc/init.d/apache2 status > /dev/null ; then \
                    /etc/init.d/apache2 reload > /dev/null; \
                fi;
	endscript
	prerotate
		if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
			run-parts /etc/logrotate.d/httpd-prerotate; \
		fi; \
	endscript
}


Philip


Reply to: