Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
42917 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer

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

Beste antwoord

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
Annuleer

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 18
7868
3
dec. 24
43913
0
mrt. 22
7547
1
sep. 19
3866
1
mrt. 17
6212