Evening!
I have done fresh install twice today. After installing and configuring Zenarmor, my Opnsense stops responding and after a minute logon screen is available and after entering credentials I get this:
Fatal error: Uncaught OPNsense\Base\Menu\MenuInitException: Menu xml /usr/local/opnsense/mvc/app/config/../../app/models/OPNsense/Zenarmor/Menu/Menu.xml not valid in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php:70 Stack trace: #0 /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php(136): OPNsense\Base\Menu\MenuSystem->addXML('/usr/local/opns...') #1 /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php(186): OPNsense\Base\Menu\MenuSystem->persist() #2 /usr/local/www/head.inc(17): OPNsense\Base\Menu\MenuSystem->__construct() #3 /usr/local/www/index.php(90): include('/usr/local/www/...') #4 {main} thrown in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php on line 70
Can't we install Zenarmor anymore? Again a fresh install?
Hi,
There is no known issue for this. Is it the same if you restart all OPNsense services via Login menu number 11?
The error indicates that the XML menu file is damaged, but I'm not sure it really is that way in the upstream repository:
/usr/local/opnsense/mvc/app/config/../../app/models/OPNsense/Zenarmor/Menu/Menu.xml
What's in there on your local disk? Empty, garbage, partial XML?
Cheers,
Franco
i have the similar error but was working ok after updating from 23.7.7_2 to _3
but i was having issue with packet drop after enabling zenarmor after turning off "by pass" mode
i went into zenarmor menu and reset back to default.
ever since when i logon to opnsense after a few seconds it returned the error of
Fatal error: Uncaught OPNsense\Base\Menu\MenuInitException: Menu xml /usr/local/opnsense/mvc/app/config/../../app/models/OPNsense/Zenarmor/Menu/Menu.xml not valid in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php:70 Stack trace: #0 /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php(136): OPNsense\Base\Menu\MenuSystem->addXML('/usr/local/opns...') #1 /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php(186): OPNsense\Base\Menu\MenuSystem->persist() #2 /usr/local/www/head.inc(17): OPNsense\Base\Menu\MenuSystem->__construct() #3 /usr/local/www/index.php(90): include('/usr/local/www/...') #4 {main} thrown in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php on line 70
checking
/usr/local/opnsense/mvc/app/config/../../app/models/OPNsense/Zenarmor/Menu/Menu.xml
its an empty file
i've logon via console and went through optoin 11 to restart all services
as well as rebooted the device multiple times, still gives the same error.
Hi,
It could help to look into Zenarmor log files. Can you share a report by following the instructions in the below link.
https://www.zenarmor.com/docs/support/reporting-bug
We will add this patch, but it will not prevent the root cause of empty XML files:
https://github.com/opnsense/core/commit/22f939bb8
Cheers,
Franco