Actions
Bug #7771
closedStatistician stopped working because of an Exception
Start date:
08/19/2024
Due date:
% Done:
0%
Estimated time:
To be discussed:
No
Description
The following Exception occurs every time the statistician script is called, both on dev and production server.
Traceback (most recent call last): File "/var/mentat/venv/bin/mentat-statistician.py", line 51, in <module> MentatStatisticianScript().run() File "/var/mentat/venv/lib/python3.11/site-packages/pyzenkit/baseapp.py", line 1559, in run self._stage_process() File "/var/mentat/venv/lib/python3.11/site-packages/pyzenkit/baseapp.py", line 1472, in _stage_process self._sub_stage_process() File "/var/mentat/venv/lib/python3.11/site-packages/pyzenkit/zenscript.py", line 353, in _sub_stage_process self.execute_script_command(cmdname) File "/var/mentat/venv/lib/python3.11/site-packages/pyzenkit/zenscript.py", line 410, in execute_script_command self.runlog[command_name] = cbk() # pylint: disable=locally-disabled,not-callable ^^^^^ File "/var/mentat/venv/lib/python3.11/site-packages/mentat/module/statistician.py", line 170, in cbk_command_calculate self._generate_charts(time_high) File "/var/mentat/venv/lib/python3.11/site-packages/mentat/module/statistician.py", line 247, in _generate_charts result = self.stats_rrd.generate(utstamp) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/mentat/venv/lib/python3.11/site-packages/mentat/stats/rrd.py", line 715, in generate chartlist = self.lookup(flt_type) ^^^^^^^^^^^^^^^^^^^^^ File "/var/mentat/venv/lib/python3.11/site-packages/mentat/stats/rrd.py", line 696, in lookup counter = self._rrd_configure_args(rrd, rrd_args, counter, maxstrlength) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/mentat/venv/lib/python3.11/site-packages/mentat/stats/rrd.py", line 798, in _rrd_configure_args color = self._color_for_ds(rrd[1], rrd[2]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/mentat/venv/lib/python3.11/site-packages/mentat/stats/rrd.py", line 751, in _color_for_ds color_hex = COLOR_PALETTE[COLORS_OPT[self.colors_ptr[ds_type]]] ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: tuple index out of range
Actions