pgAdmin 4 fails to open UI on Azure Virtual Desktop (localhost authorization issue) - Mailing list pgadmin-support

From ABHI PATEL (CRGL-THIRDPARTY.COM)
Subject pgAdmin 4 fails to open UI on Azure Virtual Desktop (localhost authorization issue)
Date
Msg-id SN6PR04MB3933FB136788ECCEE5EBA7B8BEEF2@SN6PR04MB3933.namprd04.prod.outlook.com
Whole thread
List pgadmin-support

Hello,

I am facing an issue running pgAdmin 4 (v9.11) on Windows in an Virtual Desktop environment.

PostgreSQL itself is installed and working (psql connects successfully).
pgAdmin starts its internal server, but the UI cannot be accessed.

Observed behavior

  • pgAdmin runtime starts successfully:
  • * Serving Flask app 'pgadmin'
  • * Debug mode: off
  • pgAdmin reports:
  • The pgAdmin 4 server could not be contacted
  • When accessing the local URL manually:
  • http://127.0.0.1:<port>/browser/

the browser returns:

Unauthorized

The server could not verify that you are authorized to access the URL requested

Runtime details (excerpt)

Python Path: "C:\Program Files\pgAdmin 4\python\python.exe"

Webapp Path: "C:\Program Files\pgAdmin 4\web\pgAdmin4.py"

Runtime Config File: "C:\Users\a045514\AppData\Roaming\pgadmin4\config.json"

PGADMIN_INT_PORT: 52004

PGADMIN_SERVER_MODE: OFF

The pgAdmin server process is clearly running, but the browser session never initializes successfully.

This appears to be related to localhost / loopback access or session handling in Azure Virtual Desktop–style environments.

Questions

  • Are there recommended configuration options (e.g. server mode, auth settings, startup flags) for such environments?
  • Are there known limitations or workarounds when pgAdmin’s local web server cannot be accessed normally?

Any guidance would be appreciated.

Thanks,
Abhi Patel

 

Attachment

pgadmin-support by date:

Previous
From: Durumdara
Date:
Subject: Function - Go to the DataBase object
Next
From: Ashesh Vashi
Date:
Subject: Re: bug