This is is still present in Ubuntu 25.10.  If you start with glances -w
you can see the complaint about the missing directory.

$ glances -w
Traceback (most recent call last):
  File "/usr/bin/glances", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3/dist-packages/glances/__init__.py", line 173, in main
    start(config=core.get_config(), args=core.get_args())
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/glances/__init__.py", line 102, in start
    mode = GlancesMode(config=config, args=args)
  File "/usr/lib/python3/dist-packages/glances/webserver.py", line 35, in 
__init__
    self.web = GlancesRestfulApi(config=config, args=args)
               ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/glances/outputs/glances_restful_api.py", 
line 160, in __init__
    self._app.include_router(self._router())
                             ~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/glances/outputs/glances_restful_api.py", 
line 285, in _router
    self._app.mount(self.url_prefix + '/static', 
StaticFiles(directory=self.STATIC_PATH), name="static")
                                                 
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/starlette/staticfiles.py", line 56, in 
__init__
    raise RuntimeError(f"Directory '{directory}' does not exist")
RuntimeError: Directory 
'/usr/lib/python3/dist-packages/glances/outputs/static/public' does not exist

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1966968

Title:
  Glances Web UI shows a blank page on Ubuntu 22.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glances/+bug/1966968/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to