The pgAdmin 4 server could not be contacted:

Galera, eu estou tentando acessar o postgresql pelo pgAdmin porém quando eu tento acessar surge esse erro:

pgAdmin Runtime Environment

Python Path: “C:\Program Files\PostgreSQL\13\pgAdmin 4\python\python.exe”
Runtime Config File: “C:\Users\Eduardo\AppData\Roaming\pgadmin\runtime_config.json”
pgAdmin Config File: “C:\Program Files\PostgreSQL\13\pgAdmin 4\web\config.py”
Webapp Path: “C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgAdmin4.py”
pgAdmin Command: “C:\Program Files\PostgreSQL\13\pgAdmin 4\python\python.exe -s C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgAdmin4.py”
Environment:

  • ALLUSERSPROFILE: C:\ProgramData
  • APPDATA: C:\Users\Eduardo\AppData\Roaming
  • CHROME_CRASHPAD_PIPE_NAME: \.\pipe\crashpad_12216_KHKHSFHKEUMORQSY
  • CHROME_RESTART: NW.js|O NW.js travou. Reiniciar agora?|LEFT_TO_RIGHT
  • CommonProgramFiles: C:\Program Files\Common Files
  • CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
  • CommonProgramW6432: C:\Program Files\Common Files
  • COMPUTERNAME: DESKTOP-EULNAFI
  • ComSpec: C:\Windows\system32\cmd.exe
  • DriverData: C:\Windows\System32\Drivers\DriverData
  • FPS_BROWSER_APP_PROFILE_STRING: Internet Explorer
  • FPS_BROWSER_USER_PROFILE_STRING: Default
  • HOMEDRIVE: C:
  • HOMEPATH: \Users\Eduardo
  • IntelliJ IDEA Community Edition: C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.1\bin;
  • JAVA_HOME: C:\Program Files\Java\jdk-11.0.7
  • LOCALAPPDATA: C:\Users\Eduardo\AppData\Local
  • LOGONSERVER: \DESKTOP-EULNAFI
  • M2_HOME: C:\apache-maven-3.8.1\bin
  • NUMBER_OF_PROCESSORS: 8
  • OneDrive: C:\Users\Eduardo\OneDrive
  • OneDriveConsumer: C:\Users\Eduardo\OneDrive
  • OPENSSL_CONF: C:\Program Files\PostgreSQL\psqlODBC\etc\openssl.cnf
  • OS: Windows_NT
  • Path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Java\jdk-11.0.7\bin;C:\Program Files (x86)\swigwin-4.0.2;C:\Program Files (x86)\Ffmpeg\bin;C:\Program Files\nodejs;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\MongoDB\Server\4.4\bin;C:\gradle-7.0\bin;C:\chromedriver_win32\chromedriver.exe;C:\apache-maven-3.8.1\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\PostgreSQL\13\bin;C:\Users\Eduardo\anaconda3;C:\Users\Eduardo\anaconda3\Library\mingw-w64\bin;C:\Users\Eduardo\anaconda3\Library\usr\bin;C:\Users\Eduardo\anaconda3\Library\bin;C:\Users\Eduardo\anaconda3\Scripts;C:\Users\Eduardo\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.1\bin;;C:\Program Files\JetBrains\PyCharm Community Edition 2020.1.2\bin;;C:\Users\Eduardo\AppData\Roaming\npm;C:\Users\Eduardo\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Eduardo\AppData\Local\GitHubDesktop\bin;C:\apache-maven-3.8.1\bin;
  • PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
  • PGADMIN_INT_KEY: 3abfeb36-7420-47ef-b2db-9ad00e50147e
  • PGADMIN_INT_PORT: 50198
  • PGADMIN_SERVER_MODE: OFF
  • PROCESSOR_ARCHITECTURE: AMD64
  • PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
  • PROCESSOR_LEVEL: 6
  • PROCESSOR_REVISION: 3a09
  • ProgramData: C:\ProgramData
  • ProgramFiles: C:\Program Files
  • ProgramFiles(x86): C:\Program Files (x86)
  • ProgramW6432: C:\Program Files
  • PSModulePath: C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\
  • PUBLIC: C:\Users\Public
  • PyCharm Community Edition: C:\Program Files\JetBrains\PyCharm Community Edition 2020.1.2\bin;
  • SESSIONNAME: Console
  • SystemDrive: C:
  • SystemRoot: C:\Windows
  • TEMP: C:\Users\Eduardo\AppData\Local\Temp
  • TMP: C:\Users\Eduardo\AppData\Local\Temp
  • UIPATH_USER_SERVICE_PATH: C:\Users\Eduardo\AppData\Local\UiPath\app-21.4.0\net461…\UiPath.Service.UserHost.exe
  • USERDOMAIN: DESKTOP-EULNAFI
  • USERDOMAIN_ROAMINGPROFILE: DESKTOP-EULNAFI
  • USERNAME: Eduardo
  • USERPROFILE: C:\Users\Eduardo
  • windir: C:\Windows

Failed to launch pgAdmin4. Error:
Error: spawn C:\Program Files\PostgreSQL\13\pgAdmin 4\python\python.exe ENOENT

Já desintalei e instalei e mesmo assim o erro persiste. Não sei se é algum tipo de conflito com o python. Se puderem me dar uma direção de uma possível solução, ficarei muito grato.

Cara, eu sempre tive esse erro usando o Windows. As vezes iniciava como administrador e funcionava… Aí ficava fechando e abrindo até funcionar

Quando mudei pro linux (ubuntu), nunca mais passei por isso

@rodriguesabner, muita perda de tempo. Estou tentando aprender, e perco mais tempo configurando e corrigindo erros do que realmente usando a ferramenta.

1 curtida

Realmente… Esse erro é antigo e ainda não solucionaram isso. É uma pena, pq é um ótimo banco de dados

Tenta fazer o procedimento do vídeo acima

Nesse link: https://robsonsilv4.wordpress.com/2017/12/01/como-corrigir-o-erro-application-server-could-not-be-contacted-do-pgadmin-4/

O doidão diz que resolveu o problema apagando a pasta: C:\Users<<Usuário>>\AppData\Roaming\pgAdmin