eventuate-tram / eventuate-tram-sagas-examples-customers-and-orders

Spring Boot/JPA microservices that use an orchestration-based saga to maintain data consistency
Other
520 stars 236 forks source link

Waiting for cdc-service_1 to become healthy (it's unhealthy) #62

Open Vishnutha opened 1 year ago

Vishnutha commented 1 year ago

I am getting this error if I try running the application, I tried restarting the application.Please help in installing the application

cer commented 1 year ago

Please provide more information:

  1. Your environment windows/mac?
  2. How much have you allocated to the Docker VM - the default is usually not enough
  3. Which version of this project (e.g. branch, GIT sha) are you running
  4. What's the output of docker ps -a
  5. What's the output of docker logs <container-name> the running containers.
Vishnutha commented 1 year ago

System Environment: Ubuntu 20.04 I am running the master branch of the code.

The output of docker logs ftgo-application_cdc-service_1 : cdc_logs.txt

The output of docker ps -a: Screenshot from 2023-04-12 17-45-33

cer commented 1 year ago

You appear to have some ftgo related containers running. They use the same ports as eventuate-tram-sagas-examples-customers-and-orders and will prevent its containers from starting

cer commented 1 year ago

The output of docker logs ftgo-application_cdc-service_1 : cdc_logs.txt

ftgo-application_cdc-service_1 should be eventuate-tram-sagas-examples-customers-and-orders...

I don't think it can connect to the database:

2023-04-12 11:54:11.758  INFO 1 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2023-04-12 11:54:11.787  WARN 1 --- [           main] com.zaxxer.hikari.util.DriverDataSource  : Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.

The connection pool is starting... but it is not started.

Vishnutha commented 1 year ago

You appear to have some ftgo related containers running. They use the same ports as eventuate-tram-sagas-examples-customers-and-orders and will prevent its containers from starting

So sir, Shall I change the ports in docker_compose.yml , Will that be sufficient or are there any extra steps that I need to follow?

cer commented 1 year ago

You appear to have some ftgo related containers running. They use the same ports as eventuate-tram-sagas-examples-customers-and-orders and will prevent its containers from starting

So sir, Shall I change the ports in docker_compose.yml , Will that be sufficient or are there any extra steps that I need to follow?

You could carefully change the ports. But it would be safer/simpler to shutdown the FTGO application and then startup the other application.