2
我是openerp的新手。我能夠登錄。我試着gunicorp,現在我無法登錄OpenErp服務器錯誤
即使我不使用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
謝謝你, 維沙爾
只需創建一個新角色即可解決問題。它在openerp文檔(安裝手冊)中很清楚地解釋了它。只需在控制檯中輸入以下命令:sudo su - postgres 代碼: createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp 輸入新角色的密碼:* ******* 再次輸入:******** –