This question has been flagged
3 Replies
38305 Views

Hi all , I am getting this error when i am trying to set workers greater than 0 .My project is deployed on AWS .I am usiing odoo V10 .

Kindly help .


File "/home/odoo/odoo-10.0/odoo/http.py", line 638, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/home/odoo/odoo-10.0/odoo/http.py", line 675, in dispatch

    result = self._call_function(**self.params)

  File "/home/odoo/odoo-10.0/odoo/http.py", line 331, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/odoo/odoo-10.0/odoo/service/model.py", line 119, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/odoo/odoo-10.0/odoo/http.py", line 324, in checked_call

    result = self.endpoint(*a, **kw)

  File "/home/odoo/odoo-10.0/odoo/http.py", line 933, in __call__

    return self.method(*args, **kw)

  File "/home/odoo/odoo-10.0/odoo/http.py", line 504, in response_wrap

    response = f(*args, **kw)

  File "/home/odoo/odoo-10.0/addons/bus/controllers/main.py", line 35, in poll

    raise Exception("bus.Bus unavailable")

Exception: bus.Bus unavailable

Avatar
Discard
Best Answer

Sample for nginx

server {

 listen 80;

  server_name myserver;

  root /var/www/myserver;

 location / {

  proxy_pass http://127.0.0.1:8069;

  proxy_redirect off;

  proxy_set_header Host $host;

  proxy_set_header X-Real-IP $remote_addr;

  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

  proxy_set_header X-Forwarded-Proto $scheme;

 }

 location /longpolling {
  proxy_pass http://127.0.0.1:8072;
  proxy_redirect off;  
 }

}  


Avatar
Discard

Im using NGinx and when enabling the workers configuration in odoo.conf started giving the Bus unavailable error, this solved the problem perfectly. Thanks.

Best Answer

no help for me

odoo is broken

I cant find any solution

a lot of people with the same problem and there is no solution

very unreliable

Avatar
Discard

This error occurs when it is impossible to get the Odoo link / longpolling and the option workers> 0 is enabled. To eliminate it, it is necessary to organize access to the Odoo through the proxy server, where to register the link forwarding / longpolling to port 8072 and the root link / to port 8069.

We have a full walkthrough of how to setup docker for odoo-production which includes the solution for this bug. Please find the repo here:

https://github.com/Merctrans/docker-odoo-production