Open JCHacking opened 10 months ago
Hi @JCHacking , is there any reason you are using custom docker-compose? There are some example docker-compose here
I simply adapted the docker-compose that I had (I used to generate the images myself and it was fine to lift on my local computer).
It used to work without redis, as far as I understand it used dynoqueues right? Why is it necessary now? And why if I use the image it is, but if I compile and generate from conductor-community it is not?
After further research, if I add redis it looks like and move on to have this docker-compose:
services:
conductor:
image: reg.1u1.it/dockerhub/conductoross/conductor:3.15.0
container_name: conductor
ports:
- 8080:8080
- 5000:5000
networks:
- conductor
volumes:
- ./server/config.properties:/app/config/config.properties
healthcheck:
test: [ "CMD", "curl","-I" ,"-XGET", "http://localhost:8080/health" ]
interval: 30s
timeout: 10s
retries: 12
depends_on:
elastic:
condition: service_healthy
redis:
condition: service_healthy
logging:
driver: "json-file"
options:
max-size: "1k"
max-file: "3"
redis:
image: reg.1u1.it/dockerhub/redis:latest
container_name: redis
networks:
- conductor
ports:
- 6379:6379
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 5s
retries: 3
elastic:
image: reg.1u1.it/dockerhub/elasticsearch:7.17.16
container_name: elastic
environment:
- cluster.name=conductor-elastic-cluster
- node.name=conductor-elastic-node-1
- xpack.security.enabled=false
- discovery.type=single-node
- transport.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx1024m"
- bootstrap.memory_lock=true
networks:
- conductor
ports:
- 9200:9200
- 9300:9300
healthcheck:
test: [ "CMD", "curl", "-I", "-XGET", "http://localhost:9200"]
interval: 5s
timeout: 5s
retries: 12
logging:
driver: "json-file"
options:
max-size: "1k"
max-file: "3"
networks:
conductor:
And this configuration:
# Database
conductor.db.type=redis_standalone
# Queues
conductor.queue.type=redis_standalone
conductor.redis.hosts=redis:6379:zone1
conductor.redis-lock.serverAddress=redis://redis:6379
conductor.redis.availabilityZone=zone1
conductor.redis.taskDefCacheRefreshInterval=1
conductor.redis.workflowNamespacePrefix=conductor
conductor.redis.queueNamespacePrefix=conductor_queues
# Index
conductor.indexing.enabled=true
conductor.elasticsearch.version=7
conductor.elasticsearch.url=http://elastic:9200
conductor.elasticsearch.indexName=conductor
conductor.elasticsearch.indexReplicasCount=0
# Others
conductor.grpc-server.enabled=false
conductor.app.ownerEmailMandatory=false
loadSample=false
It seems to be trying to get access through postgres when it is not configured to use it. Configuration reading logs:
conductor | Using /app/config/config.properties as the configuration file
conductor | 06:50:28.090 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: PATH, Value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
conductor | 06:50:28.090 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: HOSTNAME, Value: 5fa38f4662a7
conductor | 06:50:28.090 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: LD_LIBRARY_PATH, Value: /usr/lib/jvm/java-17-openjdk/lib/server:/usr/lib/jvm/java-17-openjdk/li
b:/usr/lib/jvm/java-17-openjdk/../lib
conductor | 06:50:28.090 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: OLDPWD, Value: /usr/share/nginx/html
conductor | 06:50:28.090 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: PWD, Value: /app/libs
conductor | 06:50:28.090 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: config_file, Value: /app/config/config.properties
conductor | 06:50:28.090 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: LOG_FILE, Value: /app/logs/server.log
conductor | 06:50:28.090 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: HOME, Value: /root
conductor | 06:50:28.091 [main] INFO io.orkes.conductor.OrkesConductorApplication - System Env Props - Key: SHLVL, Value: 1
conductor | 06:50:28.091 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.specification.version, Value: 17
conductor | 06:50:28.091 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: CONDUCTOR_CONFIG_FILE, Value: /app/config/config.properties
conductor | 06:50:28.091 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: sun.jnu.encoding, Value: UTF-8
conductor | 06:50:28.091 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.class.path, Value: server.jar
conductor | 06:50:28.092 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: spring.devtools.restart.enabled, Value: false
conductor | 06:50:28.092 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vm.vendor, Value: Alpine
conductor | 06:50:28.092 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: sun.arch.data.model, Value: 64
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vendor.url, Value: https://alpinelinux.org/
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: user.timezone, Value: GMT
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vm.specification.version, Value: 17
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: os.name, Value: Linux
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: sun.java.launcher, Value: SUN_STANDARD
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: user.country, Value: US
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: sun.boot.library.path, Value: /usr/lib/jvm/java-17-openjdk/lib
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: sun.java.command, Value: server.jar
conductor | 06:50:28.093 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: jdk.debug, Value: release
conductor | 06:50:28.094 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: sun.cpu.endian, Value: little
conductor | 06:50:28.094 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: user.home, Value: /root
conductor | 06:50:28.094 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: user.language, Value: en
conductor | 06:50:28.094 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.specification.vendor, Value: Oracle Corporation
conductor | 06:50:28.094 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.version.date, Value: 2023-10-17
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.home, Value: /usr/lib/jvm/java-17-openjdk
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: file.separator, Value: /
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vm.compressedOopsMode, Value: 32-bit
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: line.separator, Value:
conductor |
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.specification.name, Value: Java Platform API Specification
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vm.specification.vendor, Value: Oracle Corporation
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.protocol.handler.pkgs, Value: org.springframework.boot.loader
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: sun.management.compiler, Value: HotSpot 64-Bit Tiered Compilers
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.runtime.version, Value: 17.0.9+8-alpine-r0
conductor | 06:50:28.095 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: user.name, Value: root
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: path.separator, Value: :
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: os.version, Value: 5.10.102.1-microsoft-standard-WSL2
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.runtime.name, Value: OpenJDK Runtime Environment
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: file.encoding, Value: UTF-8
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vm.name, Value: OpenJDK 64-Bit Server VM
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vendor.url.bug, Value: https://gitlab.alpinelinux.org/alpine/aports/issues
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.io.tmpdir, Value: /tmp
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.version, Value: 17.0.9
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: user.dir, Value: /app/libs
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: os.arch, Value: amd64
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vm.specification.name, Value: Java Virtual Machine Specification
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: native.encoding, Value: UTF-8
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.library.path, Value: /usr/lib/jvm/java-17-openjdk/lib/server:/usr/lib/jvm/java-17-openjdk/lib:/us
r/lib/jvm/java-17-openjdk/../lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vm.info, Value: mixed mode, sharing
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vendor, Value: Alpine
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.vm.version, Value: 17.0.9+8-alpine-r0
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: sun.io.unicode.encoding, Value: UnicodeLittle
conductor | 06:50:28.096 [main] INFO io.orkes.conductor.OrkesConductorApplication - Env Props - Key: java.class.version, Value: 61.0
conductor | 06:50:28.099 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.redis-lock.serverAddress - redis://redis:6379
conductor | 06:50:28.099 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.db.type - redis_standalone
conductor | 06:50:28.099 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.redis.taskDefCacheRefreshInterval - 1
conductor | 06:50:28.099 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.app.ownerEmailMandatory - false
conductor | 06:50:28.099 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting loadSample - false
conductor | 06:50:28.099 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.grpc-server.enabled - false
conductor | 06:50:28.099 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.elasticsearch.indexName - conductor
conductor | 06:50:28.099 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.elasticsearch.url - http://elastic:9200
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.elasticsearch.indexReplicasCount - 0
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.indexing.enabled - true
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.redis.workflowNamespacePrefix - conductor
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.elasticsearch.version - 7
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.redis.queueNamespacePrefix - conductor_queues
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.redis.hosts - redis:6379:zone1
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.redis.availabilityZone - zone1
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Setting conductor.queue.type - redis_standalone
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Loaded 16 properties from /app/config/config.properties
conductor | 06:50:28.100 [main] INFO io.orkes.conductor.OrkesConductorApplication - Completed loading external configuration
First error:
conductor | 2024-01-10 06:50:38,641 ERROR [main] com.zaxxer.hikari.pool.HikariPool: HikariPool-1 - Exception during pool initialization.
conductor | 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.
conductor | at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:303)
conductor | at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:51)
conductor | at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:225)
conductor | at org.postgresql.Driver.makeConnection(Driver.java:465)
conductor | at org.postgresql.Driver.connect(Driver.java:264)
conductor | at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
conductor | at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364)
conductor | at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
conductor | at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476)
conductor | at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561)
conductor | at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
conductor | at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
conductor | at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:54)
conductor | at org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:69)
conductor | at org.flywaydb.core.Flyway.execute(Flyway.java:508)
conductor | at org.flywaydb.core.Flyway.migrate(Flyway.java:165)
conductor | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
conductor | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
conductor | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
conductor | at java.base/java.lang.reflect.Method.invoke(Method.java:568)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1930)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1872)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
conductor | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
conductor | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
conductor | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
conductor | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
conductor | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1609)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1573)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1462)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1349)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
conductor | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
conductor | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
conductor | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
conductor | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
conductor | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
conductor | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
conductor | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
conductor | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
conductor | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
conductor | at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
conductor | at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780)
conductor | at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:453)
conductor | at org.springframework.boot.SpringApplication.run(SpringApplication.java:343)
conductor | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1370)
conductor | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1359)
conductor | at io.orkes.conductor.OrkesConductorApplication.main(OrkesConductorApplication.java:76)
conductor | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
conductor | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
conductor | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
conductor | at java.base/java.lang.reflect.Method.invoke(Method.java:568)
conductor | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
conductor | at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
conductor | at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
conductor | at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
conductor | Caused by: java.net.ConnectException: Connection refused
conductor | at java.base/sun.nio.ch.Net.pollConnect(Native Method)
conductor | at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
conductor | at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)
conductor | at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)
conductor | at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
conductor | at java.base/java.net.Socket.connect(Socket.java:633)
conductor | at org.postgresql.core.PGStream.createSocket(PGStream.java:231)
conductor | at org.postgresql.core.PGStream.<init>(PGStream.java:95)
conductor | at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:98)
conductor | at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:213)
conductor | ... 149 common frames omitted
Second error:
conductor | 2024-01-10 06:56:21,791 WARN [main] org.springframework.context.support.AbstractApplicationContext: Exception encountered during context initialization - cancelling refresh attempt: org.spri
ngframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orkesWorkflowExecutor' defined in URL [jar:file:/app/libs/server.jar!/BOOT-INF/classes!/com/netflix/conductor/core/
execution/OrkesWorkflowExecutor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creati
ng bean with name 'deciderService' defined in URL [jar:file:/app/libs/server.jar!/BOOT-INF/lib/conductor-core-3.15.0.jar!/com/netflix/conductor/core/execution/DeciderService.class]: Unsatisfied dependency
expressed through constructor parameter 4; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'systemTaskRegistry' defined in URL [jar:fil
e:/app/libs/server.jar!/BOOT-INF/lib/conductor-core-3.15.0.jar!/com/netflix/conductor/core/execution/tasks/SystemTaskRegistry.class]: Unsatisfied dependency expressed through constructor parameter 0; nest
ed exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'START_WORKFLOW' defined in URL [jar:file:/app/libs/server.jar!/BOOT-INF/lib/conductor-core-
3.15.0.jar!/com/netflix/conductor/core/execution/tasks/StartWorkflow.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.Unsatis
fiedDependencyException: Error creating bean with name 'startWorkflowOperation' defined in URL [jar:file:/app/libs/server.jar!/BOOT-INF/lib/conductor-core-3.15.0.jar!/com/netflix/conductor/core/operation/
StartWorkflowOperation.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean w
ith name 'executionDAOFacade' defined in URL [jar:file:/app/libs/server.jar!/BOOT-INF/lib/conductor-core-3.15.0.jar!/com/netflix/conductor/core/dal/ExecutionDAOFacade.class]: Unsatisfied dependency expres
sed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'getExecutionDAO' defined in class path resource [i
o/orkes/conductor/dao/postgres/archive/PostgresArchiveDAOConfiguration.class]: Unsatisfied dependency expressed through method 'getExecutionDAO' parameter 0; nested exception is org.springframework.beans.
factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [io/orkes/conductor/dao/postgres/archive/PostgresArchiveDAOConfiguration.class]: Invocation of init met
hod failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
conductor | Unable to obtain connection from database: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
conductor | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
conductor | SQL State : 08001
conductor | Error Code : 0
conductor | Message : Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
It seems that although it is not specified, it tries to connect to postgresql both to do the migration with flyway and to be used as persistence, no? If I compile 3.15.0 or 3.16.0 it works, so I think it is a bug in the uploaded image.
Hi @JCHacking , Can you please rebuild the image? I see you have specified the property conductor.db.type=redis_standalone
so ideally conductor don't need postgres.
If I generate conductor:server with the dockerfile from this repository with the tag v3.15.0 it works fine.
Any news on this? Do you know what the problem is? I would like to be able to use the image in my systems so I don't have to generate my own.
Any news about this? Will the official docker repository be maintained or will it be abandoned? @manan164
Describe the bug With the following docker-compose:
And the following configuration file:
I get the following error:
This with my image generated from driver-community works, am I missing something?
Expected behavior I hope I can use this docker image instead of having to generate one myself.