Log rotation does not appear to be working
Bug #1079743 reported by
David Shrewsbury
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libra |
Fix Released
|
Critical
|
Andrew Hutchings |
Bug Description
After running the latest Libra worker overnight, it seems that it stopped logging after several hours. I believe this may have been caused by the change made for bug # 1076765 that implements rolling logs.
My theory on what's happening:
* Process is started in daemon mode
* Log file gets created as the user starting the process (usually root)
* Process daemonizes and switches to a new user via --user option.
* New logging code attempts to manipulate the existing file but the user
does not have permission to do so, and an unhandled exception is being thrown.
* Logging is broken going forward
Changed in libra: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
confirmed that is exactly what happens, good find, I wasn't running as root for my testing.
Fixing by changing ownership of file as we go into daemon mode