Error : bus.Bus unavailable
Este error ocurre cuando activamos los Workers para resolverlo tenemos que
hacer lo siguiente en el archivo: nano /etc/odoo/odoo.conf
proxy_mode = True longpolling_port = 8072 xmlrpc_port = 8069 xmlrpc_interface = 127.0.0.1 netrpc_interface = 127.0.0.1
Luego en el archivo : nano /etc/nginx/sites-available/default
upstream odoochat{ server 127.0.0.1:8072; } location /longpolling { proxy_pass http://odoochat; }
Si mostramos los archivos completos quedarĆa
nano /etc/odoo/odoo.conf
[options] addons_path = /opt/odoo/server/addons admin_passwd = odoo14 db_host = False db_name = False db_password = odoo14 ;db_port = 5432 db_user = odoo ;dbfilter = .* list_db = True log_db = False logfile = /var/log/odoo/odoo-server.log logrotate = True ;log_level = warn proxy_mode = True longpolling_port = 8072 xmlrpc_port = 8069 xmlrpc_interface = 127.0.0.1 netrpc_interface = 127.0.0.1 workers = 17 limit_time_real = 1200 limit_time_cpu = 600
nano /etc/nginx/sites-available/default
upstream odoo{ server localhost:8069; } upstream odoochat{ server 127.0.0.1:8072; } server { listen 80 default; server_name erp.yourdomain.com 50.69.84.113; keepalive_timeout 600; client_header_timeout 600; client_max_body_size 200M; client_body_timeout 600; proxy_connect_timeout 600; proxy_send_timeout 600; proxy_read_timeout 600; send_timeout 600; root /usr/share/nginx/html; index index.html index.htm; proxy_buffers 16 64k; proxy_buffer_size 128k; location / { proxy_pass http://odoo; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; # invento mio proxy_set_header X-ODOO_DBFILTER db; proxy_pass_request_headers on; } tiny_mce_marker_ location /longpolling { proxy_pass http://odoochat; } }
0 comentarios:
Publicar un comentario