PfSense2.1 Beta1+Squid+SG not working



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



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



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



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



  • @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.


  • Rebel Alliance Developer Netgate

    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.


Log in to reply