Open LlorandoLau opened 4 years ago
Did you run gradlew assemble
first? Perhaps the jar does not exist.
No. I just run gradlew.bat. I would have a try now.
Please delete the inline log comments and repost as links to gists - makes the issue easier to read.
Which version of Docker are you using? docker for Windows or Docker toolbox (need to set DOCKER_HOST_IP for toolbox)
The application has been started, but unhealthy. docker ps -a https://gist.github.com/LlorandoLau/d905ba6d232e69073e61fc7e1d9f1d1b
I have copied one of services' log below. It seems there are some problem in kafka. Is it a problem caused by ram limit? Docker machine configuration in my laptop is 4GB and 2CPU. https://gist.github.com/LlorandoLau/f8ef64846aef81bde0d84acbad5a3125
And the log in kafka is below. There are no logs around 04:29, when ftgo-restaurant-service throwed exception. https://gist.github.com/LlorandoLau/3af6bb7055ee6827a3a455b7aecb8853
The version of my docker desktop is 2.2.0.5(43884). It runs on win10.
Strange. Which version of ftgo-application? Up to date master branch?
Also, can you do docker inspect
on the container whose log you sent and attach that as a gist.
Also, I what's the health of the CDC service: curl http://localhost:8099/actuator/health
?
Yes, it's up to date now.
Beneath is the output of docker inspect ftgo-application_ftgo-restaurant-service_1
. There is an error while connecting to 8080: curl: (7) Failed to connect to localhost port 8080: Connection refused
https://gist.github.com/LlorandoLau/74cddfa6b3ae71e2653f43725d7ed84e
The output of curl http://localhost:8099/actuator/health
is:
https://gist.github.com/LlorandoLau/d6c142b7958d48ce9116b61d68841283
"Yes, it's up to date now." implies that it wasn't before. Also, the CDC service looks like it healthy, which means it can connect to Kafka. Run these commands: First,
./gradlew :composeDown
to clean up.
then,
./gradlew assemble :composeUp
Emmm. I used a wrong expression. Since the day before yesterday, when I failed to start it in my laptop, I have removed the whole dir of ftgo-application in my laptop and re-cloned them from github. Last night I checked the version and found it up to date already.
The output of ./gradlew :composeDown
and ./gradlew assemble :composeUp
is below. However, it keeps printing Waiting for cdc-service_1 to become healthy (it's unhealthy)
. It seems like endless.
https://gist.github.com/LlorandoLau/e972534c4ac487190e850d8a991a1310
Great. It is started heathly after many unhealthy printing. And I could visit swagger-ui now. Thanks for your help.
What's more, could you give me some advice on how to Run and Debug with IDE intellij idea? I have read the issue #11 . But the url you gived is gone. I can't visit it now.
So what changed that enabled it to work? Or was it just waiting? Perhaps the docker vm needs to be made larger: more cpu and memory ? What's the current settings?
Please create a separate issue for IDEA. Thanks.
Just waiting. It's strange. The current settings is still 4GB and 2CPU.
Maybe more cpu and memory would make it runs better. According to #41 ,10GB and 4 cpu is better.
When executing ./gradlew :ComposeUp I get following error:
File "docker\api\client.py", line 221, in _retrieve_server_version docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.') [18368] Failed to execute script docker-compose
Task :composeUp FAILED
FAILURE: Build failed with an exception.
Process 'command 'docker-compose'' finished with non-zero exit value -1
Any suggestion how to resolve this?
First of all, Thanks for your excellent book.
I got a problem when run 'docker-compose up -d' on windows, it shows:
It seems that script has used linux path on windows. And I have not modified any configuration files.
Wait for your advice.
Thanks, Llorando Lau