Logs not updating on 23.01
-
Logs are not getting logged after update from 22.05 to 23.01
I have a syslog instance running
ps -ax | grep syslogd 85310 - Ss 0:00.10 /usr/sbin/syslogd -s -c -c -l /var/dhcpd/var/run/log - 55116 0 S+ 0:00.00 grep syslogd
if I click settings on the log screen I get a php error:
Crash report begins. Anonymous machine information: amd64 14.0-CURRENT FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256014-9cf2a68c5e5: Thu Feb 2 17:13:21 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/ItAd8BGz/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBS Crash report details: PHP Errors: [06-Feb-2023 17:11:58 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_logs_settings.php:72 Stack trace: #0 {main} thrown in /usr/local/www/status_logs_settings.php on line 72 [06-Feb-2023 17:23:12 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_logs_settings.php:72 Stack trace: #0 {main} thrown in /usr/local/www/status_logs_settings.php on line 72 [06-Feb-2023 18:19:00 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_logs_settings.php:72 Stack trace: #0 {main} thrown in /usr/local/www/status_logs_settings.php on line 72 No FreeBSD crash data found.
-
Would you post the config.xml section
<syslog>
? -
@marcosm
The syslog section of my config.xml is empty:
<syslog></syslog> -
And it shouldn't be as my other firewall has this:
<syslog>
<filterdescriptions>1</filterdescriptions>
<nentries>500</nentries>
<logcompressiontype>bzip2</logcompressiontype>
<format>rfc3164</format>
<rotatecount></rotatecount>
<sourceip>lan</sourceip>
<ipproto>ipv4</ipproto>
<logall></logall>
<logconfigchanges>enabled</logconfigchanges>
</syslog> -
This firewall was a straight upgrade from new install 2.6 -> plus 22.01 -> plus 22.05 -> plus 23.01.
Logs were working up to 22.05
-
Ok, I restored the syslog section from the working firewall to the non workin one and now all is ok.
I wonder why the syslog session was lost during upgrade.
-
Thank you - I submitted a fix for it:
https://redmine.pfsense.org/issues/13942 -
-