2

我是openerp的新手。我能够登录。我试过gunicorp,现在我无法登录。

即使我不使用 gunicorp 我仍然会收到以下错误:

请建议可能出了什么问题。

Client Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 353, in   
get_list
dbs = proxy.list()
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 117,  
in proxy
result = self.connector.send(self.service_name, method, *args)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 611, in send
raise fault


Server Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 592, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 117, in dispatch
return fn(*params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 310, in exp_list
cr = db.cursor()
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 465, in cursor
return Cursor(self._pool, self.dbname, serialized=serialized)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 173, in __init__
self._cnx = pool.borrow(dsn(dbname))
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 366, in _locked
return fun(self, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 421, 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 "vishal" does not exist

谢谢你,维沙尔

4

1 回答 1

5

基本上看起来你应该仔细检查你的数据库配置。

数据库级错误提到您用于连接 PostgreSQL 的“vishal”用户不存在。也许您在测试 gunicorn 部署时更改了 db_user 配置,或者您尝试以“vishal”系统用户身份运行 OpenERP,而您之前正在使用另一个系统用户。

于 2012-05-16T08:42:26.430 回答