Closed wgevaert closed 3 years ago
Thanks for the report and great that you've added a PR right away. You are surely correct about the lack of logrotation for those dirs, we must add that. The permissions you have for /var/log/domjudge/domserver
are correct though, they are needed because both the webserver and other scripts must be able to write there. So we need to have a logrotate that can deal with it. Probably a good way forward is indeed to split it up between domserver and judgehost and add the right logrotate snippet for each.
Thanks!
Today we found out that our server was full of domjudge-logs.
The problem is that the logs
/var/log/domjudge/*.log
are nicely rotated, but the logs in/var/log/domjudge/judgehosts/*.log
(and/var/log/domjudge/domserver
, which was not that full, and logrotate did not like it as we had it with ownerroot
and group writeable by groupwww-data
. I do not know what the correct permissions should be but this is irrelevant to the issue.) are ignored.It would nicely be solved if
debian/docker-common.logrotate
is changed to something like this:I am not sure about some things such as if we rather explicitly want
domjudge/judgehosts/*.log
or the genericdomjudge/*/*.log
, I think the latter is probably more future-proof.I also do not know why our permissions of
/var/log/domjudge/domserver
were weird, but that has probably been a hotfix during one of our events.