You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On Glances 4.0.4 start-up, and the following error is logged: ERROR -- Can not init battery class ([WinError 3] The system cannot find the path specified: '/sys/class/power_supply')
even though the containers plugin is disabled.
Glances continues to run without issue so low priority issue. It just seems odd that with the sensors plugin disabled, it is obviously still trying to load something?
To Reproduce
Steps to reproduce the behavior:
Start Glances with the following options glances -w --fs-free-space --enable-process-extended --config %APPDATA%\glances\glances.conf
glances.conf contains:
[sensors]
disable=True
The error is logged on start-up only.
2024-05-16 13:54:16,477 -- WARNING -- PsUtil can not grab processes gids ('Process' object has no attribute 'gids')
2024-05-16 13:54:16,477 -- INFO -- Start Glances 4.0.4
2024-05-16 13:54:16,493 -- INFO -- CPython 3.12.3 (C:\Python312\python.exe) and psutil 5.9.8 detected
2024-05-16 13:54:16,524 -- INFO -- Read configuration file 'C:\Users\Administrator\AppData\Roaming\glances\glances.conf'
2024-05-16 13:54:19,146 -- INFO -- Start GlancesWebServer mode
2024-05-16 13:54:20,292 -- ERROR -- containers (Docker) plugin - Can't connect to Docker (Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.'))
2024-05-16 13:54:20,481 -- ERROR -- Can not init battery class ([WinError 3] The system cannot find the path specified: '/sys/class/power_supply')
2024-05-16 13:54:24,329 -- INFO -- Glances RESTful API Server started on http://0.0.0.0:61208/api/4
2024-05-16 13:54:24,329 -- INFO -- Get WebUI in C:\Python312\Lib\site-packages\glances\outputs\static/public
2024-05-16 13:54:24,329 -- INFO -- Glances Web User Interface started on http://0.0.0.0:61208/
Expected behavior
no sensors code loading and therefore no error logged
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information)
Operating System (lsb_release -a or OS name/version): Windows Server 2016
The text was updated successfully, but these errors were encountered:
AnthonyBe
changed the title
4.0.4 - On Glances startup "ERROR -- Can not init battery class ([WinError 3]"
4.0.4 - On Glances startup "ERROR -- Can not init battery class ([WinError 3]" even though sensors plugin disabled
May 16, 2024
Describe the bug
On Glances 4.0.4 start-up, and the following error is logged:
ERROR -- Can not init battery class ([WinError 3] The system cannot find the path specified: '/sys/class/power_supply')
even though the containers plugin is disabled.
Glances continues to run without issue so low priority issue. It just seems odd that with the sensors plugin disabled, it is obviously still trying to load something?
To Reproduce
Steps to reproduce the behavior:
glances -w --fs-free-space --enable-process-extended --config %APPDATA%\glances\glances.conf
Expected behavior
no sensors code loading and therefore no error logged
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information)
Windows Server 2016
Glances version: 4.0.4, PsUtil version: 5.9.8
Pypi package
Additional context
n/a
You can also pastebin:
the Glances configuration file
glances.conf.txt
the Glances log file (https://glances.readthedocs.io/en/latest/config.html#logging)
glances-Administrator.log
The text was updated successfully, but these errors were encountered: