openvsx
openvsx copied to clipboard
Unable to start local server
Hello,
I successfully executed ./gradlew build
Then, when I try to execute ./gradlew runServer, I get the following error :
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Do you reproduce this error?
Is there some config file missing somewhere or a missing step that has not been described in the https://github.com/eclipse/openvsx#server section?
Best regards,
The description in the readme assumes that you create a workspace with Gitpod as mentioned at the beginning of the Development section. If you want to work on your local machine, you need to provide PostgreSQL and Elasticsearch yourself.
Ok thank you for your prompt answer. Does the PostgreSQL or Elasticsearch need some configuration (a specific user,...) ?
You can see the username/password for PostgreSQL here: https://github.com/eclipse/openvsx/blob/a9154dc61d4aa50b9e6c7fcf60f8c3827aa3047e/server/src/dev/resources/application.yml#L7-L10
Elasticsearch should be running without authentication. In the Gitpod environment it is started with this command: https://github.com/eclipse/openvsx/blob/a9154dc61d4aa50b9e6c7fcf60f8c3827aa3047e/.gitpod.yml#L38