Crash Errors (think it is the API)
-
Hi,
Any ideas what the problem is here please ? Router is remote so don't really want to chance rebooting unless necessary.
Crash report begins. Anonymous machine information:amd64
15.0-CURRENT
FreeBSD 15.0-CURRENT #0 plus-RELENG_24_11-n256407-1bbb3194162: Fri Nov 22 05:08:46 UTC 2024 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-24_11-main/obj/amd64/AKWlAIiM/var/jenkins/workspace/pfSense-Plus-snapshots-24_11-main/sources/FreeBSCrash report details:
PHP Errors:
[20-Jan-2025 14:53:02 Etc/UTC] PHP Fatal error: Uncaught Error: Failed opening required 'RESTAPI/Forms/SystemRESTAPISettingsForm.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/www/system_restapi_settings.php:2
Stack trace:
#0 {main}
thrown in /usr/local/www/system_restapi_settings.php on line 2
[20-Jan-2025 14:54:17 Etc/UTC] PHP Fatal error: Uncaught Error: Failed opening required 'RESTAPI/Forms/SystemRESTAPISettingsForm.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/www/system_restapi_settings.php:2
Stack trace:
#0 {main}
thrown in /usr/local/www/system_restapi_settings.php on line 2
[20-Jan-2025 15:13:23 Etc/UTC] PHP Fatal error: Uncaught Error: Failed opening required 'RESTAPI/Forms/SystemRESTAPISettingsForm.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/www/system_restapi_settings.php:2
Stack trace:
#0 {main}
thrown in /usr/local/www/system_restapi_settings.php on line 2
[20-Jan-2025 16:52:36 Etc/UTC] PHP Fatal error: Uncaught Error: Failed opening required 'RESTAPI/Forms/SystemRESTAPISettingsForm.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/www/system_restapi_settings.php:2
Stack trace:
#0 {main}
thrown in /usr/local/www/system_restapi_settings.php on line 2
[20-Jan-2025 17:45:43 Etc/UTC] PHP Fatal error: Uncaught Error: Failed opening required 'RESTAPI/Forms/SystemRESTAPISettingsForm.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/www/system_restapi_settings.php:2
Stack trace:
#0 {main}
thrown in /usr/local/www/system_restapi_settings.php on line 2
[20-Jan-2025 17:47:19 Etc/UTC] PHP Fatal error: Uncaught Error: Failed opening required 'RESTAPI/Forms/SystemRESTAPISettingsForm.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/www/system_restapi_settings.php:2
Stack trace:
#0 {main}
thrown in /usr/local/www/system_restapi_settings.php on line 2
[20-Jan-2025 17:47:21 Etc/UTC] PHP Fatal error: Uncaught Error: Failed opening required 'RESTAPI/Forms/SystemRESTAPISettingsForm.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/www/system_restapi_settings.php:2
Stack trace:
#0 {main}
thrown in /usr/local/www/system_restapi_settings.php on line 2No FreeBSD crash data found.
Cheers for any help Jon
-
Hmm, I assume you have enabled MIM?
And have a captive portal configured?
Were you using that page via the MIM new gui?
-
@stephenw10 I did indeed have MIM enabled as have 3 x instances.
I am opening the GUI via IP address not the MIM but have just disabled MIM anyway and same issue.
No Captive portal enabled.Regards Jon
-
Just trying to access the device? Do you have the captive portal widget on the dashboard?
-
Ah, wait do you have a 3rd party API installed?
usr/local/www/system_restapi_settings.php
is not an expected file. -
No do not have the widget on the Dash either.
I get this message when I load the Dashboard
Netgate pfSense Plus has detected a crash report or programming bug. Click here for more information.
If I go to REST API I get a 50x Error
The web server encountered an error processing this request.
Check the Crash Reporter for details.
and a link to return to dashboard
-
@stephenw10 Just this one which I thought was supported
https://pfrest.org/INSTALL_AND_CONFIG/
It was all working then I updated to 24.11 (to use MIM) and lots of issues
-
Ah, OK. No that is not supported. The introduction of our own API in 24.11 seems to have broken it significantly.
-
@stephenw10 Makes sense , any idea how I go about deleting it please ?
-
The pfrest pkg? I've never used it. Does it show as an installed package in
pkg info
?Can you roll back to a 24.03 ZFS BE, uninstall it there and then upgrade again?
-
@stephenw10 It does not show as installed, I have removed it from the other 2 instances to avoid issues. When I use the command to uninstall on the problem 6100 it says not installed so maybe it just got corrupted.
I know not supported but any clever ideas please ?Am in Dubai will have to wait until in UK to rollback in case of issues.
-
Well if you upgraded recently and are running ZFS you should be able to just reboot back into 24.03 and go from there.
Otherwise if it doesn't show as an installed package you would have to manually remove the files and any settings the pkg install left behind. And that's very hard to recommend!
-
@stephenw10 OK will see what I can do thx for help
-
@JonBigTelly noticed this thread showed up in a github issue and figured i would link to what was mentioned as the fix
-
Hmm, I not aware of any blacklisting there. Could be co-incidental I guess.