Random crash after squid package update…



  • Crash report begins.  Anonymous machine information:
    
    amd64
    10.1-RELEASE-p15
    FreeBSD 10.1-RELEASE-p15 #0 c5ab052(releng/10.1)-dirty: Sat Jul 25 20:20:58 CDT 2015     root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10
    
    Crash report details:
    
    PHP Errors:
    [22-Oct-2015 20:02:07 Etc/UTC] PHP Parse error:  syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /usr/local/pkg/squid.inc on line 1344
    
    

    Can I ignore this, or what's going on here?


  • Banned

    There's no unexpected end of anything at that line. Perhaps reinstall the package to get a complete file.

    
    $ php -l /usr/local/pkg/squid.inc
    No syntax errors detected in /usr/local/pkg/squid.inc
    
    $ wc -l /usr/local/pkg/squid.inc
        2313 /usr/local/pkg/squid.inc
    
    


  • Reinstalling the package results in another crash report:

    Crash report begins.  Anonymous machine information:
    
    amd64
    10.1-RELEASE-p15
    FreeBSD 10.1-RELEASE-p15 #0 c5ab052(releng/10.1)-dirty: Sat Jul 25 20:20:58 CDT 2015     root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10
    
    Crash report details:
    
    PHP Errors:
    [22-Oct-2015 20:21:17 Etc/UTC] PHP Fatal error:  require_once(): Failed opening required '/usr/local/pkg/squid_reverse.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /usr/local/pkg/squid.inc on line 45
    
    

    Happens only one one of my two systems, and it's just with the recent squid package update.
    Running pfSense 2.2.4


  • Banned

    Your downloads are MISERABLY failing. Not a package issue. Now you are missing another file:

    
    require_once(): Failed opening required '/usr/local/pkg/squid_reverse.inc'
    
    


  • Download progress doesn't show any errors. And no matter how often i reinstall: same thing. Doesn't happen with other packages. Never happened with squid before the current release, either :(


  • Banned

    All I can recommend is using latest 2.2.5 snapshots; that will make install consistently fail at least when downloading the required files fails. You need to debug your broken downloads elsewhere. This has nothing to do with the Squid package.



  • Completely uninstalling, and then reinstalling seems to have worked. However just reinstalling the package kept failing consistently. Go figure…


  • Banned

    Removing the old version before upgrade is recommended anyway due to other issues with the package manager. (There are no longer any individual file downloads with pfSense 2.3…)



  • @doktornotor:

    Removing the old version before upgrade is recommended anyway due to other issues with the package manager. (There are no longer any individual file downloads with pfSense 2.3…)

    I see, that was news to me, particularly since I was under the impression, that except for a few packages that allow for configuration information to be retained, the moment you delete package (rather than reinstall it), the configuration info gets deleted, too, and the package needs to be reconfigured from scratch.
    I know that's not the case for squid, because it has an explicit check-mark on the settings page that allows for settings to be retained (provided one did select that option).
    So you see, regardless what package, if there's a new version, don't click on reinstall package, but instead first manually delete it, and then manually install it again from scratch?


  • Banned

    The settings definitely do not get deleted with Squid. (And don't get deleted with most other packages either.) And yeah, uninstalling before upgrade is something I've always been doing, for pretty long time. (Among others to avoid the bugs with using cached install code from old versions for new ones.)


Log in to reply