python-2.7 - pg4admin 401 未授权错误

标签 python-2.7 ubuntu pip pgadmin-4

我刚刚安装了 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(我为AdministratorsUsers 都关闭了,我猜其中之一它们应该足够了,但我不确定是哪一个)。
单击OK,然后单击顶部的刷新按钮(或关闭服务器管理器)。 刷新 pg admin4 页面(或者如果这不起作用,请右键单击 pg Admin4 系统托盘图标,然后选择“New PgAdmin4 window”)。

关于python-2.7 - pg4admin 401 未授权错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40354551/

相关文章:

php create_directory 权限被拒绝 : when attempting shell_exec script

python - 安装 pyspider - "python setup.py egg_info"失败,错误代码为 1

matlab - python中使用相关系数的两幅图像之间的百分比差异

python - 如何将 csv 文件的第二列转换为 float 列表?

php - 使用 Apache 虚拟主机在 ubuntu 13.10 上设置 zf2

python - 有没有办法让 pip 升级为新的 venv?

django - 如何安装/使用 django-inlinecss

python - 通过子列表的给定元素从列表中分隔一组子列表

python - 使用装饰器在 try/except 中包装类方法

ubuntu - 刚升级到 Ubuntu 16.04 但找不到 localhost/phpmyadmin