This question has been flagged
4 Replies
11275 Views

The chat button doesn't appear at all on the website. Even it doesn't work on the live demo of Odoo https://demo2.odoo.com. Does anyone know about it?

If this is a issue it should be fixed.

The livechat on localhost works fine.

Avatar
Discard
Best Answer

I solved this by doing the below

1- set workers in odoo.conf

2-set upstream polling in nginx conf (refere to odoo deploy documentation)

3-install requirments.txt again after doing the above 2 points (to install gevent)

Avatar
Discard

Hi Maher, were you using Windows or Ubuntu? gevent does not seem to install for Ubuntu

Hello

I am using ubuntu and my problem solved already

let me know if you need any help

Regards;
Eng. Maher Khalil
On 7/15/21 11:15 AM, Alvin Arulselvan wrote:

Hi Maher, were you using Windows or Ubuntu? gevent does not seem to install for Ubuntu

Gesendet durch Odoo S.A. in benutzung Odoo.

Hi Maher,

1) I set workers to 4 in Odoo

2) I setup upstream polling in nginx

3) pip install gevent gives me a Requirement already satisfied message

Not sure why I can't see the chat button though.

Best Answer

The Comment from Jose Gpe Osuna from 21 March 2023 provided the answer for me for Odoo 16:
location /websocket {

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

Odoo 16 has changed longpolling to websocket
# Handle longpoll requests
location /websocket {
proxy_pass http://odoochat;
}

Now it's working on my Odoo 16 instance

Best Answer

same problem mate...good luck on getting any help...

Avatar
Discard