跳至內容
選單
此問題已被標幟
3 回覆
42902 瀏覽次數

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

頭像
捨棄
最佳答案

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;  
 }

}  


頭像
捨棄

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

最佳答案

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

頭像
捨棄

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

相關帖文 回覆 瀏覽次數 活動
0
10月 18
7865
3
12月 24
43904
0
3月 22
7546
1
9月 19
3862
1
3月 17
6207