-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log Rotation #3
Comments
I was able to reproduce the issue, however, this only seems to happen on armhf. As already described in the old issue, executing "chmod 644 /etc/logrotate.d/unms" inside the container should fix this. |
Applied. Thanks much for the response, and for picking up this project! |
No problem :) Should be fixed in the latest build |
@Nico640 Was this fix implemented? My unms.log had reached over 11GB the other day. I've deleted it; restarted unms and it re-created a fresh unms.log file; this morning its over 60MB which isnt a big deal however it doesnt appear logrotate is functioning correctly - the logrotate file stipulates the log file to be no bigger than 10MB. Same issue with ucrm.log as well. To confirm; the unms logrotate file reports its permission as 0644. |
@Trunkzeh Yes it was. The fix just sets the file permission of /etc/logrotate.d/unms and ucrm to 644. The cron job for logrotate should run daily, so the files can get bigger than 10MB until logrotate executes. |
@Nico640 Found the problem:
Fixed it by doing the following:
|
@Trunkzeh I'm glad you got it fixed! I wonder what happened that it didn't work anymore. |
The log file at /srv-internal/data/unms/config/unms/logs/unms.log filled its partition today at 12G and caused the apps to stop functioning.
This is the same issue I believe was described in oznu#48
I see this in my running container:
root@ckv26000:/srv-internal/data/unms# docker exec 305b79531701 cat /etc/logrotate.d/unms
/config/unms/logs/*.log {
size 10M
copytruncate
missingok
rotate 7
compress
delaycompress
}
But it doesn't seem to have any effect.
The text was updated successfully, but these errors were encountered: