Every night, on a 5210r box, I get a cron email showing errors related to log rotation. This is todays:
Thisdir: /home/.sites/site1 Thisdir: /home/.sites/site1//var/logs Thisdir: /home/.sites/site1//var/logs/2023 Thisdir: /home/.sites/site1//var/logs/2023/2 Thisdir: /home/.sites/site1//var/logs/2023/2/23 DEBUG: Running: /usr/bin/goaccess /home/.sites/site1//var/logs/web.log --log-format='%h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\"' --date-format=%d/%b/%Y --time-format=%H:%M:%S --json-pretty-print -o /home/.sites/site1//var/logs/2023/2/23//web.json This repeats for every site on the server. At the end of that repeating section is: error: error setting owner of /home/.sites/site47/var/logs/web.log to uid 0 and gid 1009: Operation not permitted Then finally, after it lists that it has found each site on the server and their paths, there is this: current time - stop time is 0 date_dir: 2023/2/23/ at /usr/local/sbin/split_logs line 126, <GEN0> line 276. Test/setup /home/.sites/server perms 493 Thisdir: /home/.sites/server Test/setup /home/.sites/server//logs perms 493 Thisdir: /home/.sites/server//logs Test/setup /home/.sites/server//logs/2023 perms 493 Thisdir: /home/.sites/server//logs/2023 Test/setup /home/.sites/server//logs/2023/2 perms 493 Thisdir: /home/.sites/server//logs/2023/2 Test/setup /home/.sites/server//logs/2023/2/23 perms 493 Thisdir: /home/.sites/server//logs/2023/2/23 Clearing /home/.sites/server//logs/2023/2/23//net.cache Attempting to invoke /usr/bin/analogbx -C'DEFAULTLOGFORMAT COMBINED' -C'CACHEOUTFILE /home/.sites/server//logs/2023/2/23//net.cache' - Using regex: /Dontmatchanythingnovsites/ start time: Thu Feb 23 00:00:00 2023 stop time: Fri Feb 24 03:49:24 2023 about to process most recent log DEBUG: Not running GoAccess because either /tmp/.logrotate_apache_access or /home/.sites/server//logs/2023/2/23/ do not exist! I am entirely unfamiliar with the log rotation process, can someone shed any light on what is going on? Thanks Darren Wolfe
_______________________________________________ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx