我在Windows中安装odoo 10时遇到了这个问题。在浏览器中运行odoo 10时会发生此错误。我看过日志文件并且出错了
Traceback (most recent call last):
File "werkzeug\serving.py", line 177, in run_wsgi
File "werkzeug\serving.py", line 165, in execute
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\service\server.py", line 249, in app
return self.app(e, s)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\service\wsgi_server.py", line 186, in application
return application_unproxied(environ, start_response)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\service\wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 1308, in __call__
return self.dispatch(environ, start_response)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 1282, in __call__
return self.app(environ, start_wrapped)
File "werkzeug\wsgi.py", line 579, in __call__
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 1446, in dispatch
self.setup_db(httprequest)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 1368, in setup_db
httprequest.session.db = db_monodb(httprequest)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 1530, in db_monodb
dbs = db_list(True, httprequest)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 1498, in db_list
dbs = odoo.service.db.list_dbs(force)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\service\db.py", line 333, in list_dbs
with closing(db.cursor()) as cr:
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\sql_db.py", line 635, in cursor
return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\sql_db.py", line 177, in __init__
self._cnx = pool.borrow(dsn)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\sql_db.py", line 518, in _locked
return fun(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\sql_db.py", line 586, in borrow
**connection_info)
File "psycopg2\__init__.py", line 164, in connect
OperationalError: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
有人可以为此提供帮助吗?
答案 0 :(得分:0)
您获得的错误似乎来自Postgres当前未运行,而不是您假定的身份验证错误。 PSQL客户端或您正在使用的任何PG客户端都试图在默认端口上建立连接,但没有任何连接。
如果Postgres当前没有运行,请尝试查找它(通过CTRL-Alt-Delete)。如果它正在运行,请尝试终止它并再次启动它。希望能解决问题...否则您的端口5432可能会因某种原因被阻止。
如果全部失败,我仍然怀疑括号可能导致此错误,因为它不是身份验证错误。尝试使用全新安装重新安装Postgres。
或者您可以使用netstat -an
cmd
在Windows中打开所有端口
答案 1 :(得分:0)
我要回答这个问题是因为我最近在Windows 10中使用odoo 11遇到了“内部服务器错误” 的问题。
这是因为odoo服务或postgres服务未运行。现在我们需要做的是:
希望它对以后会遇到此问题的人有所帮助。
答案 2 :(得分:0)
要解决此问题,必须首先安装pgAdmin并创建在flectra安装期间指定的用户。然后,您必须授予它创建的用户的所有特权。使用标签分配访问权限并设置密码。
您可以在以下视频中找到更多详细信息: