pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

The pgAdmin 4 server could not be contacted

Open soundarrajmca opened this issue 8 months ago • 0 comments

Infra background:

Windows 11 Multisession (Azure virtual desktop with roaming profile)

When i open PgAdmin with local account its working fine but while login with AVD with roaming profile getting below error

"The pgAdmin 4 server could not be contacted". Below the log it's generating when starting PgAdmin 4.

log:

Total spawn time to start the pgAdmin4 server: 0.011 Sec Traceback (most recent call last): File "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgAdmin4.py", line 103, in

app = create_app()
      ^^^^^^^^^^^^

File "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgadmin_init_.py", line 252, in create_app create_app_data_directory(config) File "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgadmin\setup\data_directory.py", line 66, in create_app_data_directory _create_directory_if_not_exists(os.path.dirname(config.LOG_FILE)) File "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgadmin\setup\data_directory.py", line 21, in _create_directory_if_not_exists os.mkdir(_path) FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\Users\Soundarraj.ramasamy\AppData\Roaming\pgAdmin'

++++++++++++++++++++++++++++++++++++++++++++++++++++

I tried deleting this "'C:\Users\Soundarraj.ramasamy\AppData\Roaming\pgAdmin'" folder also but same issue

soundarrajmca avatar Apr 17 '25 15:04 soundarrajmca