many problems after upgrading service watchdog
-
I uninstalled it because it was just generating an error every minute. Does someone have a similar experience?
Here the error:
PHP ERROR: Type: 1, File: /usr/local/pkg/servicewatchdog.inc, Line: 91, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/servicewatchdog.inc:91 Stack trace: #0 /usr/local/pkg/servicewatchdog_cron.php(30): servicewatchdog_check_services() #1 {main} thrown @ 2024-08-20 08:41:00
-
@fbrunken What version of pfSense?
-
@SteveITS 24.03-RELEASE (amd64).
Sorry, and I forgot to mention that it has been working just fine till today when I decided to upgrade to a new version via the package manager.
-
Since the watchdog runs every minute, I had a few entries in my log and here is some more logs.
[20-Aug-2024 08:42:00 America/Vancouver] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/servicewatchdog.inc:91 Stack trace: #0 /usr/local/pkg/servicewatchdog_cron.php(30): servicewatchdog_check_services() #1 {main} thrown in /usr/local/pkg/servicewatchdog.inc on line 91 [20-Aug-2024 08:43:00 America/Vancouver] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/servicewatchdog.inc:91 Stack trace: #0 /usr/local/pkg/servicewatchdog_cron.php(30): servicewatchdog_check_services() #1 {main} thrown in /usr/local/pkg/servicewatchdog.inc on line 91 [20-Aug-2024 08:43:13 America/Vancouver] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_servicewatchdog.php:172 Stack trace: #0 {main} thrown in /usr/local/www/services_servicewatchdog.php on line 172
-
@fbrunken said in many problems after upgrading service watchdog:
/usr/local/www/services_servicewatchdog.php
What version number for Service_Watchdog does it show?
I currently have 1.8.7_2, which as far as I know was the latest issued with 24.03. From the errors/lines you are posting, I would have to guess that you have 1.8.7_3 which I would have expected to only show in testing with 24.08 dev snapshots.
Are you running dev builds? Or have your package repository pointing at dev packages?
-
@dennypage said in many problems after upgrading service watchdog:
/usr/local/www/services_servicewatchdog.php
Don't update!
I believe I found the issue. I left the update to the latest development snapshot and was offered version 1.8.7_3 of the watchdog. I am not a developer and this is happening on my live system! So, I need now to figure out how to fix it...
Simply uninstalling and reinstalling did not work. Anyway, this was the problem.
-
@fbrunken Setting to a future branch will detect/install future software. See my sig. You can try to uninstall the package, change branches, and install again. Brute force method is to install 24.03 new then restore your config backup.
-
@SteveITS thanks... It is a live system, so I need to think about how to fix this now...
-
@SteveITS All back to normal. And the fix is really simple. I did a restore of my config and everything was back working again... Thanks again.