我用我的centos 6.5安装了Odoo 8 我在这个链接上使用结构:
当我完成安装后,我得到了 内部服务器错误 服务器遇到内部错误,无法完成您的请求。服务器过载或应用程序中存在错误。 并且日志包含:
File "/opt/odoo/openerp/sql_db.py", line 560, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
File "/home/odoo/odoo/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: fe_sendauth: no password supplied
2016-08-06 10:57:43,817 2637 ERROR ? openerp.addons.bus.bus: Bus.loop error, sleep and retry
Traceback (most recent call last):
File "/opt/odoo/addons/bus/bus.py", line 136, in run
self.loop()
File "/opt/odoo/addons/bus/bus.py", line 114, in loop
with openerp.sql_db.db_connect('postgres').cursor() as cr:
File "/opt/odoo/openerp/sql_db.py", line 609, in cursor
return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
File "/opt/odoo/openerp/sql_db.py", line 181, in __init__
self._cnx = pool.borrow(dsn)
File "/opt/odoo/openerp/sql_db.py", line 498, in _locked
return fun(self, *args, **kwargs)
File "/opt/odoo/openerp/sql_db.py", line 560, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
File "/home/odoo/odoo/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: fe_sendauth: no password supplied
2016-08-06 10:58:33,833 2637 ERROR ? openerp.sql_db: Connection to the database failed
Traceback (most recent call last):
File "/opt/odoo/openerp/sql_db.py", line 560, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
File "/home/odoo/odoo/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: fe_sendauth: no password supplied
2016-08-06 10:58:33,834 2637 ERROR ? openerp.addons.bus.bus: Bus.loop error, sleep and retry
Traceback (most recent call last):
File "/opt/odoo/addons/bus/bus.py", line 136, in run
self.loop()
File "/opt/odoo/addons/bus/bus.py", line 114, in loop
with openerp.sql_db.db_connect('postgres').cursor() as cr:
File "/opt/odoo/openerp/sql_db.py", line 609, in cursor
return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
File "/opt/odoo/openerp/sql_db.py", line 181, in __init__
self._cnx = pool.borrow(dsn)
File "/opt/odoo/openerp/sql_db.py", line 498, in _locked
return fun(self, *args, **kwargs)
File "/opt/odoo/openerp/sql_db.py", line 560, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
File "/home/odoo/odoo/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: fe_sendauth: no password supplied
答案 0 :(得分:0)
问题是我没有在/etc/odoo-server.conf