-
Notifications
You must be signed in to change notification settings - Fork 676
Description
Describe the bug
I tried to see how the Redis/Open Search could work but got some 500 errors from search API.
But I dont see the same errors if I use docker/docker-compose.yaml
Details
Conductor version: latest (main)
Persistence implementation: Redis Standalone
Queue implementation: Redis Standalone
Lock: Redis
Workflow definition: default
Task definition: default
Event handler definition: default
Docker app: OrbStack
To Reproduce
Use main branch, and this command:
docker compose -f docker/docker-compose-redis-os.yaml up -d
✔ conductor-server Built 0.0s
✔ Network docker_internal Created 0.0s
✔ Volume "docker_osdata-conductor" Created 0.0s
✔ Container docker-conductor-opensearch-1 Healthy 10.8s
✔ Container docker-conductor-redis-1 Healthy 30.8s
✔ Container conductor-server Started
And I got some errors like this below
Here is an cURL
curl 'http://conductor-server.docker.orb.local:5000/api/workflow/search?start=0&size=15&sort=startTime%3ADESC&freeText=&query=startTime%3E1746971197369%20AND%20status%20IN%20%28FAILED%2CTERMINATED%2CTIMED_OUT%2CPAUSED%29' \
-H 'Accept: */*' \
-H 'Accept-Language: en-US,en;q=0.9,vi;q=0.8' \
-H 'Connection: keep-alive' \
-H 'DNT: 1' \
-H 'Referer: http://conductor-server.docker.orb.local:5000/' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36' \
--insecure
Its response:
{
"status": 500,
"message": "Handler dispatch failed: java.lang.NoClassDefFoundError: Could not initialize class org.opensearch.Version",
"instance": "ee873df7d589",
"retryable": false
}
server container logs:
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768) ~[spring-aop-6.1.14.jar!/:6.1.14]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:720) ~[spring-aop-6.1.14.jar!/:6.1.14]
at com.netflix.conductor.service.WorkflowServiceImpl$$SpringCGLIB$$0.searchWorkflows(<generated>) ~[conductor-core.jar!/:?]
at com.netflix.conductor.rest.controllers.WorkflowResource.search(WorkflowResource.java:232) ~[conductor-rest.jar!/:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255) ~[spring-web-6.1.14.jar!/:6.1.14]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188) ~[spring-web-6.1.14.jar!/:6.1.14]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118) ~[spring-webmvc-6.1.14.jar!/:6.1.14]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:926) ~[spring-webmvc-6.1.14.jar!/:6.1.14]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:831) ~[spring-webmvc-6.1.14.jar!/:6.1.14]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-6.1.14.jar!/:6.1.14]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089) [spring-webmvc-6.1.14.jar!/:6.1.14]
... 43 more
open-search container logs:
[2025-05-12T13:38:11,185][INFO ][o.o.i.i.m.ISMTemplateService] [conductor-opensearch] Use 2025-05-12T12:37:11.175Z as migrating ISM template last_updated_time
[2025-05-12T13:38:11,186][INFO ][o.o.i.i.m.ISMTemplateService] [conductor-opensearch] ISM templates: {}
[2025-05-12T13:38:11,187][INFO ][o.o.i.i.m.ISMTemplateService] [conductor-opensearch] Policies to update: []
[2025-05-12T13:38:11,193][INFO ][o.o.i.i.m.ISMTemplateService] [conductor-opensearch] Failure experienced when migrating ISM Template and update ISM policies: {}
[2025-05-12T13:38:11,228][INFO ][o.o.c.s.ClusterSettings ] [conductor-opensearch] updating [plugins.index_state_management.template_migration.control] from [0] to [-1]
[2025-05-12T13:38:11,231][WARN ][o.o.c.r.a.AllocationService] [conductor-opensearch] Falling back to single shard assignment since batch mode disable or multiple custom allocators set
[2025-05-12T13:38:11,233][INFO ][o.o.i.i.m.ISMTemplateService] [conductor-opensearch] Successfully update template migration setting
[2025-05-12T13:39:11,182][INFO ][o.o.i.i.ManagedIndexCoordinator] [conductor-opensearch] Cancel background move metadata process.
[2025-05-12T13:39:11,183][INFO ][o.o.i.i.ManagedIndexCoordinator] [conductor-opensearch] Performing move cluster state metadata.
[2025-05-12T13:39:11,183][INFO ][o.o.i.i.MetadataService ] [conductor-opensearch] Move metadata has finished.
[2025-05-12T13:42:10,964][INFO ][o.o.j.s.JobSweeper ] [conductor-opensearch] Running full sweep
[2025-05-12T13:42:11,188][INFO ][o.o.i.i.PluginVersionSweepCoordinator] [conductor-opensearch] Canceling sweep ism plugin version job
[2025-05-12T13:47:10,978][INFO ][o.o.j.s.JobSweeper ] [conductor-opensearch] Running full sweep
Expected behavior
It shouldn't throw exception
Screenshots
Within the steps
Here is an addition of running with docker/docker-compose.yaml
Additional context
Add any other context about the problem here.