pgAdmin4 "Unauthorized" error
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
22 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.logIt should look something like this:
1In postgresql.conf add
listen_addresses = '*'on the last line.In
/var/lib/pgsql/data/pg_hba.confadd a new line:host all all YOUR_IP_ADDRESS/32 md5Restart the service:
sudo service postgresql restart