pg4admin 401未经授权的错误

问题描述 投票:8回答:8

我刚刚使用我之前的安装运行它后,我刚刚安装了pgadmin 4的桌面版。我用下面的qazxsw poi来解决这个问题。

但是,当我运行pgadmin4服务时,该页面给出了以下错误:

擅自

服务器无法验证您是否有权访问所请求的URL。您提供了错误的凭据(例如密码错误),或者您的浏览器不了解如何提供所需的凭据。

此外,在终端上我得到以下异常:

我在安装过程中遗漏了什么吗?我该怎么做才能解决这个问题?

python-2.7 ubuntu pip pgadmin-4
8个回答
9
投票

删除“pgadmin4.db”文件并再次启动pgAdmin4。

Linux的:

〜/ .pgadmin / pgadmin4.db

视窗:

%APPDATA%\ pgAdmin的\ pgadmin4.db

注意:您将丢失先前安装中保存的所有服务器列表。


5
投票

以下是为我工作(使用SolydK):

  • 右键单击“托盘图标”
  • 选择“配置”
  • 设置“浏览器命令”(例如“/ usr / bin / firefox”%URL%)

5
投票

在我的情况下,问题是Internet Explorer增强安全配置(IE ESC)(顺便说一下我的操作系统是Windows Server 2012 R2)

转到Starting pgAdmin 4. Please navigate to http://localhost:5050 in your browser. 2016-11-01 01:14:41,981: ERROR pgadmin: The desktop user [email protected] was not found in the configuration database. 2016-11-01 01:14:42,004: ERROR pgadmin: The desktop user [email protected] was not found in the configuration database. 2016-11-01 01:18:45,650: ERROR pgadmin: The desktop user [email protected] was not found in the configuration database. 2016-11-01 01:18:45,664: ERROR pgadmin: The desktop user [email protected] was not found in the configuration database.,从左侧窗格中选择Server Manager。在右侧窗格中,有“IE增强安全配置”,状态为“Local Server”。 点击那个on,选择On(我关闭了管理员和用户,我猜其中一个应该足够但我不确定哪一个)。 单击Off,然后单击顶部的刷新按钮(或关闭服务器管理器)。刷新pg admin4页面(如果这不起作用,右键单击pg Admin4系统托盘图标,然后选择“OK”)。


4
投票

在linux ubuntu 16.04中将文件〜/ .pgAdmin4.14570597673959349582.addr中的地址复制到浏览器窗口中。看起来它包含密钥。


1
投票

不是答案,而是一种解决方法

我解决了它安装New PgAdmin4 window包并访问pgadmin4-apache2 URL


0
投票

在我的情况下,只需添加/设置环境变量http://localhost/pgAdmin4它运作良好。


-1
投票

对于Windows,另一种选择。托盘图标,右键单击并选择“new pgAdmin window ...”,在我的例子中使用Yandex.browser


-1
投票

这很简单,只需从C:\ Program Files(x86)\ pgAdmin 4和C:\ Users \ acer \ AppData \ Roaming \ pgAdmin删除文件pgadmin,删除所有文件,然后重新安装

© www.soinside.com 2019 - 2024. All rights reserved.