Longpolling location is not set
We need to set a location for longpolling
in /etc/nginx/sites-available/odoo.ssl.conf
, with a proxy_pass
to an upstream defined in /etc/nginx/conf.d/upstream.conf
odoo.log
2023-07-12 11:49:53,517 1023276 ERROR erp odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/http.py", line 941, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/bus/controllers/main.py", line 37, in poll
raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable