Odoo Help


10 Answers



| 5 5 10
Bogotá, Colombia
Informatics engineer Industrial engineer
2013/07/03 13:13

First you need to install gevent

apt-get install python-gevent

Then install gevent_psycopg2 I installed this one


Then you need to start the server with --gevent

openerp-server --gevent

the server will be launched in port :8072

server helps mentions this about gevent option "Activate the GEvent mode, this also desactivate the cron."



now you have to launch the server with openerp-gevent not openerp-server --gevent

2014/08/02 1:29

I start my server with sudo /etc/init.d/openerp-server start or sudo service openerp-server start. So would I need to replace openerp-server with openerp-gevent in this two commands? How would you incorporate the gevent option into that start script (that most of the times will be used) And what module exactly do you install? this one https://www.odoo.com/apps/trunk/im ?

2014/08/02 1:37

here is a version that is meant to be for 7.0. https://bitbucket.org/anybox/web_im Will report whether that work once I have tested it.


Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 8 9 10
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




ERP Harbor Consulting Services

Website: http://www.erpharbor.com
Sudhir Arya (ERP Harbor Consulting Services)
2013/06/29 18:11

I think you need to pass command line argument when you start OpenERP server from terminal. I don't remember what is the option you have to pass.

But I am sure chat will be activated when you pass the command line argument (option).

Try this but I am not sure this option is right or not. So just try it.

python openerp-server --addons ../addons/,../web/addons --gevent

Hope this will work.

1 Comment
Naltu, Pablo Manuel Rizzo
2013/08/28 17:40

Adding this parameter, the server listens on port 8072, but not on 8069, so it doesnt work

2014/05/26 7:08

Does this apply to V8/Trunk right now?

Mario Gielissen
2014/07/21 17:55

I have tested the latest #odoo v8.0 build (Ubuntu 14.04 with ODOO v8 install script). IM Livechat works out-of-the-box (on port 8069) without separate openerp-gevent service or any modification.



The --gevent option, run your OpenERP server with gevent. Gevent is based on eventlet. Evenlet use the coroutine not thread. So you open only one thread for all the connection, and the block loop, block all the coroutine, it 's dangerous.

If really you want use the gevent server, you must launch 2 OpenERP server: * the first with the OpenERP server on the 8069 port * A second with gevent server, on the 8072 port

Use a Apache or Nginx to dispatch between OpenERP server or gevent server (path /longpolling)

Juan José Scarafía
2013/10/18 11:58

Hi Jean! As we would like to use the chat, We have run openerp trunk with gevent option but we find out that cron stops working. Any suggestion? Following your message we should lunch 2 oerp servers and then 'dispach' them whit gevent. Can you give some clues on how to achive this? Also, As you said "If really you want use the gevent server,...". Any problem with running gevent?

A. Person
2014/01/27 12:40

Jean-Sebastien, could you elaborate on what you mean? In what way is it dangerous to run openerp-gevent?

Fadel Damen Schreiner
2014/01/14 16:17

I am install python-gevent and install gevent_psycopg2

my openerp is version:

./openerp-server --version OpenERP Server 8.0dev-20140114-091614

but not start with --gevent parameter ?

show: ./openerp-server --gevent Usage: openerp-server [options]

openerp-server: error: no such option: --gevent

2014/01/15 9:47

it has changed since I answered the question, now you have to launch the openerp not with openerp-server, but with a file called openerp-gevent, you need to launch the server with that, I will update my answer to add this, BTW: your post is not an answer, it is better suited to put it on a comment to the question or to a relevant answer.

A. Person
2014/01/23 21:55

What is the latest with this? I've tried the nightlies from 20140122 and 20140124 and there is no file called openerp-gevent.

A. Person
2014/01/27 12:22

/usr/bin/openerp-gevent is installed if I patch setup.py like this: "scripts = ['openerp-server', 'openerp-gevent'],"

febru wasono
2013/09/02 15:42

go to openerp/tools/config.py

then set default value of gevent=True

then restart your server

see complete tutorial on febru dot soluvas dot com

Komala Kiran Kumar. Parepalli
2014/01/06 2:06

Hi, I searched for the keyword gevent in config.py file, but i find no sign of it. can you please help with it.

Yashodhan Kulkarni
2014/04/10 7:40

Ya, even I dont find any gevent = True / False;

Ahmed Hassan
2014/02/11 14:17

Pre Request for IM module: 1. # sudo apt-get install python-gevent 2.# apt-get install psycogreen 3.# pip install psycogreen-1.0.tar.gz 2. # easy_install gevent 3. # easy_install greenlet 4. # apt-get install python-all-dev 7.# apt-get install libevent-dev 5. # easy_install gevent-psycopg2-0.0.3.tar.gz 6. setup IM module 7. And run your server by openerp-gevent # ./server/openerp-gevent --addons addons/,web/addons & 8. use port 8072

1 Comment
Yashodhan Kulkarni
2014/04/13 19:22

@Ahmed Hassan, I have updated above provided commands in proper format as follows:

Pre Request for IM module:

``` 1. # sudo apt-get install python-gevent

2.# apt-get install psycogreen

3.# pip install psycogreen-1.0.tar.gz

  1. easy_install gevent

  2. easy_install greenlet

  3. apt-get install python-all-dev

7.# apt-get install libevent-dev

  1. easy_install gevent-psycopg2-0.0.3.tar.gz

  2. setup IM module

  3. And run your server by openerp-gevent

./server/openerp-gevent --addons addons/,web/addons &

  1. use port 8072 ```
2014/05/26 16:18

I was following all the instructions here and in other threads and nothing, but then I discovered that I need to:

1 - Activate the public user

2 - Set its password as 'public'

Then chat started working in the website and external websites :D

Alexis de Lattre
2013/10/26 21:31

By the way, on OpenERP trunk, since October 5 2013, there is a script "openerp-gevent" next to the usual script "openerp-server". When you start "./openerp-gevent", it will run openerp on port 8072 in gevent/longpolling mode.

Ask a Question
Keep Informed
7 follower(s)
About This Community

This platform 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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now