Closed jmorcate closed 1 year ago
Hi @jmorcate, it looks like ElasticSearch isn't running.
open-vsx-openvsx-server-1 | Caused by: org.elasticsearch.ElasticsearchException: java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused
open-vsx-openvsx-server-1 | at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2695) ~[elasticsearch-rest-high-level-client-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171) ~[elasticsearch-rest-high-level-client-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137) ~[elasticsearch-rest-high-level-client-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105) ~[elasticsearch-rest-high-level-client-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:151) ~[elasticsearch-rest-high-level-client-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | at org.jobrunr.storage.nosql.elasticsearch.migrations.ElasticSearchMigration.waitForHealthyCluster(ElasticSearchMigration.java:27) ~[jobrunr-5.1.2.jar:5.1.2]
open-vsx-openvsx-server-1 | at org.jobrunr.storage.nosql.elasticsearch.ElasticSearchDBCreator.<init>(ElasticSearchDBCreator.java:52) ~[jobrunr-5.1.2.jar:5.1.2]
open-vsx-openvsx-server-1 | at org.jobrunr.storage.nosql.elasticsearch.ElasticSearchStorageProvider.setUpStorageProvider(ElasticSearchStorageProvider.java:135) ~[jobrunr-5.1.2.jar:5.1.2]
open-vsx-openvsx-server-1 | at org.jobrunr.storage.nosql.elasticsearch.ElasticSearchStorageProvider.<init>(ElasticSearchStorageProvider.java:119) ~[jobrunr-5.1.2.jar:5.1.2]
open-vsx-openvsx-server-1 | at org.jobrunr.storage.nosql.elasticsearch.ElasticSearchStorageProvider.<init>(ElasticSearchStorageProvider.java:103) ~[jobrunr-5.1.2.jar:5.1.2]
open-vsx-openvsx-server-1 | at org.jobrunr.spring.autoconfigure.storage.JobRunrElasticSearchStorageAutoConfiguration.elasticSearchStorageProvider(JobRunrElasticSearchStorageAutoConfiguration.java:28) ~[jobrunr-spring-boot-starter-5.1.2.jar:na]
open-vsx-openvsx-server-1 | at org.jobrunr.spring.autoconfigure.storage.JobRunrElasticSearchStorageAutoConfiguration$$EnhancerBySpringCGLIB$$8f08b417.CGLIB$elasticSearchStorageProvider$0(<generated>) ~[jobrunr-spring-boot-starter-5.1.2.jar:na]
open-vsx-openvsx-server-1 | at org.jobrunr.spring.autoconfigure.storage.JobRunrElasticSearchStorageAutoConfiguration$$EnhancerBySpringCGLIB$$8f08b417$$FastClassBySpringCGLIB$$4e4067eb.invoke(<generated>) ~[jobrunr-spring-boot-starter-5.1.2.jar:na]
open-vsx-openvsx-server-1 | at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.3.20.jar:5.3.20]
open-vsx-openvsx-server-1 | at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.3.20.jar:5.3.20]
open-vsx-openvsx-server-1 | at org.jobrunr.spring.autoconfigure.storage.JobRunrElasticSearchStorageAutoConfiguration$$EnhancerBySpringCGLIB$$8f08b417.elasticSearchStorageProvider(<generated>) ~[jobrunr-spring-boot-starter-5.1.2.jar:na]
open-vsx-openvsx-server-1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
open-vsx-openvsx-server-1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
open-vsx-openvsx-server-1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
open-vsx-openvsx-server-1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
open-vsx-openvsx-server-1 | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.20.jar:5.3.20]
open-vsx-openvsx-server-1 | ... 48 common frames omitted
open-vsx-openvsx-server-1 | Caused by: java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused
open-vsx-openvsx-server-1 | at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.getValue(BaseFuture.java:257) ~[elasticsearch-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:244) ~[elasticsearch-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:75) ~[elasticsearch-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2692) ~[elasticsearch-rest-high-level-client-7.17.3.jar:7.17.3]
open-vsx-openvsx-server-1 | ... 68 common frames omitted
Maybe, but it shouldn't be running. In the application.yml
I have elasticsearch disabled:
ovsx:
databasesearch:
enabled: false
elasticsearch:
enabled: false
eclipse:
base-url: https://api.eclipse.org
publisher-agreement:
timezone: US/Eastern
But I will give it a try. Thanks @amvanbaren
@jmorcate Just tested this again. It works now.
I have tried to run a openvsx server container, tag f956110, My set up is:
services: openvsx-server: image: "ghcr.io/eclipse/openvsx-server:f956110" volumes:
server: port: 8080
spring: profiles: include: ovsx cache: jcache: config: classpath:ehcache.xml datasource: url: jdbc:postgresql://openvsx-db:5432/openvsx username: gitpod password: gitpod flyway: baseline-on-migrate: true baseline-version: 0.1.0 baseline-description: JobRunr tables jpa: open-in-view: false properties: hibernate: dialect: org.hibernate.dialect.PostgreSQLDialect hibernate: ddl-auto: none session: store-type: jdbc jdbc: initialize-schema: never
security: oauth2: client: registration: eclipse: authorization-grant-type: authorization_code redirect-uri: http://localhost/login/oauth2/code/eclipse scope: openvsx_publisher_agreement, profile provider: eclipse: authorization-uri: https://accounts.eclipse.org/oauth2/authorize token-uri: https://accounts.eclipse.org/oauth2/token user-info-uri: https://accounts.eclipse.org/oauth2/UserInfo user-name-attribute: name user-info-authentication-method: header
management: health: probes: enabled: true
springdoc: swagger-ui: docExpansion: list operationsSorter: alpha supportedSubmitMethods:
org: jobrunr: job-scheduler: enabled: true background-job-server: enabled: true worker-count: 2 dashboard: enabled: false miscellaneous: allow-anonymous-data-usage: false
bucket4j: enabled: true filters:
ovsx: databasesearch: enabled: false elasticsearch: enabled: false eclipse: base-url: https://api.eclipse.org publisher-agreement: timezone: US/Eastern