-
Notifications
You must be signed in to change notification settings - Fork 257
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
circus logging doesn't work alongside logrotate #1152
Comments
looks like it's an issue with python.
If you delete the file while it's running, no more output.
|
Hi @rednaks! Thank you for reporting this, we definitely need a better documentation about logging. And I am not very good in this part of circus, but I would like to share my example, which might work for you. I have circus configured like so:
There is also logrotate inside the container which is configured as:
And it is working as expected (almost): I have current log file So I assume there might be some permissions/configuration issues in your setup, could you try to check it again? |
Maybe the "copytruncate" setting in logrotate would help? I believe it will copy the files instead of renaming them, and then truncate the original logfile. This should allow python to keep writing to the file, as if nothing happened. |
Hi,
I enabled logrotate for my circus services instead of circus logging rotate, the main reason was that i needed compression, a feature not available with circus.
but I noticed an issue that after the rotation happened circus is not logging anything. I made some tests and now I have a scenario to reproduce the issue.
When a log file is deleted, circus doesn't create a new one. if you
touch
to create manually the missing log file, circus will not take it into consideration and will not write in it.circusctl reload
andcircusctl restart
don't help. the only solution is to restartcircusd
.circus version: 0.17.1
I'll investigate more and if I have a PR i'll submit it :)
The text was updated successfully, but these errors were encountered: