Skip to Content
Menu
This question has been flagged
2 Replies
5560 Views

Hello anyone help plz

i have error with discus & live chat it not work properly

The discus could not show the message after i load the page plz see the video

https://www.youtube.com/watch?v=f7lLM27okPY&feature=youtu.be

The live chat not work after successful installation plz help 


Avatar
Discard
Author Best Answer

Im done with this code below and it work now :) i hop that im right

~# vim /etc/rc.local

add 2 line bellow at the end of rc.local

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8070

then save

if the rc.local doesn't exsit just create rc.local file then run commend:

chmod +x /etc/rc.localsh /etc/rc.local

add following code to rc.local file.

#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other# value on error.

## In order to enable or disable this script just change the execution# bits.

## By default this script does nothing.

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8070exit 0

Avatar
Discard
Best Answer

Hi Chau Le,

Chat runs on a separated service on port 8072 (default), on a linux system, you need --workers parameter in your startup script to get it works:

odoo.py --addons-path=addons --db_user=odoo --workers=3


And also, it seems to be that you are running Odoo under nginx proxy, so please forward /longpolling request to "longpolling-port":

nginx:

location /longpolling {
     proxy_pass http://127.0.0.1:8072;
}


And to make sure longpolling is the cause, pleas turn on F12 mode of your browser and verify that requests to /longpolling fail

Avatar
Discard
Related Posts Replies Views Activity
4
Aug 23
41590
0
Nov 24
118
0
May 24
20
0
Feb 24
286
2
Feb 24
615