This question has been flagged
6 Replies
10802 Views

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 ?

Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

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/

Avatar
Discard
Author

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.

Best Answer

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

Avatar
Discard
Author

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