Ubuntu – PgAdmin4 “the application server could not be contacted” Ubuntu 19.04

19.04pgadmin

I updated my OS to Ubuntu 19.04. I had been using pgadmin4 on Ubuntu 18.10 and it worked without problems, but now that I have updated I get this error:

the application server could not be contacted

I tried uninstalling pgadmin4 and reinstalling but without improvement.

I also reactivated the postgresql repository because when updating to Ubuntu 19.04 I deactivated some repositories.

Best Answer

Try following the advice in this article: How to Install and Configure pgAdmin4 on Ubuntu 18.04 & 16.04

Remove the previous installation

sudo apt-get remove pgadmin4

and reinstall

sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install pgadmin4 pgadmin4-apache2

for me it worked.

Related Question