Reputation: 221
I have installed version 4-1.5, but when opening it, it always shows this error "The application server could not be contacted."
Upvotes: 19
Views: 31117
Reputation: 7
Just change portNo from 5050 to 5432, save file and restart pgAdmin4
Upvotes: -1
Reputation: 11
On my system Safari is the problem as it was default browser.
To fix, make Chrome your default browser and try relaunching pgadmin4
OR
Manually fix by $ cat ~/.pgAdmin4.5704814747986328352.addr http://127.0.0.1:62631/?key=0ec25e6a-dfe2-483e-9814-b315ea87c3cf
Paste what you get in Chrome
Upvotes: 0
Reputation: 494
I removed the local directory hidden and resolved:
$ cd ~
$ rm -r .pgadmin/
Note: macOS Sierra (10.12.6) and pgAdmin 4-1.6. Also you are going to loose configuration data like database list tree, et al.
The Databases will remain intact since you are modifying/deleting PgAdmin related data not any of Postgresql itself.
Upvotes: 46
Reputation: 704
I had same error, but in my case I use wrong port number for the database
Upvotes: 0
Reputation: 1081
I had the same issue, I fixed it by stopping the service in Postgres app, then start pgAdmin, and then start the Postgres service. I was able to connect it after that. Hope this help.
Upvotes: 6