簡體   English   中英

可以使用 postgress Run.netflix conductor -

[英]Could Run netflix conductor with postgress -

我正在嘗試按照 Netflix conductor 的簡單教程進行操作,但無法運行 postgress 或任何其他持久性選項

我有 APPLICATION FAILED TO START 並且無法使用持久性選項

conductor 3.9.10 使用 docker-compose os: mac(也在 windows 上試過)

docker-compose -f docker-compose.yaml -f docker-compose-postgres.yaml up

conductor-server_1  | 5772 [main] WARN  org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext [] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workflowResource' defined in URL [jar:file:/app/libs/conductor-server-3.10.0-SNAPSHOT-boot.jar!/BOOT-INF/lib/conductor-rest-3.10.0-SNAPSHOT.jar!/com/netflix/conductor/rest/controllers/WorkflowResource.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workflowServiceImpl' defined in URL [jar:file:/app/libs/conductor-server-3.10.0-SNAPSHOT-boot.jar!/BOOT-INF/lib/conductor-core-3.10.0-SNAPSHOT.jar!/com/netflix/conductor/service/WorkflowServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workflowExecutor' defined in URL [jar:file:/app/libs/conductor-server-3.10.0-SNAPSHOT-boot.jar!/BOOT-INF/lib/conductor-core-3.10.0-SNAPSHOT.jar!/com/netflix/conductor/core/execution/WorkflowExecutor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deciderService' defined in URL [jar:file:/app/libs/conductor-server-3.10.0-SNAPSHOT-boot.jar!/BOOT-INF/lib/conductor-core-3.10.0-SNAPSHOT.jar!/com/netflix/conductor/core/execution/DeciderService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.netflix.conductor.dao.MetadataDAO' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
conductor-server_1  | 5782 [main] INFO  org.apache.catalina.core.StandardService [] - Stopping service [Tomcat]
conductor-server_1  | 5815 [main] INFO  org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener [] -
conductor-server_1  |
conductor-server_1  | Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
conductor-server_1  | 5853 [main] ERROR org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter [] -
conductor-server_1  |
conductor-server_1  | ***************************
conductor-server_1  | APPLICATION FAILED TO START
conductor-server_1  | ***************************
conductor-server_1  |
conductor-server_1  | Description:
conductor-server_1  |
conductor-server_1  | Parameter 2 of constructor in com.netflix.conductor.core.execution.DeciderService required a bean of type 'com.netflix.conductor.dao.MetadataDAO' that could not be found.
conductor-server_1  |
conductor-server_1  |
conductor-server_1  | Action:
conductor-server_1  |
conductor-server_1  | Consider defining a bean of type 'com.netflix.conductor.dao.MetadataDAO' in your configuration.
conductor-server_1  |

如果有人遇到此問題,解決方案是在server/build.gradle下添加以下內容:

runtimeOnly group: 'com.netflix.conductor', name: 'conductor-postgres-persistence', version: '3.9.1'

您需要添加到您的 build.gradle 文件

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

如果您從主分支結帳,請將 3.9.10 替換為最新版本

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM