OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: My_Network on October 12, 2024, 03:41:03 PM

Title: Problem reinstallaling Zenarmour afer factory reset
Post by: My_Network on October 12, 2024, 03:41:03 PM
Hi everyone,

Just did a factory reset to try and resolve an OSPF issue I was having on my Firewall. Anyway, now i'm having an issue reinstallating my zenarmor plugin. It seems to be complaning abount it's database. I'm running 24.7.6. Hope it can be resolved without having to reinstall the entire os altogether. Iv'e attatched the install log of the installation we're somes errors can be found.

Thank you,

Nick
Title: Re: Problem reinstallaling Zenarmour afer factory reset
Post by: sy on October 12, 2024, 04:43:29 PM
Hi,

It seems that the setting database file is malformed. Zenarmor creates a backup of it before an upgrade. The backup settings.db files are located in /usr/local/zenarmor/userdefined/config/settings.db. Replace the latest one with the malformed DB.

ls -ls /usr/local/zenarmor/userdefined/config/settings.db.*

then rename the latest backup file as settings db with mv command
(mv /usr/local/zenarmor/userdefined/config/settings.db.xxxxxxxxxx /usr/local/zenarmor/userdefined/config/settings.db)


Title: Re: Problem reinstallaling Zenarmour afer factory reset
Post by: My_Network on October 12, 2024, 10:21:52 PM
Hi Sy,

I tried that. Unfortunatly it did not worked. What eventualy worked is uninstalling the entire plugin and the do
"rm -r /usr/local/zenarmor" in shell. Reinstalled and it worked perfectly.

Thanks for your help.

Nick