Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

new version can't be start with postgres #109

Open
wyaopeng opened this issue Aug 26, 2022 · 3 comments
Open

new version can't be start with postgres #109

wyaopeng opened this issue Aug 26, 2022 · 3 comments

Comments

@wyaopeng
Copy link

Describe the bug
new version can't be start with postgres,

image

can you tell me ,how to fix it ?

@jxu-nflx jxu-nflx transferred this issue from Netflix/conductor Aug 29, 2022
@edoang
Copy link

edoang commented Sep 27, 2022

i solved a similar issue adding a runtime dependency (version may vary) into build.gradle :

runtimeOnly "com.netflix.conductor:conductor-postgres-persistence:3.11.3"

still i have a problem, a fresh install with the dependency works just one time. After a restart i have problems:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'taskResource' defined in URL [jar:file:/app/libs/conductor-server-3.11.3-boot.jar
...
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'taskServiceImpl'
...
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'executionService'
...
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'executionDAOFacade'
...
Error creating bean with name 'es6IndexRestDAO'
...
Caused by: java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-0

ps. i start conductor with this command: docker compose -f docker-compose.yaml -f docker-compose-postgres.yaml up

any suggestions?

@wyaopeng @jxu-nflx

thx

e.

@yuri1969
Copy link
Contributor

Yea, it seems the server can't reach the ES6 service/container. The config-postgres.properties config sets the ES6 endpoint to conductor.elasticsearch.url=http://es:9200. The seems to be in line with the Compose setup.

@yuri1969
Copy link
Contributor

@edoang Enabling the DEBUG logs it can be seen that the ES6 timeout gets hit because the Conductor server is waiting for the ES6 cluster to get ready (be in the green state). The cluster can't get fully ready since the Docker Compose configures a single node cluster with the default count of replicas.

However, you can apply a workaround by adding conductor.elasticsearch.clusterHealthColor=yellow to the config-postgres.properties, rebuild, and 🎉

Actually, this workaround can be found in the official doc under the Elasticsearch timeout FAQ section.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants