Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Discus Not Realtime Error

By
W360S CORP
on 11/17/16, 9:19 PM 129 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 


0
W360S CORP
On 11/18/16, 3:01 AM

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

0
Thanh Loyal
On 11/18/16, 2:33 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/17/16, 9:19 PM
Seen: 129 times
Last updated: 11/18/16, 3:01 AM