pg4admin 401 未经授权的错误 [英] pg4admin 401 Unauthorized Error

查看:117
本文介绍了pg4admin 401 未经授权的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用我之前的安装运行时遇到困难后,我刚刚安装了 pg4admin 的桌面版本.我使用了以下 安装文档来解决这个问题.

I just installed the desktop version of pg4admin after having difficulty running it using my prior install. I used the following installing documentation to pull this off.

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

However, when I run the pgadmin4 service, the page gives my the following error:

未经授权

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

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.

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

Also, on the terminal I'm getting the following exception:

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.

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

Did I miss anything in the install process? What can I do to fix this issue?

推荐答案

就我而言,问题是 Internet Explorer 增强安全配置 (IE ESC)(顺便说一句,我的操作系统是 Windows Server 2012 R2)

In my case the problem is Internet Explorer Enhanced Security Configuration (IE ESC) (btw my OS is Windows Server 2012 R2)

转到Server Manager,从左侧窗格中选择Local Server.在右侧窗格中,有IE 增强安全配置",状态为on".
单击那个 On,选择 Off(我对 AdministratorsUsers 都关闭了,我猜是其中之一它们应该足够了,但我不确定是哪个).
点击OK,然后点击顶部的刷新按钮(或关闭服务器管理器).刷新 pg admin4 页面(或者如果这不起作用,请右键单击 pg Admin4 系统托盘图标,然后选择New PgAdmin4 window").

Go to Server Manager, choose Local Server from the left pane. On the right pane, there is "IE Enhanced Security Configuration", the status is "on".
Click on that On, choose Off (I turned off for both the Administrators and Users, I guess one of them should be enough but I was not sure which one).
Click OK, then click the refresh button on top (or close the server manager). Refresh the pg admin4 page (or if that does not work, right click on pg Admin4 system tray icon, then choose "New PgAdmin4 window").

这篇关于pg4admin 401 未经授权的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆