berndruecker / flowing-retail

Sample application demonstrating an order fulfillment system decomposed into multiple independant components (e.g. microservices). Showing concrete implementation alternatives using e.g. Java, Spring Boot, Apache Kafka, Camunda, Zeebe, ...
Apache License 2.0
1.32k stars 468 forks source link

docker-compose for zeebe-track does not start fully (mongo error) #23

Closed bmccann36 closed 4 years ago

bmccann36 commented 4 years ago

steps to reproduce navigate to runner/docker-compose/docker-compose-kafka-java-choreography-zeebe-track.yml run docker-compose -f docker-compose-kafka-java-choreography-zeebe-track.yml up

behavior two services don't start because of exceptions docker-compose_zeebe-track_1 exited with code 2 docker-compose_zeebe-simple-monitor_1 exited with code 1

stack trace snippets from zeebe-track

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'zeebeSimpleMonitorApp': Invocation of init method failed; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Query failed with error code 13 and error message 'command find requires authentication' on server mongo:27017; nested exception is com.mongodb.MongoQueryException: Query failed with error code 13 and error message 'command find requires authentication' on server mongo:27017

Caused by: com.mongodb.MongoQueryException: Query failed with error code 13 and error message 'command find requires authentication' on server mongo:2701

stack trace snippets for simple-monitor

2020-01-11 20:46:15.404 INFO 1 --- [l'}-mongo:27017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=mongo:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 2, 2]}, minWireVersion=0, maxWireVersion=8, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=25376579} 2020-01-11 20:46:17.784 INFO 1 --- [ main] i.z.zeebemonitor.ZeebeSimpleMonitorApp : initialize connection 2020-01-11 20:46:17.962 INFO 1 --- [ main] org.mongodb.driver.connection : Opened connection [connectionId{localValue:2, serverValue:2}] to mongo:27017 2020-01-11 20:46:18.073 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'zeebeSimpleMonitorApp': Invocation of init method failed; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Query failed with error code 13 and error message 'command find requires authentication' on server mongo:27017; nested exception is com.mongodb.MongoQueryException: Query failed with error code 13 and error message 'command find requires authentication' on server mongo:27017 2020-01-11 20:46:18.086 INFO 1 --- [ main] org.mongodb.driver.connection : Closed connection [connectionId{localValue:2, serverValue:2}] to mongo:27017 because the pool has been closed. 2020-01-11 20:46:18.110 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2020-01-11 20:46:18.160 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener :

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'zeebeSimpleMonitorApp': Invocation of init method failed; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Query failed with error code 13 and error message 'command find requires authentication' on server mongo:27017; nested exception is com.mongodb.MongoQueryException: Query failed with error code 13 and error message 'command find requires authentication' on server mongo:27017

berndruecker commented 4 years ago

Hey @bmccann36 - I plan to retire zeebe-track, as I replace it with "Process Events Monitoring" capabilities that we will have in Camunda Optimize pretty soon (see recording here https://youtu.be/JptEJZ10Ra4). And the current config is pretty outdated, we moved away from Mongo quite a while back. I hope that does not cause any bigger problems for you?

berndruecker commented 4 years ago

https://github.com/berndruecker/flowing-retail/issues/26