a crash report about intalling service watchdog



  • pfSense 2.4.4-development, 20180827 snapshot. When installing & uninstalling service watchdog package, there is a crash report:

    Crash report begins.  Anonymous machine information:
    
    amd64
    11.2-RELEASE-p2
    FreeBSD 11.2-RELEASE-p2 #93 02c4cf66db5(RELENG_2_4_4): Mon Aug 27 08:40:20 EDT 2018     root@buildbot3:/builder/crossbuild-ce-master/obj/amd64/FWJoMRHc/builder/crossbuild-ce-master/pfSense/tmp/FreeBSD-src/sys/pfSense
    
    Crash report details:
    
    PHP Errors:
    [10-Sep-2018 15:45:50 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Cannot create references to/from string offsets in /usr/local/pkg/servicewatchdog.inc:83
    Stack trace:
    #0 /etc/inc/pkg-utils.inc(768) : eval()'d code(1): servicewatchdog_cron_job()
    #1 /etc/inc/pkg-utils.inc(768): eval()
    #2 /etc/inc/pkg-utils.inc(854): eval_once('servicewatchdog...')
    #3 /etc/rc.packages(74): install_package_xml('Service_Watchdo...')
    #4 {main}
      thrown in /usr/local/pkg/servicewatchdog.inc on line 83
    [10-Sep-2018 15:47:02 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Cannot create references to/from string offsets in /usr/local/pkg/servicewatchdog.inc:83
    Stack trace:
    #0 /etc/inc/pkg-utils.inc(768) : eval()'d code(1): servicewatchdog_cron_job(true)
    #1 /etc/inc/pkg-utils.inc(768): eval()
    #2 /etc/inc/pkg-utils.inc(1036): eval_once('servicewatchdog...')
    #3 /etc/rc.packages(78): delete_package_xml('Service_Watchdo...', 'deinstall')
    #4 {main}
      thrown in /usr/local/pkg/servicewatchdog.inc on line 83
    
    
    No FreeBSD crash data found.
    


  • Try upgrading pfsense first.



  • After update to pfsense 2.4.4 RC , can´t install service watchdog:

    Installing pfSense-pkg-Service_Watchdog...
    Updating pfSense-core repository catalogue...
    pfSense-core repository is up to date.
    Updating pfSense repository catalogue...
    pfSense repository is up to date.
    All repositories are up to date.
    Checking integrity... done (0 conflicting)
    The following 1 package(s) will be affected (of 0 checked):

    New packages to be INSTALLED:
    pfSense-pkg-Service_Watchdog: 1.8.5 [pfSense]

    Number of packages to be installed: 1
    [1/1] Installing pfSense-pkg-Service_Watchdog-1.8.5...
    [1/1] Extracting pfSense-pkg-Service_Watchdog-1.8.5: ......... done
    Saving updated package information...
    done.
    Loading package configuration... done.
    Configuring package components...
    Loading package instructions...
    Custom commands...
    Executing custom_php_install_command()...
    Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/pkg/servicewatchdog.inc:83
    Stack trace:
    #0 /etc/inc/pkg-utils.inc(768) : eval()'d code(1): servicewatchdog_cron_job()
    #1 /etc/inc/pkg-utils.inc(768): eval()
    #2 /etc/inc/pkg-utils.inc(854): eval_once('servicewatchdog...')
    #3 /etc/rc.packages(74): install_package_xml('Service_Watchdo...')
    #4 {main}
    thrown in /usr/local/pkg/servicewatchdog.inc on line 83
    PHP ERROR: Type: 1, File: /usr/local/pkg/servicewatchdog.inc, Line: 83, Message: Uncaught Error: Cannot create references to/from string offsets in /usr/local/pkg/servicewatchdog.inc:83
    Stack trace:
    #0 /etc/inc/pkg-utils.inc(768) : eval()'d code(1): servicewatchdog_cron_job()
    #1 /etc/inc/pkg-utils.inc(768): eval()
    #2 /etc/inc/pkg-utils.inc(854): eval_once('servicewatchdog...')
    #3 /etc/rc.packages(74): install_package_xml('Service_Watchdo...')
    #4 {main}
    thrownpkg-static: POST-INSTALL script failed

    Cleaning up cache... done.
    Success


  • Netgate Administrator

    Which RC version are you running exactly? What versions have you been running?

    I'm not seeing errors on any version I have here installing the watchdog package.

    Steve



  • 2.4.4 RC ... there is no detailed version information


  • Netgate Administrator

    The most recent available I assume?

    What other packages do you have installed?

    Steve



  • I upgraded from 2.4.3 p1 and there is freeradius3, frr , iperf, llpd, pfBlockerNG, RRD_Summary installed.


  • Netgate Administrator

    Ok. Were those errors generated during the upgrade process or when trying to install the package into 2.4.4-rc afterwards?

    Srece



  • Both, first during update, then i decided to uninstall service watchdog, and now i cant install it, because of those errors.


  • Netgate Administrator

    Ok we were able to replicate that:
    https://redmine.pfsense.org/issues/8931

    Steve



  • Thank you, this are great news! Im happy to help you guys to finalize 2.4.4.


  • Rebel Alliance Developer Netgate

    That is fixed now so upgrading to 2.4.4 will also pull in the corrected package. If you see any other errors from the service watchdog, note the full error message here.



  • Thank you, @jimp
    Upgraded to 2.4.4 release, the service watchdog is no problem now.


Log in to reply