OPNsense 23.1.3-amd64FreeBSD 13.1-RELEASE-p7OpenSSL 1.1.1t 7 Feb 2023
System --> Settings --> General
Use System Nameservers There are no system nameservers configured. Please do so in System: General setup
root@OPNsense:~ # /usr/local/opnsense/scripts/system/nameservers.php debug[ { "host": "fd00::9a9b:cbff:fe08:3ca0", "gateway": "fe80::9a9b:cbff:fe08:3ca0%igb1", "interface": "wan", "source": "interface" }, { "host": "192.168.178.1", "gateway": "192.168.178.1", "interface": "wan", "source": "interface" }, { "host": "2620:fe::fe", "gateway": null, "interface": null, "source": "config" }, { "host": "9.9.9.9", "gateway": null, "interface": null, "source": "config" }, { "host": "80.241.218.68", "gateway": null, "interface": null, "source": "config" }, { "host": "192.168.178.1", "gateway": null, "interface": null, "source": "config" }, { "host": "194.25.2.132", "gateway": null, "interface": null, "source": "config" }, { "host": "192.168.225.142", "gateway": "10.8.0.1", "interface": "opt2", "source": "config" }, { "host": "2a01:4f8:161:83d1::10ce", "gateway": "2a01:4f8:161:83d1:cccc::1", "interface": "opt2", "source": "config" }, { "host": "fd00::9a9b:cbff:fe08:3ca0", "gateway": null, "interface": null, "source": "config" }]root@OPNsense:~ #
On the surface this looks like a permission issue.Can you open this in your browser?https://x.x.x.x/api/unbound/settings/getNameserversCheers,Franco
Failed to get subsystem status for purpose ObjectgetNameservers:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
I there anything in /tmp/PHP_errors.log file?Cheers,Franco
[27-Mar-2023 16:25:44 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function openvpn_get_active_servers() in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:37Stack trace:#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()#6 {main} thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 37[27-Mar-2023 16:26:15 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function openvpn_get_active_servers() in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:37Stack trace:#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()#6 {main} thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 37
Hmm, that's Home Assistant plugin not having been fixed yet. Can you remove it for now, delete the log file and try again?Thanks,Franco
Can you look in developer tools if it emits a HTTP error in the response? This is totally weird. Also try clearing browser cache or try a different browser (the api/ page needs a login from the GUI first via that other browser).Thanks,Franco
getNameservers:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.