Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
42912 Vues

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
Ignorer
Meilleure réponse

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
Ignorer

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

Meilleure réponse

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
Ignorer

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

Publications associées Réponses Vues Activité
0
oct. 18
7867
3
déc. 24
43908
0
mars 22
7546
1
sept. 19
3864
1
mars 17
6212