- Mailing Lists
- Contributors
- huge amount of: raise Exception("bus.Bus unavailable")
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
huge amount of: raise Exception("bus.Bus unavailable")
Hi there
I am running odoo in a docker container behingd an nginx http-server
now I get millions of exception in the log that the bus is not available.
I realy would like to find a solution for this, as this renders the log
unusable.
in the odoo config I declare the longpolling port to be 8072:
longpolling_port = 8072
in the container I map port 8072 to 19100
"Ports": {
"8069/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "9100"
}
],
"8072/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "19100"
}
]
},
the NGINX conf:
#
# client_x
# -------------------
# _robert_
#odoo server
upstream odoo_client_x {
server 127.0.0.1:9100;
}
upstream odoochat_client_x {
server 127.0.0.1:19100;
}
# start with http server, certbot will add https
server {
server_name 13.client.ch;
access_log /var/log/nginx/13.client_x.ch.access.log combined;
error_log /var/log/nginx/13.client_x.ch.error.log;
location / {
proxy_pass http://odoo_client_x;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/13.client_x.ch/fullchain.pem;
# managed by Certbot
ssl_certificate_key
/etc/letsencrypt/live/13.client_x.ch/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = 13.client_x.ch) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name 13.client_x.ch;
return 404; # managed by Certbot
}
thanks for any help
robert
Traceback (most recent call last):
File "/odoo/src/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/src/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/src/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/odoo/src/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/odoo/src/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/src/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/src/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/src/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/odoo/src/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/odoo/src/addons/bus/controllers/main.py", line 35, in poll
raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable
2020-08-19 15:24:18,405 71 INFO client_x werkzeug: 172.17.0.1 - -
[19/Aug/2020 15:24:18] "POST /longpolling/poll HTTP/1.0" 200 - 1 0.000 0.004
by robert - 06:20 - 19 Aug 2020
Follow-Ups
-
Re: huge amount of: raise Exception("bus.Bus unavailable")
Hi,I'm not using docker containers but when I find "bus.bus unavailable" error, the solution pointed out in https://odoo-development.readthedocs.io/en/latest/debugging/errors/exception-bus-bus-unavailable.html solves it; hope this works for you too!Thanks,Simone RubinoHi there I am running odoo in a docker container behingd an nginx http-server now I get millions of exception in the log that the bus is not available. I realy would like to find a solution for this, as this renders the log unusable. in the odoo config I declare the longpolling port to be 8072: longpolling_port = 8072 in the container I map port 8072 to 19100 "Ports": { "8069/tcp": [ { "HostIp": "127.0.0.1", "HostPort": "9100" } ], "8072/tcp": [ { "HostIp": "127.0.0.1", "HostPort": "19100" } ] }, the NGINX conf: # # client_x # ------------------- # _robert_ #odoo server upstream odoo_client_x { server 127.0.0.1:9100; } upstream odoochat_client_x { server 127.0.0.1:19100; } # start with http server, certbot will add https server { server_name 13.client.ch; access_log /var/log/nginx/13.client_x.ch.access.log combined; error_log /var/log/nginx/13.client_x.ch.error.log; location / { proxy_pass http://odoo_client_x; } listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/13.client_x.ch/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/13.client_x.ch/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = 13.client_x.ch) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; listen [::]:80; server_name 13.client_x.ch; return 404; # managed by Certbot } thanks for any help robert Traceback (most recent call last): File "/odoo/src/odoo/http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/odoo/src/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/odoo/src/odoo/tools/pycompat.py", line 14, in reraise raise value File "/odoo/src/odoo/http.py", line 669, in dispatch result = self._call_function(**self.params) File "/odoo/src/odoo/http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "/odoo/src/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/odoo/src/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/odoo/src/odoo/http.py", line 915, in __call__ return self.method(*args, **kw) File "/odoo/src/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/odoo/src/addons/bus/controllers/main.py", line 35, in poll raise Exception("bus.Bus unavailable") Exception: bus.Bus unavailable 2020-08-19 15:24:18,405 71 INFO client_x werkzeug: 172.17.0.1 - - [19/Aug/2020 15:24:18] "POST /longpolling/poll HTTP/1.0" 200 - 1 0.000 0.004_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Simone Rubino - 09:20 - 20 Aug 2020 -
Re: solved: Re: huge amount of: raise Exception("bus.Bus unavailable")
Pretty quick fix it seems. Kudos there Robert.Landis ArnoldNomadic Inc.Longmont, CO USAFrom: robert@redo2oo.ch
To: "Odoo Community Association, (OCA) Contributors" <contributors@odoo-community.org>
Sent: Wednesday, August 19, 2020 10:57:37 AM
Subject: solved: Re: huge amount of: raise Exception("bus.Bus unavailable")I found the reason:
I did not really use the long polling "nginx-server".
Maybe the lets encript setup process removed that part. ??
What I did, I added:
# Redirect longpoll requests to odoo longpolling port
location /longpolling {
proxy_pass http://odoochat_client_x;
}
thanks for listening
robert
On 19.08.20 18:22, robert@redo2oo.ch wrote:
Hi there I am running odoo in a docker container behingd an nginx http-server now I get millions of exception in the log that the bus is not available. I realy would like to find a solution for this, as this renders the log unusable. in the odoo config I declare the longpolling port to be 8072: longpolling_port = 8072 in the container I map port 8072 to 19100 "Ports": { "8069/tcp": [ { "HostIp": "127.0.0.1", "HostPort": "9100" } ], "8072/tcp": [ { "HostIp": "127.0.0.1", "HostPort": "19100" } ] }, the NGINX conf: # # client_x # ------------------- # _robert_ #odoo server upstream odoo_client_x { server 127.0.0.1:9100; } upstream odoochat_client_x { server 127.0.0.1:19100; } # start with http server, certbot will add https server { server_name 13.client.ch; access_log /var/log/nginx/13.client_x.ch.access.log combined; error_log /var/log/nginx/13.client_x.ch.error.log; location / { proxy_pass http://odoo_client_x; } listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/13.client_x.ch/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/13.client_x.ch/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = 13.client_x.ch) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; listen [::]:80; server_name 13.client_x.ch; return 404; # managed by Certbot } thanks for any help robert Traceback (most recent call last): File "/odoo/src/odoo/http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/odoo/src/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/odoo/src/odoo/tools/pycompat.py", line 14, in reraise raise value File "/odoo/src/odoo/http.py", line 669, in dispatch result = self._call_function(**self.params) File "/odoo/src/odoo/http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "/odoo/src/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/odoo/src/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/odoo/src/odoo/http.py", line 915, in __call__ return self.method(*args, **kw) File "/odoo/src/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/odoo/src/addons/bus/controllers/main.py", line 35, in poll raise Exception("bus.Bus unavailable") Exception: bus.Bus unavailable 2020-08-19 15:24:18,405 71 INFO client_x werkzeug: 172.17.0.1 - - [19/Aug/2020 15:24:18] "POST /longpolling/poll HTTP/1.0" 200 - 1 0.000 0.004_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Landis Arnold - 09:30 - 19 Aug 2020 -
solved: Re: huge amount of: raise Exception("bus.Bus unavailable")
I found the reason:
I did not really use the long polling "nginx-server".
Maybe the lets encript setup process removed that part. ??
What I did, I added:
# Redirect longpoll requests to odoo longpolling port
location /longpolling {
proxy_pass http://odoochat_client_x;
}
thanks for listening
robert
On 19.08.20 18:22, robert@redo2oo.ch wrote:
Hi there I am running odoo in a docker container behingd an nginx http-server now I get millions of exception in the log that the bus is not available. I realy would like to find a solution for this, as this renders the log unusable. in the odoo config I declare the longpolling port to be 8072: longpolling_port = 8072 in the container I map port 8072 to 19100 "Ports": { "8069/tcp": [ { "HostIp": "127.0.0.1", "HostPort": "9100" } ], "8072/tcp": [ { "HostIp": "127.0.0.1", "HostPort": "19100" } ] }, the NGINX conf: # # client_x # ------------------- # _robert_ #odoo server upstream odoo_client_x { server 127.0.0.1:9100; } upstream odoochat_client_x { server 127.0.0.1:19100; } # start with http server, certbot will add https server { server_name 13.client.ch; access_log /var/log/nginx/13.client_x.ch.access.log combined; error_log /var/log/nginx/13.client_x.ch.error.log; location / { proxy_pass http://odoo_client_x; } listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/13.client_x.ch/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/13.client_x.ch/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = 13.client_x.ch) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; listen [::]:80; server_name 13.client_x.ch; return 404; # managed by Certbot } thanks for any help robert Traceback (most recent call last): File "/odoo/src/odoo/http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/odoo/src/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/odoo/src/odoo/tools/pycompat.py", line 14, in reraise raise value File "/odoo/src/odoo/http.py", line 669, in dispatch result = self._call_function(**self.params) File "/odoo/src/odoo/http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "/odoo/src/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/odoo/src/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/odoo/src/odoo/http.py", line 915, in __call__ return self.method(*args, **kw) File "/odoo/src/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/odoo/src/addons/bus/controllers/main.py", line 35, in poll raise Exception("bus.Bus unavailable") Exception: bus.Bus unavailable 2020-08-19 15:24:18,405 71 INFO client_x werkzeug: 172.17.0.1 - - [19/Aug/2020 15:24:18] "POST /longpolling/poll HTTP/1.0" 200 - 1 0.000 0.004_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by robert - 06:56 - 19 Aug 2020