I installed PostgreSQL on Windows 10 and the server appears to be in Task Manager. However, I get this error when opening pgAdmin4:
Failed to connect to the pgAdmin application server. Click here to try again.
Any ideas for what the problem is?
I installed PostgreSQL on Windows 10 and the server appears to be in Task Manager. However, I get this error when opening pgAdmin4:
Failed to connect to the pgAdmin application server. Click here to try again.
Any ideas for what the problem is?
Did you try running the pgAdmin application as an administrator ? I was having the same issue, but ran the application as an administrator and was able to connect.
I installed pgAdmin 4 via the EnterpriseDB PostgreSQL installer as well as the stand-alone Windows installer and had the same problem both times. Then I came across this: https://www.pgadmin.org/docs4/dev/desktop_deployment.html
It seems the Windows installer configures pgAdmin for server mode, and we need to switch it to Desktop mode. Why the installer does not have an option for this I do not know.
You should be able to getting it working by doing the following:
SERVER_MODE = False
python setup.py
from any command promptHere are the python packages I think I installed to get setup.py to work
pip install flask
pip install flask_security
pip install flask_babel
pip install django-htmlmin
pip install python-dateutil
pip install flask_sqlalchemy
I had the same problem with pgAdmin 4 1.6 on Windows 7. The solution was simply to delete %appdata%\pgAdmin which was created by an earlier version. On systems other than Windows, there probably is a pgAdmin directory in your user directory. Of course, all session settings etc. are gone after deleting this.
I had the same problem with pgadmin 3.0 on windows server 2016. What I did is not actually a solution but solved my problem at, least. I switch to an older version 2.1 that worked like a charm.