コンテンツへスキップ
メニュー
この質問にフラグが付けられました
6 返信
13280 ビュー

I am getting error when adding workers to conf file.

raise Exception("bus.Bus unavailable")
Exception: bus.Bus unavailable

*I have configured apache,

* Odoo running on https

* long polling port 8072 added on conf file

*reverse_proxy=True on conf file

How to solve this issue ?

アバター
破棄
最善の回答

In addition to the earlier answer it can be stated that the longpolling related Proxy directives must be specified in the Apache conf file of your vhost before the main Proxy directives (i.e. those related to port 8069). For details see section 'Overlapping Webspace' in https://httpd.apache.org/docs/2.4/sections.html

アバター
破棄
最善の回答

Hi Shashank:

Include the following settings in your apache conf file (for example, /etc/apache2/sites-available/yourdomain.com.conf) by replacing yourdomain.com with your own domain name and restart apache.

ProxyPass /longpolling http://yourdomain.com:8072/
ProxyPassReverse /longpolling http://yourdomain.com:8072/

アバター
破棄
著作者

No success.

<VirtualHost *:443>

ServerName odoo.sandbox.com

ServerAlias odoo.sandbox.com

LogLevel warn

ErrorLog /var/log/apache2/odoo.sandbox.com:8069.error.log

CustomLog /var/log/apache2/odoo.sandbox.com:8069.access.log combined

SSLEngine on

SSLProxyEngine on

SSLCertificateFile /etc/apache2/ssl/4gg366776735c4.crt

SSLCertificateKeyFile /etc/apache2/ssl/sandbox.key

ProxyPreserveHost On

ProxyPass / http://odoo.sandbox.com:8069/ retry=0

ProxyPassReverse / http://odoo.sandbox.com:8069/

</VirtualHost>

I don't see any ProxyPass / ProxyPassReverse lines for port 8072 in what you have posted ?

You need to add the 2 lines mentioned in my earlier post for longpolling to work with workers. These lines instruct Apache to redirect requests made to /longpolling to port 8072.

最善の回答

You need to pass proxy_mode = True in odoo conf file.

アバター
破棄
著作者

No success.Below is my conf file

[options]

admin_passwd = admin

db_host = False

db_port = False

db_user = odoolive

db_password = FALSE

addons_path = /opt/odoo/odoo-12.0/addons/,/opt/odoo/odoo-12.0/odoo-enterprise/

dbfilter = odoo12

;Uncomment the following line to enable a custom log

logfile = /srv/log.log

xmlrpc_port = 8069

longpolling_port = 8072

proxy_mode = True

;filestore

data_dir = /srv/filestore

;Worker Settings

limit_memory_hard = 2097152000

limit_memory_soft = 1677721600

limit_request = 16384

limit_time_cpu = 3600

limit_time_real = 7200

max_cron_threads = 2

workers = 2

関連投稿 返信 ビュー 活動
2
12月 24
17969
0
1月 24
1915
1
4月 24
41623
1
5月 25
23475
0
8月 22
2449