Issue when using glances.conf

176 views
Skip to first unread message

Alexandre Alard

unread,
Feb 20, 2023, 9:54:20 AM2/20/23
to Glances Users
Hello,

I have succeeded to installing glances 3.3.1 wiht python 2.7 (on rhel 7.9).

I was stuck before the version with rpm (2.51).

Furthermore, I wanted to use the server/client feature and configure the [serverList].

So I copy the /usr/local/share/doc/glances/glances.conf to /etc/glances/glances.conf and append the [serverList] part.
The modification has been taken into account when I do a "glances --browser" and when I do just "glances" on this VM I've the following error:

Traceback (most recent call last):
File "/usr/local/bin/glances", line 33, in <module>
sys.exit(load_entry_point('Glances==3.3.1', 'console_scripts', 'glances')())
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/__init__.py", line 179, in main
start(config=core.get_config(), args=core.get_args())
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/__init__.py", line 108, in start
mode = GlancesMode(config=config, args=args)
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/standalone.py", line 72, in __init__
self.stats.update()
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/stats.py", line 216, in update
self._plugins[p].update()
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/plugins/glances_plugin.py", line 1114, in wrapper
ret = fct(self, *args, **kw)
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/plugins/glances_plugin.py", line 1131, in wrapper
ret = fct(*args, **kw)
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/plugins/glances_diskio.py", line 91, in update
if not self.is_display(disk):
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/plugins/glances_plugin.py", line 854, in is_display
return self.is_show(value, header=header)
File "/usr/lib/python2.7/site-packages/Glances-3.3.1-py2.7.egg/glances/plugins/glances_plugin.py", line 835, in is_show
j for j in [re.fullmatch(i.lower(), value.lower()) for i in self.get_conf_value('show', header=header)]
AttributeError: 'module' object has no attribute 'fullmatch'

But when a rename the /etc/glances/glances.conf, I'm going back to the default configuration and all is working (except browser part...).

I've tried several things:
- Find the glances.conf used by glances. But I don't find it
- I need to disable "diskio" and "fs" plugin (in the glances.conf") to have a "glances" working. But I need this information, and it's working with the "default" configuration.

Thanks a lot for you help


Reply all
Reply to author
Forward
0 new messages