Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose fails to run all checks #44

Open
avb1989 opened this issue Sep 23, 2018 · 3 comments
Open

Docker compose fails to run all checks #44

avb1989 opened this issue Sep 23, 2018 · 3 comments

Comments

@avb1989
Copy link

avb1989 commented Sep 23, 2018

Starting with docker-compose causes all the checks to fail to execute and the dashboard is just completely red (due to failed evaluations).
image

This is because the entities (example) are referring to localhost and these aren't reachable from the worker.

[16:19:39] user@machine:~/zmon/compose$ docker exec -it compose_worker_1 bash
root@9bc16fbd1363:/#
root@9bc16fbd1363:/# curl -k https://localhost:8443/health
curl: (7) Failed to connect to localhost port 8443: Connection refused
root@9bc16fbd1363:/#
root@9bc16fbd1363:/# curl -k https://controller:8443/health
{"timestamp":1537712390748,"status":404,"error":"Not Found","message":"Not Found","path":"/health"}
root@9bc16fbd1363:/# 
root@9bc16fbd1363:/# exit
[16:20:00] user@machine:~/zmon/compose$

I think there are a couple of solutions here :

  1. Duplicate entities for docker compose and use services names instead of localhost (to preserve Vagrant stuff)
  2. Use host networking (might be insecure though)
@avb1989
Copy link
Author

avb1989 commented Sep 24, 2018

I can work on this if it is fine

@Jan-M
Copy link
Member

Jan-M commented Sep 24, 2018

Imho the Vagrant case could be considered obsolete, it was just too cumbersome and failure prone. If docker compose works that sounds like a good thing to achieve.

@avb1989
Copy link
Author

avb1989 commented Sep 24, 2018

I did try to run it locally and it failed at running Virtualbox.
docker-compose on the other hand ran flawlessly except it failed in running the checks 😅 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants