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

    PfSense2.1 Beta1+Squid+SG not working

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    6 Posts 3 Posters 2.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.
    • L
      l0rd
      last edited by

      Hello pfsense forum,
      I'm using Pfsense as a firewall on my local network, but the problem i'm facing is squid, SG not working, SG status is stopped even if i "Enable" and apply, please look my snapshot below when i tried to add a group acl. the error is  "Warning: Invalid argument supplied for foreach() in /usr/local/www/pkg_edit.php on line 567" the same error is coming when i try to add Target Categories.

      My syslog here

      May 13 17:46:47 	pfSense ntpd_intres[66326]: ntp_intres.request: permission denied
      May 13 12:16:49 	pfSense php: /pkg_edit.php: XML error: Invalid document end at line 82 in /usr/local/pkg/squidguard_dest.xml
      May 13 12:17:14 	pfSense php: /pkg.php: XML error: Invalid document end at line 82 in /usr/local/pkg/squidguard_dest.xml
      May 13 17:47:47 	pfSense ntpd_intres[66326]: ntp_intres.request: permission denied
      May 13 17:48:47 	pfSense ntpd_intres[66326]: ntp_intres.request: permission denied
      May 13 17:49:27 	pfSense php: : The command '/usr/pbi/squid-i386/sbin/squid -k reconfigure' returned exit code '1', the output was 'squid: ERROR: No running copy'
      May 13 17:49:27 	pfSense php: : The command 'umount -f /tmp/squidGuard' returned exit code '1', the output was 'umount: /tmp/squidGuard: not a file system root directory'
      

      Please help me to fix it up.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        Invalid document end at line 82 in /usr/local/pkg/squidguard_dest.xml

        Line 82 is a line where the "Order" field is being defined. It seems that somehow your squidguard_dest.xml ends at line 82, when it should have 189 lines!
        I suggest reinstall the package XML from the list of installed packages (one of the buttons to the right of each package name and description).

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • L
          l0rd
          last edited by

          @phil.davis:

          Invalid document end at line 82 in /usr/local/pkg/squidguard_dest.xml

          Line 82 is a line where the "Order" field is being defined. It seems that somehow your squidguard_dest.xml ends at line 82, when it should have 189 lines!
          I suggest reinstall the package XML from the list of installed packages (one of the buttons to the right of each package name and description).

          Thanks for the reply Phil, but i did try reinstalling XML, but the problem still exists. Is there any other way to resolve it?

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            What is the contents of /usr/local/pkg/squidguard_dest.xml (Diag->Edit File)?
            Does it look anything like the same size and content as the GitHub version?
            https://github.com/pfsense/pfsense-packages/blob/master/config/squidGuard/squidguard_dest.xml
            Because the error you are getting really looks like the file just ends prematurely.
            You could go to this GitHub link, click the "Raw" button, copy all the text of the file, paste it into Diag->Edit File and save it to your system. But that seems a bit extreme, and what other SquidGuard files also having missing bits? and why did it happen? These are mysteries.
            Perhaps a reinstall package will put it back better? Now I am clutching at straws.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • L
              l0rd
              last edited by

              @phil.davis:

              What is the contents of /usr/local/pkg/squidguard_dest.xml (Diag->Edit File)?
              Does it look anything like the same size and content as the GitHub version?
              https://github.com/pfsense/pfsense-packages/blob/master/config/squidGuard/squidguard_dest.xml
              Because the error you are getting really looks like the file just ends prematurely.
              You could go to this GitHub link, click the "Raw" button, copy all the text of the file, paste it into Diag->Edit File and save it to your system. But that seems a bit extreme, and what other SquidGuard files also having missing bits? and why did it happen? These are mysteries.
              Perhaps a reinstall package will put it back better? Now I am clutching at straws.

              Thanks, the problem is resolved but Warning: Invalid argument supplied for foreach() in /usr/local/www/pkg_edit.php on line 567 still exists.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                I found the problem there, fix is coming in the next few minutes, when you see a new version of the squidGuard package, upgrade it.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

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