-2

** 错误 ?werkzeug:请求错误:回溯(最近一次调用最后一次):文件“/home/eslammofreh/.local/lib/python3.5/site-packages/werkzeug/serving.py”,第 270 行,在 run_wsgi 执行(self. server.app) 文件“/home/eslammofreh/.local/lib/python3.5/site-packages/werkzeug/serving.py”,第 258 行,在执行 application_iter = app(environ, start_response) 文件“/home/workplace /odoo/odoo/service/server.py”,第 350 行,应用程序返回 self.app(e, s) 文件“/home/workplace/odoo/odoo/service/wsgi_server.py”,第 128 行,应用程序返回application_unproxied(environ, start_response) 文件“/home/workplace/odoo/odoo/service/wsgi_server.py”,第 117 行,在 application_unproxied 结果 = odoo.http.root(environ,call return self.dispatch(environ, start_response) File "/home/workplace/odoo/odoo/http.py", line 1291, in call return self.app(environ, start_wrapped) File "/home/eslammofreh/.local/ lib/python3.5/site-packages/werkzeug/wsgi.py”,第 766 行,调用中 return self.app(environ, start_response) File "/home/workplace/odoo/odoo/http.py", line 1451, in dispatch self.setup_db(httprequest) File "/home/workplace/odoo/odoo/http.py ",第 1374 行,在 setup_db httprequest.session.db = db_monodb(httprequest) 文件 "/home/workplace/odoo/odoo/http.py",第 1535 行,在 db_monodb dbs = db_list(True, httprequest) 文件 "/home /workplace/odoo/odoo/http.py”,第 1502 行,在 db_list dbs = odoo.service.db.list_dbs(force) 文件“/home/workplace/odoo/odoo/service/db.py”,第 375 行,在 list_dbs 中,关闭(db.cursor()) 作为 cr:文件“/home/workplace/odoo/odoo/sql_db.py”,第 657 行,在游标中返回 Cursor(self.pool, self.dbname, self.dsn, serialized=serialized) File "/home/workplace/odoo/odoo/sql_db.py", line 171, in __init self._cnx = pool.borrow(dsn) File "/home/工作场所/odoo/odoo/sql_db.py”,第 540 行,在 _locked return fun(self, *args,kwargs)文件“/home/workplace/odoo/odoo/sql_db.py”,第 608 行,借用 **connection_info)文件“/home/eslammofreh/.local/lib/python3.5/site-packages/psycopg2/__init__ .py”,第 130 行,在 connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: FATAL: 角色“eslammofreh”不存在 - - - 2019-03-09 18:18:59,091 1892信息?odoo.sql_db:与数据库的连接失败 2019-03-09 18:18:59,093 1892 信息?werkzeug:127.0.0.1 - - [09/Mar/2019 18:18:59] “GET /favicon.ico HTTP/1.1”500 - 0 0.000 0.005 2019-03-09 18:18:59,098 1892 错误?werkzeug:请求时出错:回溯(最近一次调用最后一次):文件“/home/eslammofreh/.local/lib/python3.5/site-packages/werkzeug/serving.py”,第 270 行,

4

1 回答 1

0

你测试了postgresql的版本和服务的状态

该错误表明角色“eslammofreh”不存在,即找不到

https://www.youtube.com/watch?v=TUaN4rEpJDE

于 2019-03-10T11:54:47.837 回答