0

当安装在 EnterpriseDB 的 10.16 Windows x86-64 (postgresql-10.16-2-windows-x64) 安装程序中时,pgAdmin4 无法在 Windows 上启动(在 Win 10 和 Server 2016 上测试,均为 64 位),并出现错误:

Fatal Error: The pgAdmin 4 server could not be contacted.

这似乎是由这个错误引起的

[...]
File "C:/Program Files/PostgreSQL/10/pgAdmin 4/venv/Lib/site-packages\flask_sqlalchemy\__init__.py", line 908, in apply_driver_hacks
    sa_url.database = os.path.join(app.root_path, sa_url.database)
AttributeError: can't set attribute

在日志文件 %LOCALAPPDATA%\pgadmin4.d41d8cd98f00b204e9800998ecf8427e.log 中。这似乎与另一个问题有关

我删除了 %APPDATA%\pgAdmin 文件夹,但结果是一样的。我在四台 Windows 10 机器和一台 Windows Server 2016 上重复了此操作。

当使用 Windows 的 10.16 的32 位软件包(postgresql-10.16-2-windows)时,pgAdmin4启动没有任何问题!所以这个问题只有在使用 x86-64 包时才会出现。

这确实是 EnterpriseDB 发布的 PostgreSQL 10.16 x86-64 Windows 软件包的问题吗?这是一个已知的问题?

有简单的解决方法吗?当然,我可以安装单独(更新)版本的 pgAdmin,而不是与 EnterpriseDB 安装程序捆绑在一起的版本,但这会使我的部署复杂化。

谢谢你的帮助!

4

0 回答 0