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

Getting OperationalError: asynchronous connection failed error can any one help me please?

By
Ahad Pashaeeian
on 10/23/15, 2:01 PM 611 views

I am getting below error while starting odoo-8. Can any one help me please?

2015-10-22 10:18:51,144 1545 INFO ? openerp: OpenERP version 8.0

2015-10-22 10:18:51,144 1545 INFO ? openerp: addons paths: ['/opt/Store/addons/8.0', u'/opt/odoo/OERP8/openerp/addons', u'/o$

2015-10-22 10:18:51,144 1545 INFO ? openerp: database hostname: localhost

2015-10-22 10:18:51,144 1545 INFO ? openerp: database port: 5432

2015-10-22 10:18:51,144 1545 INFO ? openerp: database user: odoo

2015-10-22 10:18:51,239 1545 INFO ? openerp.service.server: Evented Service (longpolling) running on 0.0.0.0:7069

2015-10-22 10:18:53,159 1545 INFO ? openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmlt$

2015-10-22 10:18:53,159 1545 INFO ? openerp.addons.bus.bus: Bus.loop listen imbus on db postgres

2015-10-22 10:18:53,308 1545 INFO ? openerp.http: HTTP Configuring static files

2015-10-22 10:21:00,474 1545 ERROR ? openerp.addons.bus.bus: Bus.loop error, sleep and retry

Traceback (most recent call last):

File "/opt/odoo/OERP8/addons/bus/bus.py", line 136, in run

self.loop()

File "/opt/odoo/OERP8/addons/bus/bus.py", line 114, in loop

with openerp.sql_db.db_connect('postgres').cursor() as cr:

File "/opt/odoo/OERP8/openerp/sql_db.py", line 575, in cursor

return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)

File "/opt/odoo/OERP8/openerp/sql_db.py", line 181, in __init__

self._cnx = pool.borrow(dsn)

File "/opt/odoo/OERP8/openerp/sql_db.py", line 464, in _locked

return fun(self, *args, **kwargs)

File "/opt/odoo/OERP8/openerp/sql_db.py", line 526, in borrow

result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)

File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect

connection_factory=connection_factory, async=async)

File "build/bdist.linux-x86_64/egg/psycogreen/gevent.py", line 29, in gevent_wait_callback

state = conn.poll()

OperationalError: asynchronous connection failed

2

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 10/24/15, 9:33 AM

Hi,

The error is probably in your openerp-server.conf (for example database owner problem)

or ... in your python modules compatibility - psycopg2 module -  in my system  psycopg2/__init__.py has only 169 lines, but in your error is reported in ...psycopg2/__init__.py", line 179

You are a genius :) your comment on DB owner solved a 6 hours long problem.

OdooTec, Hesham ELMAHDY
on 11/10/15, 4:08 PM

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: 10/23/15, 2:01 PM
Seen: 611 times
Last updated: 1/2/16, 1:27 AM