OpenERP server stops logging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
OpenERP server 5.0.0-2 stops logging after a specific (but possibly common) chain of events. There may be related problems, as it seems to be caused by a bad interaction between command line options and serverrc options.
From a few experiments it seems to be a generic problem with options, but for completeness: I found this happening on a 64-bit Ubuntu 8.04 LTS server with up to date packages, with the OpenERP server set up as running under a dedicated user/group ID, started from a customised init script. The server is started using 'start-stop-daemon' which passes several options. (But the same thing seems to happen when starting the server from the commandline.)
This is what happens: the server starts logging correctly (to a logfile specified with --logfile, but the same seems to happen when using syslog). Then, when changing the database admin password, .openerp_serverrc is written (which - redundantly - specifies several options including logging options). So far the server still writes to the log. However, when the server is restarted, it doesn't write to the log anymore.
If the .openerp_serverrc is removed the server will start logging again on restart (but this obviously loses the database password). When .openerp_serverrc is created again, same problem will happen on server restart.
So far I have been able to fix this by adding --log-level=info to the command line options. Maybe this overrides a broken log_level specification in the .openerp_serverrc?
I tested and it seems to work fine on branches/5.0. Car you retest and, eventually provide another way to reproduce this problem.