OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: greeone on March 20, 2023, 02:03:07 AM

Title: 23.1 flowd_aggregate.py crash DatabaseError: database disk image is malformed
Post by: greeone on March 20, 2023, 02:03:07 AM

flowd_aggregate.py flowd aggregate died with message Traceback (most recent call last): File "/usr/local/opnsense/scripts/netflow/flowd_aggregate.py", line 160, in run aggregate_flowd(self.config, do_vacuum) File "/usr/local/opnsense/scripts/netflow/flowd_aggregate.py", line 86, in aggregate_flowd stream_agg_object.cleanup(do_vacuum) File "/usr/local/opnsense/scripts/netflow/lib/aggregates/__init__.py", line 208, in cleanup self._update_cur.execute('delete from timeserie where mtime < :expire', {'expire': expire_timestamp}) sqlite3.DatabaseError: database disk image is malformed


Restarting the service causes the same fail. Anyone knows how to fix or reset the DB

OPNsense 23.1.3_4-amd64
FreeBSD 13.1-RELEASE-p7
OpenSSL 1.1.1t 7 Feb 2023
Title: Re: 23.1 flowd_aggregate.py crash DatabaseError: database disk image is malformed
Post by: Fright on March 20, 2023, 05:38:54 PM
Reporting: Settings -> Reset Neflow Data
Title: Re: 23.1 flowd_aggregate.py crash DatabaseError: database disk image is malformed
Post by: greeone on March 21, 2023, 12:54:46 AM
 8) Much appreciated, worked like a charm.
Quote from: Fright on March 20, 2023, 05:38:54 PM
Reporting: Settings -> Reset Neflow Data