Project

General

Profile

Actions

Bug #7771

closed

Statistician stopped working because of an Exception

Added by Jakub Judiny 3 months ago. Updated 2 months ago.

Status:
Closed
Priority:
High
Category:
Development - Core
Target version:
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 #1

Updated by Radko Krkoš 3 months ago

Disabled on mentat-hub and mentat-dev by commenting cron config in /etc/cron.d/mentat-statistician-py.

Actions #2

Updated by Rajmund Hruška 3 months ago

  • Status changed from New to Resolved
  • Assignee set to Rajmund Hruška
  • Target version changed from Backlog to 2.13.2
Actions #3

Updated by Rajmund Hruška 3 months ago

  • Status changed from Resolved to In Review
Actions #4

Updated by Rajmund Hruška 2 months ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF