openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

Unable to start local server

Open AxelRICHARD opened this issue 4 years ago • 3 comments
trafficstars

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,

AxelRICHARD avatar Feb 11 '21 10:02 AxelRICHARD

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.

spoenemann avatar Feb 11 '21 11:02 spoenemann

Ok thank you for your prompt answer. Does the PostgreSQL or Elasticsearch need some configuration (a specific user,...) ?

AxelRICHARD avatar Feb 11 '21 12:02 AxelRICHARD

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

spoenemann avatar Feb 11 '21 14:02 spoenemann