gpt4 book ai didi

python - OpenERP 安装问题

转载 作者:行者123 更新时间:2023-11-28 22:00:31 25 4
gpt4 key购买 nike

我正在我的本地服务器上安装 openerp,我已经安装了它和它的依赖项,但是在我运行服务器 'openerp-server' 并使用 0.0.0.0 访问它时完成它的安装:8069/。我收到以下错误

OpenERP Server Error

Client Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/addons/web/controllers/main.py", line 709, in get_list
return db_list(req)
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/addons/web/controllers/main.py", line 88, in db_list
dbs = proxy.list()
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/addons/web/session.py", line 31, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/addons/web/session.py", line 104, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


Server Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/addons/web/session.py", line 90, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/netsvc.py", line 295, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/service/web_services.py", line 122, in dispatch
return fn(*params)
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/service/web_services.py", line 351, in exp_list
cr = db.cursor()
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/sql_db.py", line 477, in cursor
return Cursor(self._pool, self.dbname, serialized=serialized)
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/sql_db.py", line 183, in __init__
self._cnx = pool.borrow(dsn(dbname))
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/sql_db.py", line 378, in _locked
return fun(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130211_002141-py2.7.egg/openerp/sql_db.py", line 433, 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)
OperationalError: FATAL: role "ghrix" does not exist

我还没有发现这个错误。还有一点,我没有编辑OpenERP 服务器配置文件。如果我必须编辑此文件,那么这些更改是什么。

谢谢。

最佳答案

此错误表明 OpenERP 正在尝试使用不存在的 "ghrix"用户连接到 PostgreSQL 数据库服务器。这可能是您在其下启动服务器的用户。如果您为 OpenERP 创建了一个特殊的数据库用户,您需要在命令行上使用 --db_user=DB_USER 指定它(在这种情况下,您可能还需要 --db_host=localhost --db-password=YOUR_PASSWORD)。
如果您还没有创建任何数据库用户,最简单的解决方案可能是创建一个名为 ghrix 的用户,例如:

$ sudo su - postgres
$ createuser -s ghrix # -s to make a super-user that can create DBs

注意:使用./openerp-server --help 查看OpenERP 服务器所有可能的启动参数。您还可以将命令行选项放在配置文件中:只需执行

$ ./openerp-server -s

然后编辑在 $HOME/.openerp_serverrc 中创建的示例配置文件

关于python - OpenERP 安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14808935/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com