502 bad gateway when I have directory bind mounted volume

Hi,
This is the first time installing PMM. I setup PMM using directory bind mounted volume but it didn’t work. Here is what I did. However if I remove the directory bind mounted volumes. It worked successfully. Does anyone know what I did wrong?


$ docker create
-v /u01/prometheus/data:/opt/prometheus/data
-v /u01/consul-data:/opt/consul-data
-v /u01/mysql:/var/lib/mysql
-v /u01/grafana:/var/lib/grafana
–name pmm-data
percona/pmm-server:latest /bin/true
3c3c01a936021646d3a84e239634e044db68d152e79a31a9567d15e00904f7f1
$ docker run -d
-p 80:80
–volumes-from pmm-data
–name pmm-server
–restart always
percona/pmm-server:latest
868800a9f2e8c32fd2cc883847c4a81bafa97e794c1344aeb43b1e2f3ea26e9c
$ curl http://localhost/ping

502 Bad Gateway

502 Bad Gateway


nginx

Hi bplegend
Can you load the Prometheus dashboard at all? if so, please share with us the logs.zip file

If you cannot, can you get the contents from /var/log/nginx.log , then we can troubleshoot what is going on with the proxy web instance.

I’d encourage you also to look through the other logs in /var/log - there might be a clue there.