Search code examples
linuxdatabasepgadmin-4

PgAdmin4 starts empty


enter image description hereI installed PostgreSQL and PgAdmin4 on an Ubuntu 19.04 virtualbox guest (following this guide)

Now I have the problem that PgAdmin4 does not show anything (after login).

I have an empty Browser (Server) tree, a fully white (blank) dashboard... In the PgAdmin4 menu I only have the Object tab but if I click it it opens a tiny empty box (as shown in the screenshot above).

In Firefox it was always like that. A couple of times it worked in Chrome (could add server, create databases...) but then, suddenly, even in Chrome it is empty.

Does anyone have a clue what could be wrong?


Solution

  • I believe some of the packages are missing during installation. here are commands to install properly.

    sudo apt-get install wget ca-certificates
    

    add the GPG key for the repository.

     sudo wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    

    add the repository:

     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 install pgadmin4 pgadmin4-apache2
    

    During installation process you will be asked to enter an email and set up password. Once finished

    navigate to here

    localhost/pgadmin4