postgresql Odoo(OpenERP8)与Postgre的连接失败

rbpvctlc  于 2022-11-04  发布在  PostgreSQL
关注(0)|答案(1)|浏览(194)

我刚在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之间的数据连接?我是新的这些程序,并感谢详细的一步一步的帮助来解决:)
提前感谢!

zi8p0yeb

zi8p0yeb1#

您可以对已知的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指定数据库端口
示例:打开服务器-d数据库-r打开服务器-w 1234 --数据库端口=5432

相关问题