Dear Ceri,
I’ve just upgraded my PMM-server up to 1.8.1 from 1.7 but I’ve got the same issue.
Firstly, I did follow as the link you give me, the issue appeared. Then I execute the command you instruct me:
docker run -it --entrypoint /bin/bash -d -p 80:80 --volumes-from pmm-data --name pmm-server --restart always percona/pmm-server:1.8.0 It’s running like this :
[root@bitest ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ebc48b121cc6 percona/pmm-server:latest “/bin/bash” 3 seconds ago Up 2 seconds 0.0.0.0:80->80/tcp, 443/tcp pmm-server
But I could not connect and access from browser.
There are some logs that you need:
[root@bitest ~]# docker logs pmm-server
[root@bitest ~]# docker inspect pmm-server --format ‘{{ .Mounts }}’
Error: No such image or container: --format
Error: No such image or container: {{ .Mounts }}
[
{
“Id”: “ebc48b121cc6e3c64c392bae2ecb1e1a0f60136213707adbace59722619a0d40”,
“Created”: “2018-03-08T04:15:04.290230544Z”,
“Path”: “/bin/bash”,
“Args”: ,
“State”: {
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 1342,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2018-03-08T04:15:05.447259347Z”,
“FinishedAt”: “0001-01-01T00:00:00Z”
},
“Image”: “de562dadc7213847c60cf0cee2336f8520760bce4303046413c8c044fd7b0369”,
“NetworkSettings”: {
“Bridge”: “”,
“EndpointID”: “972fd4b017031eeca7b9ab6f6176b79c5ab1977be9dbc7f3dd4764491021466b”,
“Gateway”: “172.x.x.x”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“HairpinMode”: false,
“IPAddress”: “172.x.x.x”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“MacAddress”: “02:42:ac:11:00:06”,
“NetworkID”: “c2467847c4bcbb5144594edaf1991b3ebc7fb25e5961ba544efad5e435ebf9da”,
“PortMapping”: null,
“Ports”: {
“443/tcp”: null,
“80/tcp”: [
{
“HostIp”: “0.0.0.0”,
“HostPort”: “80”
}
]
},
“SandboxKey”: “/var/run/docker/netns/ebc48b121cc6”,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null
},
“ResolvConfPath”: “/var/lib/docker/containers/ebc48b121cc6e3c64c392bae2ecb1e1a0f60136213707adbace59722619a0d40/resolv.conf”,
“HostnamePath”: “/var/lib/docker/containers/ebc48b121cc6e3c64c392bae2ecb1e1a0f60136213707adbace59722619a0d40/hostname”,
“HostsPath”: “/var/lib/docker/containers/ebc48b121cc6e3c64c392bae2ecb1e1a0f60136213707adbace59722619a0d40/hosts”,
“LogPath”: “/var/lib/docker/containers/ebc48b121cc6e3c64c392bae2ecb1e1a0f60136213707adbace59722619a0d40/ebc48b121cc6e3c64c392bae2ecb1e1a0f60136213707adbace59722619a0d40-json.log”,
“Name”: “/pmm-server”,
“RestartCount”: 0,
“Driver”: “devicemapper”,
“ExecDriver”: “native-0.2”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“Volumes”: {
“/opt/consul-data”: “/var/lib/docker/volumes/9844b01b76d72194fa6c7fa5290f6ae54af6cf1ad054916142f3f619450bdc56/_data”,
“/opt/grafana/data”: “/var/lib/docker/volumes/44530acc1449ba156e4d0cc42123fe32f5568e583e2c126422b2ecad95cb450b/_data”,
“/opt/prometheus/data”: “/var/lib/docker/volumes/8368026b25d99ee6309f79b070489a138cd053a4c0e1efc86f4a9b8a08f471ff/_data”,
“/var/lib/mysql”: “/var/lib/docker/volumes/100bde7e9fe233c121c57a0e96c5110c9de37c25cfbe41520fe80337b0efdfc9/_data”
},
“VolumesRW”: {
“/opt/consul-data”: true,
“/opt/grafana/data”: true,
“/opt/prometheus/data”: true,
“/var/lib/mysql”: true
},
“AppArmorProfile”: “”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: null,
“ContainerIDFile”: “”,
“LxcConf”: ,
“Memory”: 0,
“MemorySwap”: 0,
“CpuShares”: 0,
“CpuPeriod”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“CpuQuota”: 0,
“BlkioWeight”: 0,
“OomKillDisable”: false,
“Privileged”: false,
“PortBindings”: {
“80/tcp”: [
{
“HostIp”: “”,
“HostPort”: “80”
}
]
},
“Links”: null,
“PublishAllPorts”: false,
“Dns”: null,
“DnsSearch”: null,
“ExtraHosts”: null,
“VolumesFrom”: [
“pmm-data”
],
“Devices”: ,
“NetworkMode”: “bridge”,
“IpcMode”: “”,
“PidMode”: “”,
“UTSMode”: “”,
“CapAdd”: null,
“CapDrop”: null,
“RestartPolicy”: {
“Name”: “always”,
“MaximumRetryCount”: 0
},
“SecurityOpt”: null,
“ReadonlyRootfs”: false,
“Ulimits”: null,
“LogConfig”: {
“Type”: “json-file”,
“Config”: {}
},
“CgroupParent”: “”
},
“Config”: {
“Hostname”: “ebc48b121cc6”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“PortSpecs”: null,
“ExposedPorts”: {
“443/tcp”: {},
“80/tcp”: {}
},
“Tty”: true,
“OpenStdin”: true,
“StdinOnce”: false,
“Env”: [
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
],
“Cmd”: null,
“Image”: “percona/pmm-server:latest”,
“Volumes”: null,
“VolumeDriver”: “”,
“WorkingDir”: “/opt”,
“Entrypoint”: [
“/bin/bash”
],
“NetworkDisabled”: false,
“MacAddress”: “”,
“OnBuild”: null,
“Labels”: {
“build-date”: “20180302”,
“license”: “GPLv2”,
“name”: “CentOS Base Image”,
“vendor”: “CentOS”
}
}
}
]
[root@bitest ~]# docker exec -it pmm-server /bin/bash
[root@ebc48b121cc6 opt]# ( /opt/entrypoint.sh >debug.log 2>&1 ) &
[1] 26
[root@ebc48b121cc6 opt]# tail -f debug.log
cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory
Could you help me out ? and Would you please answer my previous questions ?
Thank you for your support !