Not the answer you need?
Register and ask your own question!

502 bad gateway when I have directory bind mounted volume

bplegendbplegend ContributorCurrent User Role Beginner
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
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>

Comments

  • Michael CoburnMichael Coburn Principal Architect, Percona Percona Staff Role
    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.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.