***GOT REQUEST TO UPGRADE***Currently running OPNsense 23.7.12_5 at Tue Jan 30 09:41:44 EST 2024Fetching packages-24.1-amd64.tar: ......................................... doneFetching base-24.1-amd64.txz: .......... doneFetching kernel-24.1-amd64.txz: ..... doneExtracting packages-24.1-amd64.tar... doneExtracting base-24.1-amd64.txz... doneExtracting kernel-24.1-amd64.txz... donePlease reboot.>>> Invoking upgrade script 'squid-plugin.php'Squid web proxy is not active. Not installing replacement plugin.>>> Invoking upgrade script 'unbound-duckdb.py'Traceback (most recent call last): File "/usr/local/opnsense/site-python/duckdb_helper.py", line 65, in __enter__ self.connection = duckdb.connect(database=self._path, read_only=self._read_only)duckdb.IOException: IO Error: Trying to read a database file with version number 39, but we can only read version 51.The database file was created with DuckDB version v0.6.0 or v0.6.1.The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.The storage will be stabilized when version 1.0 releases.For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.See the storage page for more information: https://duckdb.org/internals/storageDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/etc/rc.syshook.d/upgrade/20-unbound-duckdb.py", line 41, in <module> if export_database('/var/unbound/data/unbound.duckdb', '/var/cache/unbound.duckdb', 'unbound', 'unbound'): File "/usr/local/opnsense/site-python/duckdb_helper.py", line 147, in export_database with DbConnection(source, read_only=True) as db: File "/usr/local/opnsense/site-python/duckdb_helper.py", line 75, in __enter__ raise StorageVersionException(str(e))duckdb_helper.StorageVersionException: IO Error: Trying to read a database file with version number 39, but we can only read version 51.The database file was created with DuckDB version v0.6.0 or v0.6.1.The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.The storage will be stabilized when version 1.0 releases.For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.See the storage page for more information: https://duckdb.org/internals/storage>>> Error in upgrade script '20-unbound-duckdb.py'***DONE***
***GOT REQUEST TO UPGRADE***Currently running OPNsense 23.7.12_5 at Thu Feb 1 07:31:55 GMT 2024Fetching packages-24.1-amd64.tar: ................ doneFetching base-24.1-amd64.txz: .... doneFetching kernel-24.1-amd64.txz: ... doneExtracting packages-24.1-amd64.tar... doneExtracting base-24.1-amd64.txz... doneExtracting kernel-24.1-amd64.txz... donePlease reboot.>>> Invoking upgrade script 'squid-plugin.php'Squid web proxy is not active. Not installing replacement plugin.>>> Invoking upgrade script 'unbound-duckdb.py'Abort trap (core dumped)>>> Error in upgrade script '20-unbound-duckdb.py'***DONE***
I had a similar issue with unbound DNS + reporting enabled It was fixed by Reporting: Settings: Reset DNS data.Just reporting it here since it's different from the unsupported DB error message ***GOT REQUEST TO UPGRADE***Currently running OPNsense 23.7.12_5 at Thu Feb 1 07:31:55 GMT 2024Fetching packages-24.1-amd64.tar: ................ doneFetching base-24.1-amd64.txz: .... doneFetching kernel-24.1-amd64.txz: ... doneExtracting packages-24.1-amd64.tar... doneExtracting base-24.1-amd64.txz... doneExtracting kernel-24.1-amd64.txz... donePlease reboot.>>> Invoking upgrade script 'squid-plugin.php'Squid web proxy is not active. Not installing replacement plugin.>>> Invoking upgrade script 'unbound-duckdb.py'Abort trap (core dumped)>>> Error in upgrade script '20-unbound-duckdb.py'***DONE***
You can just drop the database under Reporting: Settings: Reset DNS data.Mind you the choice that the upgrade exits here is deliberate, because it runs into an error condition and requires manual intervention by the user.Cheers,Franco