#1104590 glances: Web server mode doesn't work

Package:
glances
Source:
glances
Submitter:
Mihails Simvulidi
Date:
2026-08-09 02:59:01 UTC
Severity:
normal
Tags:
#1104590#5
Date:
2025-05-02 14:06:22 UTC
From:
To:
Dear Maintainer,

I've tried to start Glances web server mode with "glances -w -B 127.0.0.1" but opening http://localhost:61208/ failed with a 404 error because /glances.js is missing. This file is supposed to be generated by the webpack, it seems that this step was skipped in the package build process.

Kind regards,

Mihails

#1104590#10
Date:
2025-09-01 00:22:21 UTC
From:
To:
tags 1104590 wontfix
thanks

Hi!

Unfortunately, in order to comply with the Debian Policy it was necessary
to remove some pre-built files. As a result, the web UI is not available in
the Debian package. For further details, please refer to README.debian
file. [1]

Regards.

[1]:
https://salsa.debian.org/debian/glances/-/blob/master/debian/README.Debian?ref_type=heads

#1104590#17
Date:
2026-07-28 19:49:45 UTC
From:
To:
Hi,

I don't understand, I believe the source files are in the source
packages: I'm pretty sure glances/outputs/static/public/glances.js is
generated using webpack, see file glances/outputs/static/webpackg.config.js

So, I believe the correct solution should be to rebuild those .js files
rather than deleting them.

Building those .js files should probably be as simple as something along
this line:

1. delete the content of the glances/outputs/static/public folder

2. build the webui with webpack (see
https://github.com/nicolargo/glances/issues/2021#issuecomment-2752545679)

Could you investigate please?

#1104590#22
Date:
2026-08-09 02:57:54 UTC
From:
To:
Hello!

El mar, 28 jul 2026 a la(s) 3:01 p.m., Cyrille Bollu (cyrille@bollu.be)
escribió:
You're right, glances.js is generated from that source via webpack. the
problem is building it requires npm install to fetch the whole toolchain
from the internet, and Debian Policy doesn't allow network access during
the build[1]. Most of those build dependencies aren't packaged in Debian
either, so there's no way to build it offline right now.

Regards!

[1]:
https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules