pgAdmin 4 fails to open UI on Azure Virtual Desktop (localhost authorization issue)

Поиск
Список
Период
Сортировка
Искать

pgAdmin 4 fails to open UI on Azure Virtual Desktop (localhost authorization issue)

От:
"ABHI PATEL (CRGL-THIRDPARTY.COM)" <ABHI_PATEL@CRGL-THIRDPARTY.COM>
Дата:
Вложения:

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

 

FAQ