Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
514 views
in Technique[技术] by (71.8m points)

postgresql - pgAdmin4 server could not be contacted

I have a problem starting pgAdmin4. The error from the log file is

Error starting the app server: (<class 'OSError'>, OSError(10013, 'An attempt was made to access a socket in a way forbidden by its access permissions', None, 10013, None), <traceback object at 0x000001F1F3B3FD40>)

The pgadmin.startup file looks like

2021-01-07 20:03:38: Checking for system tray...
2021-01-07 20:03:38: Starting pgAdmin4 server...
2021-01-07 20:03:38: Creating server object, port:5432, key:a2ad895c-f155-4cfd-94d5-341b4f8ab4ae, logfile:C:/Users/cmaba/AppData/Local/pgadmin4.d41d8cd98f00b204e9800998ecf8427e.log
2021-01-07 20:03:38: Python Path: F:/postgre/pgAdmin 4/venv/Lib/site-packages;F:/postgre/pgAdmin 4/venv/DLLs;F:/postgre/pgAdmin 4/venv/Lib
2021-01-07 20:03:38: Python Home: F:/postgre/pgAdmin 4/venv
2021-01-07 20:03:38: Initializing Python...
2021-01-07 20:03:38: Python initialized.
2021-01-07 20:03:38: Adding new additional path elements
2021-01-07 20:03:38: Redirecting stderr...
2021-01-07 20:03:38: stderr redirected successfully.
2021-01-07 20:03:38: Initializing server...
2021-01-07 20:03:38: Webapp Path: F:/postgre/pgAdmin 4/web/pgAdmin4.py
2021-01-07 20:03:38: Server initialized, starting server thread...
2021-01-07 20:03:38: Open the application code and run it.
2021-01-07 20:03:38: Set the port number, key and force SERVER_MODE off
2021-01-07 20:03:38: PyRun_SimpleFile launching application server...
2021-01-07 20:03:39: Application Server URL: http://127.0.0.1:5432/?key=a2ad895c-f155-4cfd-94d5-341b4f8ab4ae
2021-01-07 20:03:39: The server should be up. Attempting to connect and get a response.
2021-01-07 20:05:09: Attempt to connect one more time in case of a long network timeout while looping

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...