Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Random crash after squid package update…

    Scheduled Pinned Locked Moved Cache/Proxy
    10 Posts 2 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rcfaR
      rcfa
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        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
        
        
        1 Reply Last reply Reply Quote 0
        • rcfaR
          rcfa
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            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'
            
            
            1 Reply Last reply Reply Quote 0
            • rcfaR
              rcfa
              last edited by

              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 :(

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • rcfaR
                  rcfa
                  last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    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…)

                    1 Reply Last reply Reply Quote 0
                    • rcfaR
                      rcfa
                      last edited by

                      @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?

                      1 Reply Last reply Reply Quote 0
                      • D
                        doktornotor Banned
                        last edited by

                        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.)

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.