Connection Call Failed when trying to execute hastic-analystics in Docker
qianvera opened this issue · 2 comments
qianvera commented
Hello!
I'm trying to install the hastic app in Grafana. I followed the official installation tutorial, but still cannot start hastic in Grafana web. The Grafana web shows cannot access to hastic info, which might be caused by the failed connection between server and Grafana. But I am not sure.
Hastic-analystics, hastic-server and grafana are installed in three Docker containers separately.
- Environment
Ubuntu 18.04 - Grafana v6.7.2
Port: 0.0.0.0:3000->3000/tcp
corpglory-hastic-app-0.3.9 installed in/var/lib/grafana/plugins/
. - Hastic-analystics
docker run -d --name hastic-analytics -p 8002:8002 hastic/analytics
Port: 0.0.0.0:8002->8002/tcp - Hastic-server
docker run -d
--name hastic-server
-p 8000:8000
-e HASTIC_API_KEY=<my api key>
-e ZMQ_CONNECTION_STRING=tcp://127.0.0.1:8002
-v /some/host/path:/var/www/data
hastic/server
Port: 0.0.0.0:8000->8000/tcp - Problem
The Grafana web shows cannot access to panel and hastic info. And when I try to execute hastic-analystics in Docker usingdocker exec -it hastic-analytics python -u bin/server
, it returns faill as shown below.
Do you know how to solve this problem?
Thank you very much!
qianvera commented
When Hastic-analystics, hastic-server and grafana are installed in three Docker containers, ip address should be Gateway ip. ZMQ_CONNECTION_STRING=tcp://172.17.0.1:8002.