Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
6791 Представления

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 


Аватар
Отменить
Автор Лучший ответ

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
авг. 23
43775
0
апр. 25
808
0
нояб. 24
1181
0
мая 24
20
0
февр. 24
1161