OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: aklee8 on October 19, 2018, 05:02:51 pm

Title: OPNSense 18.7.5 cannot add static DHCP4 lease
Post by: aklee8 on October 19, 2018, 05:02:51 pm
The following error message was encountered on saving a static DHCP static IP address for a client PC:

Fatal error: Uncaught OPNsense\Core\ConfigException: no valid config loaded in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:240 Stack trace: #0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(182): OPNsense\Core\Config->checkvalid() #1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'winsserver') #2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 10) #3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'staticmap') #4 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'lan') #5 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'dhcpd') #6 /usr/local/etc/inc/config.inc(156): OPNsense\Core\ in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 240
Title: Re: OPNSense 18.7.5 cannot add static DHCP4 lease
Post by: marjohn56 on October 19, 2018, 06:26:08 pm
Are you running 18.7.5 or 18.7.5_1 ?







Title: Re: OPNSense 18.7.5 cannot add static DHCP4 lease
Post by: aklee8 on October 19, 2018, 11:39:56 pm
Running 18.7.5.  Other than that, everything is running normally.

The dashboard reported the following PHP error:

[18-Oct-2018 16:27:06 America/Toronto] PHP Fatal error:  Uncaught OPNsense\Core\ConfigException: no valid config loaded in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:240
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(182): OPNsense\Core\Config->checkvalid()
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'winsserver')
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 10)
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'staticmap')
#4 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'lan')
#5 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'dhcpd')
#6 /usr/local/etc/inc/config.inc(156): OPNsense\Core\ in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 240
[18-Oct-2018 16:29:37 America/Toronto] PHP Fatal error:  Uncaught OPNsense\Core\ConfigException: no valid config loaded in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:240
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(182): OPNsense\Core\Config->checkvalid()
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'winsserver')
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 10)
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'staticmap')
#4 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'lan')
#5 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'dhcpd')
#6 /usr/local/etc/inc/config.inc(156): OPNsense\Core\ in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 240
[18-Oct-2018 16:32:50 America/Toronto] PHP Fatal error:  Uncaught OPNsense\Core\ConfigException: no valid config loaded in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:240
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(182): OPNsense\Core\Config->checkvalid()
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'winsserver')
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 10)
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'staticmap')
#4 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'lan')
#5 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'dhcpd')
#6 /usr/local/etc/inc/config.inc(156): OPNsense\Core\ in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 240
[19-Oct-2018 08:17:53 America/Toronto] PHP Fatal error:  Uncaught OPNsense\Core\ConfigException: no valid config loaded in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:240
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(182): OPNsense\Core\Config->checkvalid()
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'winsserver')
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 10)
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'staticmap')
#4 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'lan')
#5 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'dhcpd')
#6 /usr/local/etc/inc/config.inc(156): OPNsense\Core\ in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 240
[19-Oct-2018 08:23:53 America/Toronto] PHP Fatal error:  Uncaught OPNsense\Core\ConfigException: no valid config loaded in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:240
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(182): OPNsense\Core\Config->checkvalid()
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'winsserver')
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 10)
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'staticmap')
#4 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'lan')
#5 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'dhcpd')
#6 /usr/local/etc/inc/config.inc(156): OPNsense\Core\ in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 240
[19-Oct-2018 10:42:51 America/Toronto] PHP Fatal error:  Uncaught OPNsense\Core\ConfigException: no valid config loaded in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:240
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(182): OPNsense\Core\Config->checkvalid()
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'winsserver')
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 10)
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'staticmap')
#4 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'lan')
#5 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'dhcpd')
#6 /usr/local/etc/inc/config.inc(156): OPNsense\Core\ in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 240
[19-Oct-2018 10:58:30 America/Toronto] PHP Fatal error:  Uncaught OPNsense\Core\ConfigException: no valid config loaded in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:240
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(182): OPNsense\Core\Config->checkvalid()
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'winsserver')
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 10)
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'staticmap')
#4 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'lan')
#5 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(221): OPNsense\Core\Config->fromArray(Array, Object(SimpleXMLElement), 'dhcpd')
#6 /usr/local/etc/inc/config.inc(156): OPNsense\Core\ in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 240
Title: Re: OPNSense 18.7.5 cannot add static DHCP4 lease
Post by: tebrown on October 20, 2018, 03:21:45 am
This is a known issue in 18.7.5 and was fixed in 18.7.5_1.  If you upgrade, the issue will go away.
Title: Re: OPNSense 18.7.5 cannot add static DHCP4 lease
Post by: aklee8 on October 20, 2018, 05:27:36 am
Thanks for the quick response.  Indeed it was fixed.