我试图在Windows11上运行PGadmin 4。Postgres本身在命令行上正常工作。但是在启动PGadmin 4时,我会得到以下错误。
2022-01-11 22:04:00,717: WARNING werkzeug: WebSocket transport not available. Install simple-websocket for improved performance.
* Serving Flask app "pgadmin" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
Traceback (most recent call last):
File "D:\PostgreSQL\14\pgAdmin 4\web\pgAdmin4.py", line 230, in <module>
main()
File "D:\PostgreSQL\14\pgAdmin 4\web\pgAdmin4.py", line 213, in main
socketio.run(
File "D:\PostgreSQL\14\pgAdmin 4\python\lib\site-packages\flask_socketio\__init__.py", line 596, in run
app.run(host=host, port=port, threaded=True,
File "D:\PostgreSQL\14\pgAdmin 4\python\lib\site-packages\flask\app.py", line 990, in run
run_simple(host, port, self, **options)
File "D:\PostgreSQL\14\pgAdmin 4\python\lib\site-packages\werkzeug\serving.py", line 1052, in run_simple
inner()
File "D:\PostgreSQL\14\pgAdmin 4\python\lib\site-packages\werkzeug\serving.py", line 996, in inner
srv = make_server(
File "D:\PostgreSQL\14\pgAdmin 4\python\lib\site-packages\werkzeug\serving.py", line 847, in make_server
return ThreadedWSGIServer(
File "D:\PostgreSQL\14\pgAdmin 4\python\lib\site-packages\werkzeug\serving.py", line 740, in __init__
HTTPServer.__init__(self, server_address, handler)
File "socketserver.py", line 452, in __init__
File "http\server.py", line 140, in server_bind
File "socket.py", line 756, in getfqdn
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 i`enter code here`n position 0: invalid start byte
发布于 2022-02-18 15:23:59
是的,pgadmin与windows 11兼容。您的服务器在后台运行吗?从您提供的错误消息中,我认为pgadmin无法找到任何需要处理的服务器请求,或者需要将Postgress的端口号设置为默认值。
https://stackoverflow.com/questions/70670588
复制相似问题