Odoo 错误:Exception("bus.Bus unavailable") 是什么鬼?
-
我们在测试或部署Odoo的时候会经常在log中看到标题中的这个错误:
Exception("bus.Bus unavailable")到底这是一个什么鬼呢?看起来似乎也不大影响操作。
bus.Bus主要用于即时消息通知,所以如果只是用于测试,你完全可以无视这个错误。如果想眼睛清静,你可以不要用“多进程”的模式测试,就是那个workers的启动参数设为零,即:workers=0就可以了。这样Odoo就工作在“线程”模式下了。线程模式下的消息通知,不使用多进程模式下的长连接的方式。如果你因为性能要求,需要在Odoo部署中使用“多进程模式”,也就是
workers不为0的情况。那你就需要设置反向代理,比如使用nginx并作这样的设置:location /longpolling { proxy_pass http://127.0.0.1:8072; } location / { proxy_pass http://127.0.0.1:8069; } -
我们在测试或部署Odoo的时候会经常在log中看到标题中的这个错误:
Exception("bus.Bus unavailable")到底这是一个什么鬼呢?看起来似乎也不大影响操作。
bus.Bus主要用于即时消息通知,所以如果只是用于测试,你完全可以无视这个错误。如果想眼睛清静,你可以不要用“多进程”的模式测试,就是那个workers的启动参数设为零,即:workers=0就可以了。这样Odoo就工作在“线程”模式下了。线程模式下的消息通知,不使用多进程模式下的长连接的方式。如果你因为性能要求,需要在Odoo部署中使用“多进程模式”,也就是
workers不为0的情况。那你就需要设置反向代理,比如使用nginx并作这样的设置:location /longpolling { proxy_pass http://127.0.0.1:8072; } location / { proxy_pass http://127.0.0.1:8069; }@digitalsatori 我就本地测试的话,不用nginx,有办法处理掉这个错误吗?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login