Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In the latest v8.0 repo, when I install im_chat, the server starts logging errors like this:
2014-09-18 17:52:01,152 32356 ERROR tierrafirme openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 499, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 516, in dispatch
result = self._call_function(**self.params)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 282, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 279, in checked_call
return self.endpoint(*a, **kw)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 732, in __call__
return self.method(*args, **kw)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/openerp/http.py", line 375, in response_wrap
response = f(*args, **kw)
File "/srv/odoo/8.0/instances/tierrafirme/odoo/addons/bus/bus.py", line 188, in poll
raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable
Also the chat doesn't work properly, the messages do not arrive instantly, the chat windows do not close or minimize.
Is there something else I have to do to install or configure the bus or im_chat module?
Just to follow-up.
The answer is that I was not running the server in gevent mode. During 8.0 development odoo introduced gevent mode to be able to get real-time messages from one client to another. This had to be enabled running the server with the provided openerp-gevent script.
Now that the v8.0 is released, this was improved, you have to run the server with the odoo.py script, using the --workers option set with at least 2 workers, this way odoo will start that many workers, plus some cron workers and 1 gevent worker. This last one will take care of your bus and chat messages. To have a little more info about how to use regular workers with the gevent worker together read this other question.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/18/14, 1:58 PM|
|Seen: 11660 times|
|Last updated: 6/18/16, 1:07 AM|