Docker latest-full returns a blank web page

72 views
Skip to first unread message

Dean Smith

unread,
Feb 17, 2023, 11:03:21 PM2/17/23
to Glances Users
I have four headless servers running versions of Debian:
  • Raspberry Pi 4B 2GB
  • Raspberry Pi 4B 2GB
  • Intel NUC7CJYHN 16GB
  • Intel NUC8i3BEH 32GB
Each server has the following docker-compose.yml file and a supporting .env file:
version: "3.5"
services:
  glances:
    image: nicolargo/glances:latest-full
    container_name: ${CONTAINER_NAME}
    hostname: ${CONTAINER_NAME}.${HOSTNAME}
    network_mode: host
    privileged: true
    pid: host
    # ports:
    #   - 61208:61208 # web ui
    environment:
      - TZ=America/Edmonton
      - GLANCES_OPT=--webserver --config /glances/conf/glances.conf
influxdb2 --export mqtt
    volumes:
      - ${DIRECTORY_CONF}:/glances/conf
      - /var/run/docker.sock:/var/run/docker.sock:ro
    restart: unless-stopped

Starting the container with docker compose --file /srv/glances/docker-compose.yml up --detach results in a running container, but accessing the server web page at http://[server]:61208/ results in a blank web page with:the following HTML:
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Glances</title>

    <link rel="icon" type="image/x-icon" href="favicon.ico" />
    <script>
      window.__GLANCES__ = {
        'refresh-time': '2'
      }
    </script>
    <script src="glances.js" defer></script>

</head>

<body>
  <div id="app"></div>
</body>
</html>


The following debugging steps have been taken:
$ docker container inspect glances --format='{{range .Mounts}}{{.Type}}:{{.Source}}:{{.Destination}}{{println}}{{ end }}'
bind:/srv/glances/conf:/glances/conf
bind:/var/run/docker.sock:/var/run/docker.sock

$ docker exec -it glances glances --version
Glances v3.3.1.1 with PsUtil v5.9.4
Log file: /tmp/glances-root.log

$ docker exec -it glances cat /tmp/glances-root.log
2023-02-18 03:31:31,761 -- INFO -- Start Glances 3.3.1.1
2023-02-18 03:31:31,761 -- INFO -- CPython 3.10.9 (/usr/bin/python3) and psutil 5.9.4 detected
2023-02-18 03:31:31,777 -- INFO -- Read configuration file '/glances/conf/glances.conf'
2023-02-18 03:31:31,811 -- INFO -- Start GlancesWebServer mode
2023-02-18 03:31:31,869 -- WARNING -- Wifi lib is not compliant with Python 3, Wifi plugin is disabled
2023-02-18 03:31:33,696 -- INFO -- Glances RESTful API Server started on http://0.0.0.0:61208/api/3/
2023-02-18 03:31:33,705 -- INFO -- Glances Web User Interface started on http://0.0.0.0:61208/
2023-02-18 03:32:16,371 -- INFO -- Start Glances 3.3.1.1
2023-02-18 03:32:16,371 -- INFO -- CPython 3.10.9 (/usr/bin/python3) and psutil 5.9.4 detected

Running this without a conf file or with a conf file results in the same result. I've read the documentation, and I've searched the groups and github issues with no significant luck.

What am I missing?

Dean Smith

unread,
Feb 17, 2023, 11:03:58 PM2/17/23
to Glances Users
Wow, the editing work I did on that post and it stripped it all out. Damn.
Reply all
Reply to author
Forward
0 new messages