Odoo(OpenERP8)连接失败了Postgre

时间:2014-08-10 11:14:50

标签: postgresql connection odoo

我刚在Linux Mint中安装了Odoo。安装过程是正确的。我安装Postgre时丢失了数据库数据,当我启动openerp-server并加载localhost:8069时,网页显示: “服务器遇到内部错误,无法完成您的请求。服务器过载或应用程序出错。”

在Odoo日志中,错误是:

2014-08-10 11:02:55,941 4924 ERROR ? openerp.addons.bus.bus: Bus.loop error, sleep and retry
Traceback (most recent call last):
  File "/home/xxxx/odoo/openerp/addons/bus/bus.py", line 136, in run
    self.loop()
  File "/home/xxxx/odoo/openerp/addons/bus/bus.py", line 114, in loop
    with openerp.sql_db.db_connect('postgres').cursor() as cr:
  File "/home/xxxx/odoo/openerp/sql_db.py", line 565, in cursor
    return Cursor(self.__pool, self.dbname, serialized=serialized)
  File "/home/xxxx/odoo/openerp/sql_db.py", line 176, in __init__
    self._cnx = pool.borrow(dsn(dbname))
  File "/home/xxxx/odoo/openerp/sql_db.py", line 458, in _locked
    return fun(self, *args, **kwargs)
  File "/home/xxxx/odoo/openerp/sql_db.py", line 521, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
  File "/usr/local/lib/python2.7/dist-packages/psycopg2-2.5.3-py2.7-linux-i686.egg/psycopg2/__init__.py", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: fe_sendauth: no password supplied

如何更正并正确配置Odoo和Postgre之间的数据连接? 我是这些程序的新手,并感谢详细的一步一步帮助解决:)

提前致谢!

1 个答案:

答案 0 :(得分:-1)

您可以对已知的db参数执行--help命令。

数据库相关选项:     -d DB_NAME, - database = DB_NAME                         指定数据库名称     -r DB_USER, - db_user = DB_USER                         指定数据库用户名     -w DB_PASSWORD, - db_password = DB_PASSWORD                         指定数据库密码     --db_port = DB_PORT指定数据库端口

例如: openerp-server -d DB -r openerp -w 1234 --db_port = 5432