← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 329111] Re: OpenERP server stops logging

 

I have the same problem with OpenERP 6 (Debian packages); after some
time, the server stops writing to the log file. Maybe this has to do
with some timeout; if I look at the log file after some days of
inactivity, the last log messages are from that day back then, and doing
some action which should cause a log file entry (like WebDAV access)
does not change the file.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/329111

Title:
  OpenERP server stops logging

Status in OpenERP Server:
  Fix Released

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?