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

    Squid service not starting on 1.2.3

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 3 Posters 3.2k 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.
    • R
      rexis
      last edited by

      I have a newly installed 1.2.3 PfSense on an old PC, and squid package is installed.

      Status > Services shows squid is stopped. And it won't start if I click start here.

      On installed package, version information shows:

      Current: Unknown.
      Installed: 2.7.9 pkg v.4.3.1

      When I click on Services > Proxy Server I will get:

      Warning: dir(/usr/pbi/squid-i386/etc/squid/errors/): failed to open dir: No such file or directory in /etc/inc/pfsense-utils.inc on line 1699 Fatal error: Call to a member function on a non-object in /etc/inc/pfsense-utils.inc on line 1700

      Any idea what happened? If possible I would like to stick with 1.2.3

      nix noob

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        1.2.3 packages haven't been maintained in quite some time. There have likely been some changes in Squid's files since then that are PHP 5 dependent. You shouldn't be running 1.2.3 anymore regardless.

        1 Reply Last reply Reply Quote 0
        • R
          rexis
          last edited by

          I noticed that there have been changes on the squid package from time to time, but at least it still works on 1.2.3 just 4 months back!

          If all else failed, I will have to update all my pfsenses to 2.0!

          nix noob

          1 Reply Last reply Reply Quote 0
          • R
            rexis
            last edited by

            Duh… I guess the question now is anyway I can get the previous version of squid package? I feel rather happy with 1.2.3 @_@

            nix noob

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              @rexis:

              I noticed that there have been changes on the squid package from time to time, but at least it still works on 1.2.3 just 4 months back!

              The problem is the package update for pfsense 2.1.

              change on squid.inc file lines 42 to 46 from this:

              if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.0") {
              	define('SQUID_LOCALBASE','/usr/local');
              } else {
              	define('SQUID_LOCALBASE', '/usr/pbi/squid-' . php_uname("m"));
              }
              

              To this:

              $pf_version=substr(trim(file_get_contents("/etc/version")),0,3);
              if ($pf_version > 2.0)
              	define('SQUID_LOCALBASE', '/usr/pbi/squid-' . php_uname("m"));
              else
                define('SQUID_LOCALBASE','/usr/local');
              
              

              Test if it works on your 1.2.3 and feedback.

              @rexis:

              If all else failed, I will have to update all my pfsenses to 2.0!

              Good, pfsense 1.2.3 has security issues reported (freebsd ssh IIRC)

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • R
                rexis
                last edited by

                @marcelloc:

                Test if it works on your 1.2.3 and feedback.

                Tested and,

                Yes it works, Status: Services now shows Squid is running green and I can finally see Proxy server: General settings page now!

                Thanks.

                May I know more details about the security issues?

                nix noob

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