Skip to Content
Menu
This question has been flagged
3 Replies
7641 Views

Hi guys 

I would like your help. I am new in Odoo 11.0 Community version . I have the problem that the small pop up of the live chat "have a question" on the down right cornet does not appear in https configuration.  I have installed CRM Livechat, Website Live Support, 

Live Chat

 

I have the next parameters:

  1. I have Setting/Parameters/System Parameters/web.base.url as https 

  2. I have configured the firewall configuration

OpenSSH                    ALLOW       Anywhere

443                        ALLOW       Anywhere

Nginx Full                 ALLOW       Anywhere

80/tcp                     DENY        Anywhere

OpenSSH (v6)               ALLOW       Anywhere (v6)

443 (v6)                   ALLOW       Anywhere (v6)

Nginx Full (v6)            ALLOW       Anywhere (v6)

80/tcp (v6)                DENY        Anywhere (v6)



 3. /etc/odoo-server.conf

proxy_mode = True


4.   3. nginx configuration  /etc/nginx/sites-enabled/odoo.conf

#odoo server
upstream odoo {
 server 127.0.0.1:8069;
}
upstream odoochat {
 server 127.0.0.1:8072;
}

# http -> https
server {
   listen 80;
   server_name odoo.mycompany.com;
   rewrite ^(.*) https://$host$1 permanent;
}

server {
 listen 443;
 server_name odoo.mycompany.com;
 proxy_read_timeout 720s;
 proxy_connect_timeout 720s;
 proxy_send_timeout 720s;

 # Add Headers for odoo proxy mode
 proxy_set_header X-Forwarded-Host $host;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_set_header X-Forwarded-Proto $scheme;
 proxy_set_header X-Real-IP $remote_addr;

 # SSL parameters
 ssl on;
 ssl_certificate /etc/ssl/nginx/server.crt;
 ssl_certificate_key /etc/ssl/nginx/server.key;
 ssl_session_timeout 30m;
 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
 ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
 ssl_prefer_server_ciphers on;

 # log
 access_log /var/log/nginx/odoo.access.log;
 error_log /var/log/nginx/odoo.error.log;

 # Redirect longpoll requests to odoo longpolling port
 location /longpolling {
 proxy_pass http://odoochat;
 }

 # Redirect requests to odoo backend server
 location / {
   proxy_redirect off;
   proxy_pass http://odoo;
 }

 # common gzip
 gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
 gzip on;
}

 

I do not know what i am missing.

Avatar
Discard
Best Answer

This can a be problem with how you have configured Odoo. I had the same issue after configuring SSL and fixed it by doing below changes;

Once SSL is enabled using nginx, Odoo must be operational in multiprocessing mode in order to enable Live chat feature as Live Chat request redirected to longpolling port in nginx site configuration file.

example:

    # Handle longpoll requests
    location /longpolling {
        proxy_pass http://odoochat;
    }

when above is configured I also had to configure /etc/odoo.conf file as something like below.

[options]
; This is the password that allows database operations:
;admin_passwd = my_admin_passwd
db_host = False
db_port = False
db_user = odoo13
db_password = False
addons_path = /opt/odoo13/odoo/addons,/opt/odoo13/odoo-custom-addons
proxy_mode = True
xmlrpc_interface = 127.0.0.1
netrpc_interface = 127.0.0.1
max_cron_threads = 1
workers = 8

note "workers", it must be set depending on your hardware configuration.

when SSL is enabled try issuing below command in terminal

sudo netstat -tulpn | grep 8072

if configuration is ok, you should see something like below;

tcp        0      0 127.0.0.1:8072          0.0.0.0:*               LISTEN      8223/python3

more info can be found at https://www.odoo.com/documentation/13.0/setup/deploy.html
Avatar
Discard
Best Answer

For everyone looking for a solution and tried everything. Try to check .odoorc file (check the log at odoostartup) the worker setting here can override the /etc/odoo.conf

Double check you're starting in multiple worker mode

Avatar
Discard
Best Answer

Is this issue resolved? I think it occurs with ssh access, because it is working fine without ssh.

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 24
117
0
May 24
20
0
Feb 24
285
2
Feb 24
611
2
Mar 23
1833