Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
6 Odpowiedzi
12843 Widoki

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 ?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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/

Awatar
Odrzuć
Autor

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.

Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
2
gru 24
17414
0
sty 24
1636
1
kwi 24
40102
1
maj 25
22844
0
sie 22
2186