-
Notifications
You must be signed in to change notification settings - Fork 74
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
Reloading is broken in v2.1 with rotate-logs: True #296
Comments
we did fix some issue with regards to log rotation: |
@jappeace OK, great... but this is different issue. |
Thanks for finding this! I can take a deeper look at this over the weekend. |
I am hitting this as well after updating keter version. Any chance for a fix? Also it appears that by activating rotating logs, its not logging to systemd anymore. Before #274 it was possible to have logging to systemd as well as app specific logs on disk. It would be great to have this behavior restored. |
setting |
Yes but then I am not getting app specific logs on disk anymore. I want both. |
that's a different issue 😅 |
Hi @m1-s, you can probably work out a concoction to get 2 log sinks like that. One arrangement that comes to mind, is keter Or perhaps you can habituate to use What I wanted to say: you won't get both out of keter alone. If I remember the code correctly, it's an XOR: you either switch So that I don't come across as condescending: we, too, are stuck with the |
As a sidetrack from #294, splitting off a separate issue.
Apparently since #274, app reloading is completely broken, unless
rotate-logs
has been set to false (i.e. stderr logging). The default for this option when absent in config, isTrue
.Steps to reproduce
rotate-logs: True
(or omit the option).incoming/app.keter
.touch incoming/app.keter
.Expected result:
Reload of the app is performed, as if
app.keter
had changed to a new bundle version.Actual result:
This
file is locked
error comes from an attempt to open the (per-app) log-file for the second time for writing. When reloading, it is already open for writing once — by the previousRunningWebApp
. Here:keter/src/Keter/App.hs
Lines 240 to 243 in 6b7f1e4
(called from
reload
function in the same module)Does not reproduce on keter 2.0.1 (with the legacy logger, obviously). cc @RiugaBachi @jappeace
I sincerely appreciate the refactoring effort, and the native support for logging to std streams 🚀
However this bug is a showstopper, we can't upgrade our infra to 2.1 due to this.
The text was updated successfully, but these errors were encountered: