This has been going on since quite some time. The fix reported is to 'delete all netflow data' which does not sit well with me.
This looks like a reoccurring bug ? Not few posts on this board signal this error happened in the past.
flowd_aggregate.pyflowd aggregate died with message Traceback (most recent call last): File "/usr/local/opnsense/scripts/netflow/flowd_aggregate.py", line 162, in run aggregate_flowd(self.config, do_vacuum) File "/usr/local/opnsense/scripts/netflow/flowd_aggregate.py", line 80, in aggregate_flowd stream_agg_object.add(copy.copy(flow_record)) File "/usr/local/opnsense/scripts/netflow/lib/aggregates/source.py", line 69, in add super(FlowSourceAddrTotals, self).add(flow) File "/usr/local/opnsense/scripts/netflow/lib/aggregates/__init__.py", line 187, in add self._update_cur.execute(self._insert_stmt, flow) sqlite3.DatabaseError: database disk image is malformed
/var/netflow shows no broken files or lock files left behind
work-around with data loss
cd /usr/local/opnsense/scripts/netflow/
./flush_all.sh all
BUG report created https://github.com/opnsense/core/issues/9499