Firefox – pgAdmin4 “Unauthorized” error

firefoxpgadminpostgresql

I am using kUbuntu 18.04(bionic) on my local machine and I installed postgresql11 and pgadmin4 step by step from this guide https://wiki.postgresql.org/wiki/Apt. 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

Best Answer

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:

http://127.0.0.1:38485/?key=f687289c-62ca-4d64-a425-1b45ccee83d5
Related Question