← Back to team overview

openerp-india team mailing list archive

[Bug 997564] [NEW] gunicorn cpu_time_limit setting generates error

 

Public bug reported:

When setting the gunicorn cpu_time_limit setting in the config file the
following error is generated:

2012-05-10 09:11:54,002 14215 ERROR ? gunicorn.error: Error handling request
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/gunicorn/workers/sync.py", line 87, in handle_request
    self.cfg.pre_request(self, req)
  File "/srv/erp-uat.canonical.com/uat/server/openerp/wsgi/core.py", line 505, in pre_request
    resource.setrlimit(resource.RLIMIT_CPU, (cpu_time + config['cpu_time_limit'], hard))
TypeError: unsupported operand type(s) for +: 'float' and 'str'

The config file setting was:
 cpu_time_limit = 180

The code needs to convert the setting from the config file from a string
to a float.

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/997564

Title:
  gunicorn cpu_time_limit setting generates error

Status in OpenERP Server:
  New

Bug description:
  When setting the gunicorn cpu_time_limit setting in the config file
  the following error is generated:

  2012-05-10 09:11:54,002 14215 ERROR ? gunicorn.error: Error handling request
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/gunicorn/workers/sync.py", line 87, in handle_request
      self.cfg.pre_request(self, req)
    File "/srv/erp-uat.canonical.com/uat/server/openerp/wsgi/core.py", line 505, in pre_request
      resource.setrlimit(resource.RLIMIT_CPU, (cpu_time + config['cpu_time_limit'], hard))
  TypeError: unsupported operand type(s) for +: 'float' and 'str'

  The config file setting was:
   cpu_time_limit = 180

  The code needs to convert the setting from the config file from a
  string to a float.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/997564/+subscriptions


Follow ups

References