Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

pgAdmin4 "Unauthorized" error

Writer Olivia Zamora

I am using kUbuntu 18.04(bionic) on my local machine and I installed postgresql11 and pgadmin4 step by step from this guide . And when i start pgAdmin4 firefox gives me this message:

Unauthorized

The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.

Can someone tell me what I did wrong or what else should I configure

2

2 Answers

What is happening is that when you start it and opens your browser, the ?key=xxx is lost. I copied mine from the startup log file in:

~/.pgAdmin4.startup.log

It should look something like this:

1
  1. In postgresql.conf add listen_addresses = '*' on the last line.

  2. In /var/lib/pgsql/data/pg_hba.conf add a new line:

    host all all YOUR_IP_ADDRESS/32 md5 
  3. Restart the service:

    sudo service postgresql restart
5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy