Open capybara614 opened 1 month ago
Hello @capybara614, thank you for the detailed report, i can confirm - this is bug, issue #67888.
After looking at the repository of the package, seems like this is already fixed in the upcoming version. Should I close this or wait until v8.1.0 is released ?
Yes, it's fixed. I would ask you not to close this issue, we will check it ourselves after relese. And of course you can check.
Do you want to request a feature or report a bug?
This is a bug report.
What is the current behavior?
Logs are not outputted to stdout after logs are rotated. Logs are currently outputted to stdout using
tail -f
in the entrypoint. So when the file descriptor changes because of log rotation, tail isn't following the right files and doesn't output anything.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
/usr/sbin/logrotate --force /etc/logrotate.conf
)What is the expected behavior?
Logs should be outputted to stdout even after log rotation.
I see two way of fixing this :
tail -F
in the entrypoint to follow filenames rather than file descriptors/etc/onlyoffice/documentserver/logrotate/ds.conf
, so that the file descriptor doesn't change. Doing it that way would allow to stop restarting nginx and supervisor on log rotation which sounds like a bonus to me. This is what I came up with but I am by no means a log rotate expert./var/log/onlyoffice/documentserver/*/.log /var/log/onlyoffice/documentserver-example/*.log { daily missingok rotate 30 compress dateext delaycompress notifempty copytruncate }