Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
42680 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

}  


Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 18
7782
deploy odoo on aws Đã xử lý
3
thg 12 24
43571
0
thg 3 22
7456
1
thg 9 19
3770
1
thg 3 17
6090