Pgadmin 未加载 [英] Pgadmin is not loading

查看:79
本文介绍了Pgadmin 未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在我的笔记本电脑上安装了 pgadmin4,当我启动应用程序时,它只是在加载时卡住了.我查看了日志,这就是我所看到的:

日志

2020-11-14 00:22:46:正在检查系统托盘...2020-11-14 00:22:46:启动 pgAdmin4 服务器...2020-11-14 00:22:46:创建服务器对象,端口:64222,密钥:2a079549-63da-44d2-8931-efa9de3a847f,日志文件:C:/Users/yonis/AppData/Local/pgadmin49.d4109ec8c04.d4108ec8c802020-11-14 00:22:46:Python 路径:C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/Lib/site-packages;C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/DLL;C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/Lib2020-11-14 00:22:46:Python 主页:C:/Program Files/PostgreSQL/13/pgAdmin 4/venv2020-11-14 00:22:46:初始化 Python...2020-11-14 00:22:46:Python 初始化.2020-11-14 00:22:46:添加新的附加路径元素2020-11-14 00:22:46:重定向标准错误...2020-11-14 00:22:46:stderr 重定向成功.2020-11-14 00:22:46:正在初始化服务器...2020-11-14 00:22:46:Web 应用程序路径:C:/Program Files/PostgreSQL/13/pgAdmin 4/web/pgAdmin4.py2020-11-14 00:22:46:服务器初始化,启动服务器线程...2020-11-14 00:22:46:打开应用程序代码并运行它.2020-11-14 00:22:46:设置端口号、密钥并强制关闭 SERVER_MODE2020-11-14 00:22:46:PyRun_SimpleFile 启动应用程序服务器...2020-11-14 00:22:47:应用服务器 URL:http://127.0.0.1:64222/?key=2a079549-63da-44d2-8931-efa9de3a847f2020-11-14 00:22:47:服务器应该已启动.正在尝试连接并获得响应.2020-11-14 00:22:53:如果循环时网络超时时间过长,请尝试再连接一次2020-11-14 00:22:53:一切正常,成功启动 pgAdmin4.

解决方案

请看以下链接:

我的注册表值仍然是text/plain"和我的 PgAdmin 工作如下所示:

因此,如果您仍然遇到此问题,请尝试升级到 PgAdmin4 5.0.

i have recently installed pgadmin4 onto my laptop and when I launch the application, it just gets stuck on the loading. I had a look at the logs and this is what I see:

The logs

2020-11-14 00:22:46: Checking for system tray...
2020-11-14 00:22:46: Starting pgAdmin4 server...
2020-11-14 00:22:46: Creating server object, port:64222, key:2a079549-63da-44d2-8931-efa9de3a847f, logfile:C:/Users/yonis/AppData/Local/pgadmin4.d41d8cd98f00b204e9800998ecf8427e.log
2020-11-14 00:22:46: Python Path: C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/Lib/site-packages;C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/DLLs;C:/Program Files/PostgreSQL/13/pgAdmin 4/venv/Lib
2020-11-14 00:22:46: Python Home: C:/Program Files/PostgreSQL/13/pgAdmin 4/venv
2020-11-14 00:22:46: Initializing Python...
2020-11-14 00:22:46: Python initialized.
2020-11-14 00:22:46: Adding new additional path elements
2020-11-14 00:22:46: Redirecting stderr...
2020-11-14 00:22:46: stderr redirected successfully.
2020-11-14 00:22:46: Initializing server...
2020-11-14 00:22:46: Webapp Path: C:/Program Files/PostgreSQL/13/pgAdmin 4/web/pgAdmin4.py
2020-11-14 00:22:46: Server initialized, starting server thread...
2020-11-14 00:22:46: Open the application code and run it.
2020-11-14 00:22:46: Set the port number, key and force SERVER_MODE off
2020-11-14 00:22:46: PyRun_SimpleFile launching application server...
2020-11-14 00:22:47: Application Server URL: http://127.0.0.1:64222/?key=2a079549-63da-44d2-8931-efa9de3a847f
2020-11-14 00:22:47: The server should be up. Attempting to connect and get a response.
2020-11-14 00:22:53: Attempt to connect one more time in case of a long network timeout while looping
2020-11-14 00:22:53: Everything works fine, successfully started pgAdmin4.

解决方案

Have a look at following link: https://www.postgresql-archive.org/pg-Admin-4-v4-28-Errors-on-launch-td6162407.html I think this is the fix you need

Hi All We were not able to reproduce this issue on any of our machines during pre-release testing for v4.28. Then after some R&D, we are able to reproduce this issue. Cause of the problem: if value of "HKEY_CLASSES_ROOT.js\Content Type" is set to "text/plain" then issue is reproducible. In any javascript file, the content type should be "text/javascript" in the response header but in the above registry setting it is "text/plain", so the browser won't allow it. Solution: Open the registry and changed the value of "HKEY_CLASSES_ROOT.js\Content Type" to "text/javascript".

Update:

PgAdmin4 5.0 is out now, you can check it out here. It seems this problem is no longer an issue. take a look at my screen shot below:

My registry value is still "text/plain" and my PgAdmin works as below shows:

So, if you still have this problem, try upgrade to PgAdmin4 5.0.

这篇关于Pgadmin 未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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