Su una installazione di Odoo 10 effettuata tramite pip
riscontriamo un corretto funzionamento se Odoo viene avviato con il parametro workers = 0
. Tuttavia, anche impostandolo a 2
(con effettivamente 8 core disponibili), riscontriamo una valanga di errori relativi a Gevent:
Mar 29 16:15:47 webserver odoo[6023]: Traceback (most recent call last): Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/bin/odoo", line 5, in Mar 29 16:15:47 webserver odoo[6023]: __import__('pkg_resources').declare_namespace('odoo.addons') Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3088, in Mar 29 16:15:47 webserver odoo[6023]: @_call_aside Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside Mar 29 16:15:47 webserver odoo[6023]: f(*args, **kwargs) Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3116, in _initialize_master_working_set Mar 29 16:15:47 webserver odoo[6023]: for dist in working_set Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3116, in Mar 29 16:15:47 webserver odoo[6023]: for dist in working_set Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2639, in activate Mar 29 16:15:47 webserver odoo[6023]: declare_namespace(pkg) Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2176, in declare_namespace Mar 29 16:15:47 webserver odoo[6023]: _handle_ns(packageName, path_item) Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2111, in _handle_ns Mar 29 16:15:47 webserver odoo[6023]: loader.load_module(packageName) Mar 29 16:15:47 webserver odoo[6023]: File "/usr/lib/python2.7/pkgutil.py", line 243, in load_module Mar 29 16:15:47 webserver odoo[6023]: mod = imp.load_module(fullname, self.file, self.filename, self.etc) Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/lib/python2.7/site-packages/odoo/__init__.py", line 15, in Mar 29 16:15:47 webserver odoo[6023]: gevent.monkey.patch_all() Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/gevent/monkey.py", line 966, in patch_all Mar 29 16:15:47 webserver odoo[6023]: _notify_patch(events.GeventWillPatchAllEvent(modules_to_patch, kwargs), _warnings) Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/gevent/monkey.py", line 168, in _notify_patch Mar 29 16:15:47 webserver odoo[6023]: notify_and_call_entry_points(event) Mar 29 16:15:47 webserver odoo[6023]: File "/home/odoo/odoo10/local/lib/python2.7/site-packages/gevent/events.py", line 111, in notify_and_call_entry_points Mar 29 16:15:47 webserver odoo[6023]: for plugin in iter_entry_points(event.ENTRY_POINT_NAME): Mar 29 16:15:47 webserver odoo[6023]: TypeError: 'NoneType' object is not callable
Stiamo sbagliando qualcosa? Come possiamo correggere questo problema?
Grazie.