Skip to Content
Menu
This question has been flagged
3 Replies
4414 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,

Avatar
Discard
Best Answer

You can solve it by setting   workers = 1  in your odoo server config file.  reference: https://github.com/odoo/odoo/issues/15007

Avatar
Discard
Author Best Answer

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, []

Avatar
Discard
Best Answer

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.


Avatar
Discard