Can't start squidGuard
-
I, too, can't get squidguard to start from a reboot without manually downloading the blacklist. Once that is done, it takes off just fine. I did just discover this in my system log from the most recent restart:
Mar 11 07:51:03 php: squidGuard_blacklist_update.sh: The command 'umount -f /tmp/squidGuard' returned exit code '1', the output was 'umount: /tmp/squidGuard: not a file system root directory'
Mar 11 07:51:03 php: squidGuard_blacklist_update.sh: The command '/usr/pbi/squid-amd64/local/sbin/squid -k reconfigure' returned exit code '1', the output was 'Shared object "libmd5.so.0" not found, required by "squid"'
Mar 11 07:48:46 php: squidGuard_blacklist_update.sh: The command 'chmod 1777 /tmp/squidGuard' returned exit code '1', the output was 'chmod: /tmp/squidGuard: No such file or directory'
Mar 11 07:48:46 php: squidGuard_blacklist_update.sh: The command '/sbin/mdmfs -s 300M md15 /tmp/squidGuard' returned exit code '1', the output was 'mdmfs: mount exited with error code 1'
Mar 11 07:46:08 squid[58752]: Squid Parent: (squid-1) process 77849 startedI also experienced high CPU after the system had been running for at least a day, so it makes me wonder if there is something wrong with the configuration of the automatic Blacklist update that is causing the download to be created in the wrong directory.
Thanks for any assistance you can provide.
-
I have the same problem.
Squidguard runs after first installation. Then after the next reboot it wont start.
Additionally, CPU load ist running at 100%.
Only after you donwload the blacklist manually again the service will start.
Thats not the way it should be, right?
I have installed a fresh pfsense VM - the same problem.
Same problem for me … someone report this as a bug ?
-
From what I understand:
New squidGUard does not always run when there is no work for it to do.
'Shared object "libmd5.so.0" not found, required by "squid"' error seems to go away once you have downloaded and compiled the blacklist. -
Rebuilding the DB only lasts till a reboot.
-
I am facing the same problem too.
Is there away to get the blacklist autorebuild & the squidguard will run automatically after a reboot?thanks!
-
I think I found a workaround. I am using amd64 pfsense 2.2.2
-
goto the blacklist configuration tab for squidGuard, click download.
- the system will update & reconfigure the blacklist. -
you shall find a script file at /tmp/squidGuard_blacklist_update.sh
-
copy this sh file to somewhere else, eg. /usr/local/bin/squidGuard_blacklist_update.sh
-
edit the /usr/local/etc/rc.d/squid.sh to include the above script.
therefore, after a reboot, the system would download a fresh blacklist & do the neccessary configuration before start the squid. ;)
tq
-
-
I think I found a workaround. I am using amd64 pfsense 2.2.2
-
goto the blacklist configuration tab for squidGuard, click download.
- the system will update & reconfigure the blacklist. -
you shall find a script file at /tmp/squidGuard_blacklist_update.sh
-
copy this sh file to somewhere else, eg. /usr/local/bin/squidGuard_blacklist_update.sh
-
edit the /usr/local/etc/rc.d/squid.sh to include the above script.
therefore, after a reboot, the system would download a fresh blacklist & do the neccessary configuration before start the squid. ;)
tq
Can you tell me how you managed this? I tried to do this as you say however 2 things are unclear:-
- /usr/local/etc/rc.d/squid.sh appears to be overwritten every reboot which means any changes made are overwritten.
- Where in the script did you place it? I thought this would suffice but cant test due to 1)
rc_start() { if [ -z "`ps auxw | grep "[s]quid -D"|awk '{print $2}'`" ];then /usr/pbi/squid-amd64/sbin/squid -D /usr/local/bin/squidGuard_blacklist_update.sh fi
-
-
I managed to produce a working system by just:
-
goto the blacklist configuration tab for squidGuard, click download.
- the system will update & reconfigure the blacklist. -
you shall find a script file at /tmp/squidGuard_blacklist_update.sh
-
copy this sh file to /usr/local/etc/rc.d/
granted that i did build on kudamuda's work which was spot on. i am rather worried about the initial error though, this hack is only so as to continue moving along with my setup. once i find some time ill look further into the error, from the logs i can tell that it has something to do with squidGuard losing its DB on boot… ;)
-
-
I think I found a workaround. I am using amd64 pfsense 2.2.2
-
goto the blacklist configuration tab for squidGuard, click download.
- the system will update & reconfigure the blacklist. -
you shall find a script file at /tmp/squidGuard_blacklist_update.sh
-
copy this sh file to somewhere else, eg. /usr/local/bin/squidGuard_blacklist_update.sh
-
edit the /usr/local/etc/rc.d/squid.sh to include the above script.
therefore, after a reboot, the system would download a fresh blacklist & do the neccessary configuration before start the squid. ;)
tq
Dear Expert,
I am trying to follow the instructions which need your help.
1- I have Copied the squidGuard_blacklist_update.sh from the path /tmp
But i unable to understand the above steps no 4 can you guide me in detail how i can follow the above step no 4 need your help in detail.thanks in Advance.
Regards,
Noor Uz Zaman -
-
Hi!
I did this:
After downloading a blacklist from shallalist.de , create a target Category (call it as you want) add a least one domain and start Squidguard with the apply button (if it hasn't started yet) According to certain posts regarding to the Squidguar manual, this is a necesary condition to use blacklists and another configurations. In my particular case, I've created a target category called "White_list" on which I've added the sites contained in the default blacklist but that I wish to access anytime (for example, wikipedia.org, wikimedia.org and pfsense.org).after doing this, I can reboot the server, an the SquidGuard service boots automatically after one minute.
Try it and, if it works for you, come back and tell us!
-
Hi!
I did this:
After downloading a blacklist from shallalist.de , create a target Category (call it as you want) add a least one domain and start Squidguard with the apply button (if it hasn't started yet) According to certain posts regarding to the Squidguar manual, this is a necesary condition to use blacklists and another configurations. In my particular case, I've created a target category called "White_list" on which I've added the sites contained in the default blacklist but that I wish to access anytime (for example, wikipedia.org, wikimedia.org and pfsense.org).after doing this, I can reboot the server, an the SquidGuard service boots automatically after one minute.
Try it and, if it works for you, come back and tell us!
Thanx. It really works.
-
You can try the following if you have / had a line similar to this during install (and it's not the lack of blacklist update!):
"Warning: file_put_contents(/usr/pbi/squidguard-amd64/etc/squidGuard/squidguard_conf.xml): failed to open stream: No such file or directory in /usr/local/pkg/squidguard.inc on line 1032"Open the file '/usr/local/pkg/squidguard_configurator.inc'
Find the line:
define('SQUIDGUARD_WORKDIR', SQUIDGUARD_LOCALBASE . '/etc/squidGuard');Change it to:
define('SQUIDGUARD_WORKDIR', SQUIDGUARD_LOCALBASE . '/local/etc/squidGuard');Worked for me!
-
I have tried ismaelnoble's approach. Working for me so far.
-
Did the trick for me to….. this has been driving me mad!!!!
Thanks.
Hi!
I did this:
After downloading a blacklist from shallalist.de , create a target Category (call it as you want) add a least one domain and start Squidguard with the apply button (if it hasn't started yet) According to certain posts regarding to the Squidguar manual, this is a necesary condition to use blacklists and another configurations. In my particular case, I've created a target category called "White_list" on which I've added the sites contained in the default blacklist but that I wish to access anytime (for example, wikipedia.org, wikimedia.org and pfsense.org).after doing this, I can reboot the server, an the SquidGuard service boots automatically after one minute.
Try it and, if it works for you, come back and tell us!