-
I am trying to incorporate sunbird RC in our product. I have just started learning Sunbird RC. I started learning by following the documentation. When I tried to init a project using sudo registry init, It throwed me a error An unexpected error occurred while starting the registry: Command failed with exit code 1: docker compose up -d Error: Command failed with exit code 1: docker compose up -d Hence I started to see the logs of the registry container, with that I have gotten the following as the logs, sunbird-rc-registry-1 | 11:11:58.564 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext:559 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'schemaLoader': Unsatisfied dependency expressed through field 'searchService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'searchService': Unsatisfied dependency expressed through field 'elasticService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticService' defined in class path resource [dev/sunbirdrc/registry/config/GenericConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.sunbirdrc.elastic.IElasticService]: Factory method 'elasticService' threw exception; nested exception is java.lang.RuntimeException: java.net.ConnectException: Timeout connecting to [es/172.19.0.3:9200] I want to resolve this, Please help me with this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks to @tejash-jl , He found the problem fixed my issue. The issue was that PWD env variable isn't set in sudo space. Hence running the following command fixed the installation issue.
|
Beta Was this translation helpful? Give feedback.
Thanks to @tejash-jl , He found the problem fixed my issue.
The issue was that PWD env variable isn't set in sudo space. Hence running the following command fixed the installation issue.
sudo PWD=${PWD} registry init