A couple of days before I have installed on my PC with Windows 7 Professional new version of PgAdmin (version 4). It worked fine, but today it loads slowly and then information window appears with text: "PgAdmin fatal error. The appllication server could not be contacted.". I restarted windows, but it doesn't help. Is there any solution of this problem? Thanks.
-
1Are you sure that server is on local computer? – Lukasz Szozda Oct 08 '17 at 17:15
-
I had changed nothing. – Dionisius1976 Oct 08 '17 at 17:16
-
1The same thing happened to me using pgAdmin 4 (2.7.13). I had to reinstall it before it worked again. – Steve Oct 09 '17 at 14:57
-
1Thanks. I reinstall it too and now it (still) works. – Dionisius1976 Oct 09 '17 at 20:29
-
1Hurrah! Solvation is to odify config_local.py file in web folder, adding SERVER_MODE = False. – Dionisius1976 Oct 10 '17 at 20:49
-
https://stackoverflow.com/questions/40083391/postgresql-cant-connect-application-server-through-pgadmin4 For more info. – Dionisius1976 Oct 11 '17 at 19:42
8 Answers
I had the same issue. Try right clicking the PgAdmin icon and clicking "Run as administrator". Worked for me.

- 121
- 4
worked for me if I run PgAdmin as administrator.
Right click on the .exe file and run as administrator. It will work.

- 20,585
- 22
- 95
- 108

- 61
- 1
- 2
-
3What does this add to the answer from last year saying the same thing? – Stephen Kennedy Mar 08 '18 at 14:43
I tried all options mentioned in link Postgresql can't connect application server through PGAdmin4 .
But none of the options worked, then launching C:\Program Files (x86)\pgAdmin 4\v2\runtime\pgAdmin4.exe
from command prompt worked fine.

- 20,585
- 22
- 95
- 108

- 31
- 1
i got this error using PgAdmin 4 (v4.3) and here is what fixed it for me
- right lick on my server and
disconnect server
- reconnect by clicking expand arrow on the server.
seems my connection was stale

- 23,855
- 37
- 130
- 196
-
This also helped fix "Software caused connection abort" [from your other (deleted) answer to the question](https://stackoverflow.com/questions/43802310/postgresql-could-not-receive-data-from-server-software-caused-connection-abort) – Nate Anderson Aug 28 '20 at 03:41
- in C:\Users(your username)\AppData\Roaming delete folder pgAdmin (AppData - is hidden folder)
- run pgadmin with administrator.
Worked Fine for me Previously it was showing Fatal error

- 73
- 6

- 56
- 6
I had to reinstall it, as Steve suggested in comments. Then it started working again.
It's probably best to start with Ray Jowa's solution -- try right clicking the PgAdmin icon and clicking "Run as administrator".

- 745
- 1
- 6
- 15
This was odd, my PATH variable which had the python interpreter in it was somehow a factor, I do not completely understand though, right after I removed it everything worked, I will look further into it but so far I think that if you have python interpreter it might be the one causing the issue.

- 91
- 5
rename your C:\Users<your username>\AppData\Roaming\pgAdmin to .back and restart pgAdmin v4.6x

- 11
- 1