I'm trying to start loki with docker like it described here: https://github.com/grafana/loki/tree/master/production#run-locally-using-docker
Grafana successfully starts on http://localhost:3000/
But after adding the Loki datasource (using http://loki:3100 for the URL field), there is such an error in UI:
Loki: Bad Gateway. 502
There is an error log in docker-compose logs:
grafana_1 | t=2020-03-19T16:39:14+0000 lvl=eror msg="Data proxy error" logger=data-proxy-log userId=1 orgId=1 uname=admin path=/api/datasources/proxy/1/loki/api/v1/label remote_addr=172.27.0.1 referer=http://localhost:3000/datasources/edit/1/?gettingstarted error="http: proxy error: dial tcp 172.27.0.4:3100: connect: connection refused"
My envs:
os: macOS 10.15.3
docker: 19.03.8
docker-compose: 1.25.4
@max-block
Try using grafana/loki:master-89263b0 (from 8 days ago). There appears to be a problem with the latest build.
Yes, now it works with grafana/loki:master-89263b0
Same issue, worked for me , docker + macos
Yes we changed the port for couple of days without updating docker-compose. Now everything is back to normal.
Thanks for reporting.
I am facing this issue.
Yes we changed the port for couple of days without updating docker-compose. Now everything is back to normal.
Thanks for reporting.
This issue is still reproducible for me.
You need to give more details, if you using latest you're most likely having docker network issues or you haven't pull the latest images ?