Bug #11932
closedundefined function watchdogd_enabled
0%
Description
Model: SG-4860 (amd64)
Base System: 21.02.2-RELEASE
I observed some of these issues (or others? I dunno I had a bad weekend at this point). I performed a factory reset and continued to see these issues. I patched in a simple (but certainly inaccurate if not flat out wrong) function with this name & this has "resolved" my issues. But since I'm not totally sure what this function is supposed to do I am going to forego sharing my almost definitely broken implementation.
This function appears to be called in:
/etc/inc/service-utils.inc
/etc/inc/syslog.inc
Associated errors:
PHP ERROR: Type: 1, File: /etc/inc/syslog.inc, Line: 222, Message: Uncaught Error: Call to undefined function watchdogd_enabled() in /etc/inc/syslog.inc:222
Stack trace:
#0 /etc/rc.bootup(193): system_syslogd_start()
#1 {main}
thrown @ 2021-05-15 19:30:15
PHP ERROR: Type: 1, File: /etc/inc/service-utils.inc, Line: 275, Message: Uncaught Error: Call to undefined function watchdogd_enabled() in /etc/inc/service-utils.inc:275
Stack trace:
#0 /etc/inc/service-utils.inc(431): get_services()
#1 /usr/local/www/head.inc(657): find_service_by_name('dhcpd')
#2 /usr/local/www/services_dhcp.php(916): include('/usr/local/www/...')
#3 {main}
thrown @ 2021-05-15 19:52:19
Updated by Jim Pingle over 4 years ago
- Status changed from New to Not a Bug
That function is present in pfSense Plus system.inc and if it's missing, it's a sign there is something wrong with your filesystem -- either the file is corrupt, missing contents, or something replaced it with a CE copy and not a Plus copy.
The only way you'll properly recover from that is by reinstalling. Contact TAC and someone can get you a recovery installation image.
Updated by catatonic prime over 4 years ago
Ah, yes, I see it there in the base tar (https://firmware.netgate.com/pkg/pfSense_plus-v21_02_2_amd64-core/All/pfSense-base-21.02.2.txz). I wonder what could have possibly overwritten it? Or perhaps it never correctly unpacked when I upgraded to pfSense+? Also curious why the factory reset didn't reset it... but also... solar flares and its probably not worth an extra thought beyond that.
Thanks for the info. I'll start investigating rebuilding.
Updated by Jim Pingle over 4 years ago
It was in Factory before Plus, it's nothing new. It's been around for years. Filesystem corruption or similar failure is the most likely cause.