launching Openerp 6.1 with gunicorn fails because it does not load addons
Hello,
I have a problem launching Openerp with gunicorn, the issue is that it seems the addons directory is not read.
The command I use is gunicorn openerp:
That seems to launch a number of workers, but the contents on the conf file should lead it to the addons directory... however we get the dreaded no handler found... (see below, I even added an extra path, just in case).
# Gunicorn sample configuration file.
# See http://
#
# To run the OpenERP server via Gunicorn, change the appropriate
# settings below, in order to provide the parameters that
# would normally be passed in the command-line,
# (at least `bind` and `conf['
# $ gunicorn openerp:
# or if you want to run it behind a reverse proxy, add the line
import openerp.
# in this file and execute:
# $ gunicorn openerp:
import openerp
# Standard OpenERP XML-RPC port is 8069
bind = '192.168.
pidfile = '.gunicorn.pid'
# Gunicorn recommends 2-4 x number_
# you'll want to vary this a bit to find the best for your
# particular work load.
workers = 2
# Some application-wide initialization is needed.
on_starting = openerp.
when_ready = openerp.
pre_request = openerp.
post_request = openerp.
# openerp request-response cycle can be quite long for
# big reports for example
timeout = 240
max_requests = 2000
# Equivalent of --load command-line option
openerp.
# internal TODO: use openerp.conf.xxx when available
# internal TODO: use openerp.conf.xxx when available
conf = openerp.
# Path to the OpenERP Addons repository (comma-separated for
# multiple locations)
conf['addons_path'] = '/usr/lib/
# Optional database config if not using local socket
conf['db_name'] = 'test'
conf['db_host'] = '192.168.71.136'
conf['db_port'] = '5432'
conf['db_user'] = 'XXXXXXXX'
conf['db_password'] = 'XXXXXXXX'
conf['port'] = 8069
conf['xmlrpc'] = True
# OpenERP Log Level
# DEBUG=10, DEBUG_RPC=8, DEBUG_RPC_ANSWER=6, DEBUG_SQL=5, INFO=20,
# WARNING=30, ERROR=40, CRITICAL=50
conf['log_level'] = 20
conf['logfile'
# If --static-
#conf['
# vim:expandtab:
Any help will be much appreciated.
E
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Esteban Díaz Asúa for more information if necessary.