我刚刚安装了 pg4admin 的桌面版本,因为使用我之前的安装遇到了困难。我使用了以下 installing documentation把它拉下来。
但是,当我运行 pgadmin4 服务时,页面出现以下错误:
Unauthorized
The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.
此外,在终端上出现以下异常:
Starting pgAdmin 4. Please navigate to http://localhost:5050 in your browser.
2016-11-01 01:14:41,981: ERROR pgadmin: The desktop user pgadmin4@pgadmin.org was not found in the configuration database.
2016-11-01 01:14:42,004: ERROR pgadmin: The desktop user pgadmin4@pgadmin.org was not found in the configuration database.
2016-11-01 01:18:45,650: ERROR pgadmin: The desktop user pgadmin4@pgadmin.org was not found in the configuration database.
2016-11-01 01:18:45,664: ERROR pgadmin: The desktop user pgadmin4@pgadmin.org was not found in the configuration database.
我在安装过程中遗漏了什么吗?我该怎么做才能解决这个问题?
最佳答案
在我的例子中,问题是 Internet Explorer 增强的安全配置 (IE ESC)(顺便说一句,我的操作系统是 Windows Server 2012 R2)
转到 Server Manager
,从左侧 Pane 中选择 Local Server
。
右侧面板有“IE增强安全配置”,状态为“on
”。
单击那个On
,选择Off
(我为Administrators 和Users 都关闭了,我猜其中之一它们应该足够了,但我不确定是哪一个)。
单击OK
,然后单击顶部的刷新按钮(或关闭服务器管理器)。
刷新 pg admin4 页面(或者如果这不起作用,请右键单击 pg Admin4 系统托盘图标,然后选择“New PgAdmin4 window
”)。
关于python-2.7 - pg4admin 401 未授权错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40354551/