Glances Web UI shows a blank page on Ubuntu 22.04

Bug #1966968 reported by prehistoric dog
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
glances (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

kori@hp:~$ lsb_release -rd
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
kori@hp:~$ apt-cache policy glances
glances:
  Installed: 3.2.4.2+dfsg-1
  Candidate: 3.2.4.2+dfsg-1
  Version table:
 *** 3.2.4.2+dfsg-1 500
        500 http://bg.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

After upgrading to Ubuntu 22.04, Glances Web UI shows a blank page (terminal output works as expected).

After originally reporting this at Github (https://github.com/nicolargo/glances/issues/2021), I did some more digging and found out that glances.js returns a 404 error, and traced this to a noticeable difference in installed size between the packages for Ubuntu 21.10 (https://packages.ubuntu.com/impish/glances) and 22.04 (https://packages.ubuntu.com/jammy/glances) - the filelist for the latter does not include the /glances/outputs/static/public directory at all. Copying the public directory and its contents from the older package resolves the problem, and the Web UI works as expected.

I am guessing that a build step was omitted, so I decided to report this here as well.

To Reproduce
Steps to reproduce the behavior:

    1. On Ubuntu 22.04, start Glances with either -s or -w;
    2. Open Glances URL with any browser;
    3. See blank page - HTML source:

<!DOCTYPE html>
<html ng-app="[glancesApp]()">

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

    <link rel="[icon]()" type="[image/x-icon]()" href="[favicon.ico](view-source:https://monitor.tulibu-dibu.com/favicon.ico)" />
    <script type="[text/javascript]()" src="[glances.js](view-source:https://monitor.tulibu-dibu.com/glances.js)"></script>
</head>

<body>
  <glances refresh-time="[8]()"></glances>
</body>
</html>

Desktop (please complete the following information):

    OS: GNU/Linux Ubuntu Server 22.04
    Glances Version: Glances v3.2.4.2 with PsUtil v5.9.0
    Glances logs file

2022-03-22 17:47:54,595 -- INFO -- Start Glances 3.2.4.2
2022-03-22 17:47:54,595 -- INFO -- CPython 3.10.3 (/usr/bin/python3) and psutil 5.9.0 detected
2022-03-22 17:47:54,602 -- INFO -- Read configuration file '/home/kori/.config/glances/glances.conf'
2022-03-22 17:47:54,623 -- INFO -- Start GlancesStandalone mode
2022-03-22 17:47:54,720 -- WARNING -- Missing Python Lib (No module named 'py3nvml'), Nvidia GPU plugin is disabled
2022-03-22 17:47:55,170 -- WARNING -- Sparklines module not found (No module named 'sparklines')
2022-03-22 17:47:55,176 -- WARNING -- Missing Python Lib (No module named 'wifi'), Wifi plugin is disabled
2022-03-22 17:47:55,176 -- WARNING -- Wifi lib is not compliant with Python 3, Wifi plugin is disabled
2022-03-22 17:47:59,782 -- INFO -- Glances stopped (keypressed: CTRL-C)

    Glances test

=====================================================================================================================================================================================================================
Glances 3.2.4.2 (/usr/lib/python3/dist-packages/glances/__init__.py)
Python 3.10.3 (/usr/bin/python3)
PsUtil 5.9.0 (/usr/lib/python3/dist-packages/psutil/__init__.py)
=====================================================================================================================================================================================================================
alert [OK] 0.00003s []
amps [OK] 0.00002s []
cloud [OK] 0.00002s {}
connections [OK] 0.00002s {'LISTEN': 21, 'ESTABLISHED': 2, 'SYN_SENT': 1, 'SYN_RECV': 0, 'initiated': 1, 'terminated': 1, 'nf_conntrack_count': 35.0, 'nf_conntrack_max': 262144.0, 'nf_conntrack_perc
core [OK] 0.00098s {'phys': 2, 'log': 4}
cpu [OK] 0.00002s {'total': 32.0, 'user': 22.3, 'nice': 0.0, 'system': 5.7, 'idle': 56.3, 'iowait': 12.2, 'irq': 0.0, 'softirq': 3.4, 'steal': 0.0, 'guest': 0.0, 'guest_nice': 0.0, 'time_sin
diskio [OK] 0.00002s key=disk_name [{'time_since_update': 1, 'disk_name': 'sda', 'read_count': 0, 'write_count': 0, 'read_bytes': 0, 'write_bytes': 0, 'key': 'disk_name'}, {'time_since_update':
docker [OK] 0.00056s key=name [{'key': 'name', 'name': 'photoprism_photoprism_1', 'Names': ['photoprism_photoprism_1'], 'Id': '1d56de849268c568f33f3fbf872327aaf121e2820d9983e6fce1c3404e747b2e',
folders [OK] 0.00002s []
fs [OK] 0.00002s key=mnt_point [{'device_name': '/dev/sda2', 'fs_type': 'ext4', 'mnt_point': '/', 'size': 104522190848, 'used': 31397896192, 'free': 68317548544, 'percent': 31.5, 'key': 'mn
gpu [OK] 0.00002s []
help [OK] 0.00001s None
ip [OK] 0.00002s {'address': '192.168.1.104', 'mask': '255.255.255.0', 'mask_cidr': 24, 'gateway': '192.168.1.1', 'public_address': '77.76.45.72'}
irq [OK] 0.00002s key=irq_line [{'irq_line': '0_timer', 'irq_rate': 0, 'key': 'irq_line', 'time_since_update': 1}, {'irq_line': '1_i8042', 'irq_rate': 0, 'key': 'irq_line', 'time_since_updat
load [OK] 0.00002s {'min1': 0.09033203125, 'min5': 0.09375, 'min15': 0.1103515625, 'cpucore': 4}
mem [OK] 0.00002s {'total': 7224696832, 'available': 5893705728, 'percent': 18.4, 'used': 1330991104, 'free': 5893705728, 'active': 901234688, 'inactive': 3381723136, 'buffers': 196071424, '
memswap [OK] 0.00002s {'total': 12659453952, 'used': 0, 'free': 12659453952, 'percent': 0.0, 'sin': 0, 'sout': 0, 'time_since_update': 1}
network [OK] 0.00268s key=interface_name [{'interface_name': 'eno1', 'alias': None, 'time_since_update': 3.009073257446289, 'cumulative_rx': 49874710, 'rx': 9371, 'cumulative_tx': 26204753, 'tx'
now [OK] 0.00003s 2022-03-22 17:59:19 EET
percpu [OK] 0.00002s key=cpu_number [{'key': 'cpu_number', 'cpu_number': 0, 'total': 74.4, 'user': 14.9, 'system': 5.0, 'idle': 25.6, 'nice': 0.0, 'iowait': 50.4, 'irq': 0.0, 'softirq': 4.1, 's
ports [OK] 0.00002s [{'host': '', 'port': 0, 'description': '--services--', 'status': 0.002471, 'refresh': 30, 'timeout': 10, 'rtt_warning': None, 'indice': 'port_1'}, {'host': '192.168.1.1',
processcount [OK] 0.00002s {'total': 196, 'running': 1, 'sleeping': 117, 'thread': 458, 'pid_max': 0}
processlist [OK] 0.00005s key=pid [{'name': 'mysqld', 'io_counters': [0, 0, 0, 0, 0], 'memory_info': pmem(rss=279273472, vms=1779277824, shared=23605248, text=10174464, lib=0, data=574152704, dirty=
psutilversion [OK] 0.00002s (5, 9, 0)
quicklook [OK] 0.00002s {'cpu': 32.0, 'percpu': [{'key': 'cpu_number', 'cpu_number': 0, 'total': 74.4, 'user': 14.9, 'system': 5.0, 'idle': 25.6, 'nice': 0.0, 'iowait': 50.4, 'irq': 0.0, 'softirq'
raid [OK] 0.00002s {'md0': {'status': 'active', 'type': 'raid1', 'components': {'sdb1': '0', 'sdc1': '1'}, 'available': '2', 'used': '2', 'config': 'UU'}}
sensors [OK] 0.00005s key=label [{'label': 'radeon 1', 'value': 14, 'warning': 120, 'critical': 120, 'unit': 'C', 'type': 'temperature_core', 'key': 'label'}, {'label': 'k10temp 1', 'value': 11,
smart [N/A]
system [OK] 0.00002s {'os_name': 'Linux', 'hostname': 'hp', 'platform': '64bit', 'linux_distro': 'Ubuntu 22.04', 'os_version': '5.15.0-23-generic', 'hr_name': 'Ubuntu 22.04 64bit'}
uptime [OK] 0.00002s {'seconds': 52830}
wifi [OK] 0.00004s []

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glances (Ubuntu):
status: New → Confirmed
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Thank you to report this bug and make Ubuntu better!

Can you please run apport-collect 1966968 from a terminal in order
to drag relevant systeminfo into this bug so developers can debug a better way

Thank you!

Revision history for this message
prehistoric dog (prehistoricdog) wrote :

Unable to authorize apport-collect to post on my behalf because of Lynx and "No REFERER Header" problem, so attaching file manually.

Revision history for this message
prehistoric dog (prehistoricdog) wrote :

So appears that this affects Debian as well, and stems from this bug and its fix:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990340

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.