PostgresSQL Failed to start application server, server thread existing in windows

I used the Postgresql EnterpriseDB installer from my website, but when I finished and ran pgadmin (which was installed with postgresql), I got a configuration error that says:

An error occurred initializing the application server:

Failed to launch application server, server thread existing

      

Then it asks me to enter the python path and application path. For the python path, I assume it C:\Users\xxx\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\

's where I installed python. However I am not sure which application it is asking.

9.6.3 postgresql version. pgadmin version - 4.windows 10 64bit

+3


source to share


1 answer


I faced the same problem and found that the PYTHONPATH system variable was causing the problem. So I removed the environment variable and it worked fine. Fortunately, I did not use these variables as my development environment is in remote mode.

So, try removing "PYTHONHOME" or "PYTHONPATH" from your environment variable list and run the application.



From pgAdmin code

# For unknown reason the Qt runtime does not pass the environment
# variables (i.e. PYTHONHOME, and PYTHONPATH), to the Python
# sub-processes, leading to failures executing background processes.
#
# This has been observed only on windows. On *nix systems, it is likely
# picking the system python environment, which is good enough to run
# the process-executor.**

      

0


source







All Articles