[BUG] docker-compose local setup is broken
See original GitHub issueDescribe the bug Docker compose up does not seem to work both in Ubuntu and MacOS.
$ docker-compose ps | grep -e unhealthy -e Exit
divoc_certificate_api_1 docker-entrypoint.sh npm start Exit 1
divoc_notification-service_1 /app/notification-service ... Exit 2
divoc_vaccination_api_1 /app/divoc-server --scheme ... Up (unhealthy) 0.0.0.0:8000->8000/tcp,:::8000->8000/tcp
Notification service errror
kernel config initializationtime="2021-06-01T08:02:45Z" level=info msg="Starting certificate processor"
Consumer error: Subscribed topic not available: notify: Broker: Unknown topic or partition
Certificate API
Kafka connected to: kafka:9092
Fetching keycloak token
Error: Request failed with status code 404
Vaccination API
kernel config initializationtime="2021-06-01T08:17:54Z" level=info msg="Public key url http://keycloak:8080/auth/realms/divoc"
time="2021-06-01T08:17:54Z" level=info msg="Got response {\"error\":\"Realm does not exist\"}"
time="2021-06-01T08:17:54Z" level=info msg="Using the public key -----BEGIN PUBLIC KEY-----\n\n-----END PUBLIC KEY-----\n"
time="2021-06-01T08:17:54Z" level=info msg="asn1: syntax error: sequence truncated"
time="2021-06-01T08:17:54Z" level=info msg="Connected to kafka on kafka:9092"
time="2021-06-01T08:17:54Z" level=info msg="Using db host=db port=5432 user=postgres password=postgres dbname=postgres sslmode=disable"
time="2021-06-01T08:17:54Z" level=info msg="Consumer error: Subscribed topic not available: certify_ack: Broker: Unknown topic or partition \n"
2021/06/01 08:17:54 Serving divoc at http://[::]:8000
To Reproduce
git clone https://github.com/egovernments/DIVOC
docker-compose up -d
Expected behavior Services not coming up, it keeps failing to talk to Kakfa and throws the above mentioned errors. Tried restarting it multiple times following this, does not help.
Desktop (please complete the following information):
- OS: Ubuntu 20 04
- Browser Chrome
- Version Version 90.0.4430.212 (Official Build) (x86_64)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Debugging a Broken Docker Compose Service Which ...
Here's my favourite: One of your docker-compose services keeps crashing, with an obscure error message which isn't enough to fix the issue.
Read more >How to fix docker-compose installing problem? - Stack Overflow
I'd suggest apt install docker-compose . If you don't want that and above installation instructions don't work, notify their author instead.
Read more >default docker-compose setup is broken after 1.5.4rc3 #1907
Bug description The default docker-compose installation is not working Steps to reproduce Follow the setup instructions on the README.md ...
Read more >How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >Docker container not working - Server - ownCloud Central
Steps to reproduce · Brand new installation of Ubuntu 18.04 · Followed the official instructions on to set up docker and docker-compose ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Been following the complete setup and walkthrough from that doc.
The latest images in docker-compose are not updated and working. Things work not consistently with docker compose release. I will re try and post more details.
This error you can ignore, first time topic wont be there, it will get created after certifying the first certificate