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

IM chat not work with database which installed in another server

By
Khiem Cong
on 2/2/16, 1:47 AM 617 views

Hi all,

I have install Odoo application and database in two servers (Windows 2008 R2 Ent).

But IM chat is not working. Chat message is still inserted into database, but there is no response message. Actually, I can not minimize or close chat window. I try to run openerp-gevent with nginx proxy, but it is not work.

However, i try to install database in the same server with application. IM chat works normally.

I can not understand what happened :( Please anyone can help me to deploy application and database in two servers without IM chat problem ?

Thanks,

0
Khiem Cong
On 2/2/16, 8:21 AM

Thanks for your support. I have started 2 instance (openerp-server port 8096 and openerp-gevent port 8072). And using nginx to forward https and longpolling. But chat not work. I just got these in openerp-gevent.log

2016-02-02 20:17:12,934 804 DEBUG atad-erp openerp.http.rpc.response: poll: None None: time:50.030s mem: 64660k -> 64660k (diff: 0k), []

2016-02-02 20:17:12,950 804 DEBUG atad-erp openerp.http.rpc.request: poll: None None, []

2016-02-02 20:18:02,980 804 DEBUG atad-erp openerp.http.rpc.response: poll: None None: time:50.030s mem: 64660k -> 64660k (diff: 0k), []

2016-02-02 20:18:02,994 804 DEBUG atad-erp openerp.http.rpc.request: poll: None None, []

2016-02-02 20:18:08,081 804 DEBUG atad-erp openerp.http.rpc.response: poll: None None: time:5.086s mem: 64660k -> 64660k (diff: 0k), []

2016-02-02 20:18:08,095 804 DEBUG atad-erp openerp.http.rpc.request: poll: None None, []

2016-02-02 20:18:10,624 804 DEBUG atad-erp openerp.http.rpc.response: poll: None None: time:2.528s mem: 64660k -> 64660k (diff: 0k), []

2016-02-02 20:18:10,638 804 DEBUG atad-erp openerp.http.rpc.request: poll: None None, []

0

Temur

--Temur--
2894
| 6 5 7
Tbilisi, Georgia
--Temur--
Programmer
Temur
On 2/2/16, 4:43 AM

I guess with your deployment cron jobs are not working either.... Please check it.  The reason you've run into this problem is that you're using openerp-gevent, and in this case you'll need to run two additional workers in the background, one for chat and another for cron-jobs (i.e. scheduled actions in odoo).  But here is one more detail to cinsider, you'll need to proxy requests starting with /longpolling/ to the chat instance. Firs make sure you have running openerp-gevent instance. then make sure that in NGINX configuration you're redirecting requests starting with /longpolling/ to the 8072 port, which is default port of chat instance. for example in nginx site config you can do it as follows:


. . . 

upstream im-chat {
server 127.0.0.1:8072 weight=1 fail_timeout=0;
}
. . .

server {
. . .

    location /longpolling {
proxy_pass http://im-chat;
}
. . .

}


it'll get your chat to work.


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: 2/2/16, 1:47 AM
Seen: 617 times
Last updated: 2/2/16, 8:21 AM