Skip to Content
Menu
This question has been flagged
1 Reply
136 Views

Hi,

I am facing a repeated “bus.Bus unavailable” exception in my Odoo 15 instance running on localhost. The error appears during JSON request handling, especially when notifications or chat features trigger server requests.


2025-10-27 12:18:28,520 49937 ERROR test_backup01 odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/addons/base/models/ir_http.py", line 242, in _dispatch
    result = request.dispatch()
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/http.py", line 702, in dispatch
    result = self._call_function(**self.params)
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/http.py", line 368, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/http.py", line 357, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/http.py", line 925, in __call__
    return self.method(*args, **kw)
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/http.py", line 546, in response_wrap
    response = f(*args, **kw)
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo15core-master/bus/controllers/main.py", line 28, in poll
    raise Exception("bus.Bus unavailable")
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/http.py", line 658, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/user/uday_sankar_k/odoo15/odoo/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
Exception: bus.Bus unavailable
  • Conf file includes:
    • workers = 2
    • longpolling_port = 8072
    • proxy_mode = True
Avatar
Discard

Hello,
Hello,
If you are working in a local environment, you don’t need to set proxy_mode = True.
Also, remove longpolling_port if you are not using any custom modules that rely on longpolling or real-time notifications.
Hope it helps.

Best Answer

Hi,


The “bus.Bus unavailable” error in Odoo 15 usually indicates that the longpolling service, which manages real-time features like chat and notifications, isn’t running or properly configured. This typically happens when the longpolling worker isn’t started, the reverse proxy (like Nginx) doesn’t forward requests to the longpolling port, or there’s a misconfiguration in the Odoo setup. It can also occur if the Odoo core files are modified or corrupted, especially within the bus module.


To fix it, you should first ensure the longpolling worker is running on the correct port (usually 8072) using a command like odoo-bin --longpolling-port=8072. If you use Nginx or another proxy with proxy_mode=True, configure it to forward /longpolling/ requests to port 8072. Next, check your Odoo configuration file (odoo.conf) to confirm the settings for workers, longpolling_port, and proxy_mode are correct. If you’re working locally without a proxy, setting proxy_mode=False can simplify things.


If the issue persists, reinstall the bus module to ensure it isn’t corrupted and verify that its files (particularly bus/controllers/main.py) are intact. For local development, you can disable longpolling altogether by setting workers=0 and proxy_mode=False. Overall, this error means Odoo cannot connect to its live update service, so running a proper longpolling worker and configuring your proxy correctly should resolve it.


Reference:-https://www.cybrosys.com/blog/how-to-con


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
0
Jun 24
474
2
Mar 15
5594
0
Sep 25
485
3
Sep 24
2132
0
May 24
1553