I'm getting this error on startup of pgAdmin4 on Kubuntu 18.04:
An error occurred initialising the application server:
Failed to launch the application server, server thread exiting.
In the following window ("Configuration") I have these default values:
Python Path:
/usr/pgadmin4/lib/python2.7;/usr/pgadmin4/lib/python2.7/site-packages
Application Path:
/usr/pgadmin4/web
Since I don't have a /usr/pgadmin4/
directory, all of them are wrong.
See https://stackoverflow.com/questions/43968302/failed-to-launch-application-server-server-thread-existing-on-windows for the same error on Windows
Best Answer
For me, when I run pgadmin like Thomas Landauer says, I got this error:
The error says what is the problem, so I created the folders:
And after restarting pgAdmin4, it first asked for user creation, then worked.