openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #05875
OpenERP 8 + WSGI strange issue
Hy,
I'm struggling to make OpenERP 8 running with apache mod_wsgi.
First I had a problem of python version, I solved it there
https://www.odoo.com/forum/Help-1/question/OpenERP-8--mod_wsgi--No-module-named-openerp--addon-path-issue-53079
Now, I'm struggling to make the mod_wsgi working, here is my conf :
* odoo fresh pull form github
* Centos 6.5 + Apache 2.2
* Python 2.7
* mod_wsgi compiled from source
Here is my virtual server conf :
Hy,
I'm struggling to make OpenERP 8 running with apache mod_wsgi.
First I had a problem of python version, I solved it there
https://www.odoo.com/forum/Help-1/question/OpenERP-8--mod_wsgi--No-module-named-openerp--addon-path-issue-53079
Now, I'm struggling to make the mod_wsgi working, here is my conf :
* odoo fresh pull form github
* Centos 6.5 + Apache 2.2
* Python 2.7
* mod_wsgi compiled from source
Here is my virtual server conf :
/```bash//
//<VirtualHost *:80>//
// ServerName openerp.local//
// ServerAlias www.openerp.local//
// WSGIScriptAlias / /home/openerp/odoo/openerp-wsgi.py//
// WSGIDaemonProcess oe user=openerp group=openerp processes=4
python-path=/home/openerp/odoo/ display-name=apache-openerp//
// WSGIProcessGroup oe//
// <Directory /home/openerp/odoo >//
// #Options FollowSymLinks//
// #AllowOverride All//
// Order deny,allow//
// Allow from all//
// </Directory>//
// ErrorLog /home/logs/apache-openerp.log//
//</VirtualHost>//
//```/
Here is the wsgi conf :
/```python
import openerp
openerp.multi_process = True # Nah!
openerp.conf.server_wide_modules = ['web']
conf = openerp.tools.config
conf['data_dir']='/home/openerp/datas'
conf['addons_path'] = '/home/openerp/odoo/addons'
application = openerp.service.wsgi_server.application
openerp.service.server.load_server_wide_modules()
# Standard OpenERP XML-RPC port is 8069
bind = '127.0.0.1:8072'
pidfile = '.gunicorn.pid'
workers = 4
timeout = 240
max_requests = 2000
```/
I still have this problem :
/```python
[Tue May 27 20:25:30 2014] [error] No handlers could be found for logger
"openerp.addons.website_event.controllers.main"
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] mod_wsgi
(pid=20997): Exception occurred processing WSGI script
'/home/openerp/odoo/openerp-wsgi.py'.
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] Traceback (most
recent call last):
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/service/wsgi_server.py", line 215, in
application
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] return
application_unproxied(environ, start_response)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/service/wsgi_server.py", line 201, in
application_unproxied
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] result =
handler(environ, start_response)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/http.py", line 1115, in __call__
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] return
self.dispatch(environ, start_response)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/http.py", line 1092, in __call__
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] return
self.app(environ, start_wrapped)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/opt/rh/python27/root/usr/lib/python2.7/site-packages/werkzeug/wsgi.py", line
411, in __call__
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] return
self.app(environ, start_response)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/http.py", line 1258, in dispatch
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] response =
self.get_response(httprequest, result, explicit_session)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/http.py", line 1196, in get_response
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] result =
request.registry['ir.http']._handle_exception(e)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/addons/website/models/ir_http.py", line 148, in
_handle_exception
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] attach =
self._serve_attachment()
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/addons/website/models/ir_http.py", line 121, in
_serve_attachment
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] attach =
self.pool['ir.attachment'].search_read(request.cr, openerp.SUPERUSER_ID,
domain, ['__last_update', 'datas', 'mimetype'], context=request.context)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/osv/orm.py", line 5119, in search_read
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] record_ids =
self.search(cr, uid, domain or [], offset=offset, limit=limit,
order=order, context=context)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/addons/calendar/calendar.py", line 1685, in search
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] return
super(ir_attachment, self).search(cr, uid, args, offset=offset,
limit=limit, order=order, context=context, count=count)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/addons/document/document.py", line 87, in search
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] ids =
super(document_file, self).search(cr, uid, args, offset=offset,
limit=limit, order=order, context=context, count=False)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/osv/orm.py", line 1985, in search
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] return
self._search(cr, user, args, offset=offset, limit=limit, order=order,
context=context, count=count)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/addons/base/ir/ir_attachment.py", line 247,
in _search
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23]
access_rights_uid=access_rights_uid)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/osv/orm.py", line 4652, in _search
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23]
cr.execute(query_str, where_clause_params)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/sql_db.py", line 156, in wrapper
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] return f(self,
*args, **kwargs)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] File
"/home/openerp/odoo/openerp/sql_db.py", line 221, in execute
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] res =
self._obj.execute(query, params)
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] InternalError:
ERREUR: la transaction est annul\xc3\xa9e, les commandes sont
ignor\xc3\xa9es jusqu'\xc3\xa0 la fin du bloc
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23] de la transaction
[Tue May 27 20:25:31 2014] [error] [client 10.0.130.23]
```/
Am I missing something?
Thanks for your help
Follow ups