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

Disable ES in local docker config #2895

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Disable ES in local docker config #2895

merged 1 commit into from
Apr 7, 2022

Conversation

NickTomlin
Copy link
Contributor

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

Changes in this PR

Currently the local config actually enables ES which leads to issues when starting standalone. I don't think this is intentional, but let me know and I can create a separate standalone properties file.

Error

When running docker run -p 8080:8080 -d -t conductor:server locally I see

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'taskServiceImpl' defined in URL [jar:file:/app/libs/conductor-server-3.7.0-SNAPSHOT-boot.jar!/BOOT-INF/lib/conductor-core-3.7.0-SNAPSHOT.jar!/com/netflix/conductor/service/TaskServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'executionService' defined in URL [jar:file:/app/libs/conductor-server-3.7.0-SNAPSHOT-boot.jar!/BOOT-INF/lib/conductor-core-3.7.0-SNAPSHOT.jar!/com/netflix/conductor/service/ExecutionService.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.7.0-SNAPSHOT-boot.jar!/BOOT-INF/lib/conductor-core-3.7.0-SNAPSHOT.jar!/com/netflix/conductor/core/execution/WorkflowExecutor.class]: Unsatisfied dependency expressed through constructor parameter 5;
 nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'executionDAOFacade' defined in URL [jar:file:/app/libs/conductor-server-3.7.0-SNAPSHOT-boot.jar!/BOOT-INF/lib/conductor-core-3.7.0-SNAPSHOT.jar!/com/netflix/conductor/core/dal/ExecutionDAOFacade.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'es6IndexRestDAO': Invocation of init method failed; nested exception is java.io.IOException: es: No address associated with hostname

@apanicker-nflx
Copy link
Collaborator

I am unable to reproduce this locally. I followed the steps here - https://github.com/Netflix/conductor/tree/main/docker#standalone-server-image

@NickTomlin
Copy link
Contributor Author

@apanicker-nflx I realized I actually started without the -d flag:

docker run -p 8080:8080 -t conductor:server

When you run without -d do you see normal output or the exception I mentioned? And can you get a response from curl http://localhost:8080/api/metadata/workflow?

When I run with -d the container starts but not healthily and I get no response when running curl http://localhost:8080/api/metadata/workflow. If I build the container with the fix in this PR I can see a healthy start without starting as a daemon, and I can run that curl and get the workflow definition back.

@apanicker-nflx apanicker-nflx added the type: bug bugs/ bug fixes label Apr 7, 2022
@apanicker-nflx apanicker-nflx changed the title chore: Disable ES in local docker config Disable ES in local docker config Apr 7, 2022
@apanicker-nflx apanicker-nflx merged commit 2a68ef1 into Netflix:main Apr 7, 2022
@NickTomlin NickTomlin deleted the ntomlin/docker branch April 9, 2022 20:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug bugs/ bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants