Shared object "libldap-2.4.so.2" not found
-
Fresh install of 2.2.1-x64, Squid3, SquidGuard, Lightsquid, Sarg.
Saw this error in /var/squid/logs/cache.log:
WARNING: redirector #Hlpr0 exited
Shared object "libldap-2.4.so.2" not found, required by "SquidGuard" -
Hi,
I saw this message also in /var/squid/logs/cache.log. I guess there is a missing softlink.
:(
-
Try rebuilding blacklist db apply save and reboot!
-
Has anyone solved the problem?
Found one solution for me.
After entering the command in pfsense console/usr/local/bin/squidGuard -v
Squid starts until reboot
-
Has anyone solved the problem?
Found one solution for me.
After entering the command in pfsense console/usr/local/bin/squidGuard -v
Squid starts until reboot
Thanks for that info. This has been driving me crazy. I'm a BSD noob. Is there somewhere I can put this command to run at startup?
Does everyone with 2.2.2 see this problem? It doesn't seem like 'everyone' is seeing it. Is it the way I installed?
thanks
-Tracy
-
Is there somewhere I can put this command to run at startup?
I tried put this script:```
#!/bin/shrc_start() {
/usr/local/bin/squidGuard -v
}rc_stop() {
/usr/bin/killall squidGuard
}case $1 in
start)
rc_start
;;
stop)
rc_stop
;;
restart)
rc_stop
rc_start
;;
esacin **/usr/local/etc/rc.d/squidguard.sh** this worked before pfSense 2.2.2
-
Found temporary solution:
upload to pfsense squidguard.sh and setup.sh files
and exec command```
chmod +x setup.sh && ./setup.sh && reboot**squidguard.sh**
#!/bin/sh
rc_start() {
/usr/local/bin/squidGuard -v
}rc_stop() {
/usr/bin/killall squidGuard
}case $1 in
start)
rc_start
;;
stop)
rc_stop
;;
restart)
rc_stop
rc_start
;;
esac**setup.sh**
#!/bin/sh
arch=$(uname -p)
chmod 0755 squidguard.sh
mv squidguard.sh /usr/local/etc/rc.d/squidguard.sh
sed 's/^.*squidGuard</executable>/<rcfile>squidguard.sh</rcfile>
&/' /cf/conf/config.xml > /cf/conf/config.xml.new
mv /cf/conf/config.xml /cf/conf/config.xml.old
mv /cf/conf/config.xml.new /cf/conf/config.xml</rcfile>this will start squidguard.sh on boot
-
I tried this and now I can't connect to my box. I am remote so I can't see what is on the screen and I can't connect via ssh or webui. I will check it and report back when I get home.
Here are my steps.
1. created squidguard.sh and setup.sh in /usr/local/etc/rc.d/ (I'm guessing I shouldn't have done this)
2. executed chmod +x setup.sh && ./setup.sh && reboot
3. Tried connecting to webui and got error "RCFILE at line 1242 cannot occur more than once"
4. Connected via ssh and moved squidguard.sh and setup.sh from /usr/local/etc/rc.d/ to /tmp
5. executed chmod +x setup.sh && ./setup.sh && reboot
6. cant connect via web or ssh. … assuming my config got squished?-Tracy
-
I tried this and now I can't connect to my box. I am remote so I can't see what is on the screen and I can't connect via ssh or webui. I will check it and report back when I get home.
Here are my steps.
1. created squidguard.sh and setup.sh in /usr/local/etc/rc.d/ (I'm guessing I shouldn't have done this)
2. executed chmod +x setup.sh && ./setup.sh && reboot
3. Tried connecting to webui and got error "RCFILE at line 1242 cannot occur more than once"
4. Connected via ssh and moved squidguard.sh and setup.sh from /usr/local/etc/rc.d/ to /tmp
5. executed chmod +x setup.sh && ./setup.sh && reboot
6. cant connect via web or ssh. … assuming my config got squished?-Tracy
setup.sh and squidguard.sh must be not in /usr/local/etc/rc.d/
setup.sh make changes in pfsense config and must be launched only one timeinstead setup.sh you may do manualy next steps:
1. create /usr/local/etc/rc.d/squidguard.sh
2. chmod +x /usr/local/etc/rc.d/squidguard.sh
3. find this text in /cf/conf/config.xml<service><name>squidGuard</name> <executable>squidGuard</executable></service>
and add line <rcfile>squidguard.sh</rcfile> like this
<service><name>squidGuard</name> <rcfile>squidguard.sh</rcfile> <executable>squidGuard</executable></service>
4. reboot
6. cant connect via web or ssh. … assuming my config got squished?
multiple execution of setup.sh duplicated line <rcfile>squidguard.sh</rcfile> in you config.xml file
P.S.
some backups of you config.xml you can find in /cf/conf/backup -
I was able to get back to a good state by restoring a backup config.xml from /cf/conf/backup.
After that I created setup.sh and squidguard.sh in /temp and executed setup. It looks like it worked like a champ this time. I rebooted and squiq/squidguard started up as expected.
Thanks for all your help firstzerg!
-Tracy
-
Try rebuilding blacklist db apply save and reboot!
Hello,
I had the same problem (missing libldap-2.4.so.2) after upgrading squidGuard to 1.4.7 (1.9.14). For me rebuilding the blacklist database solved the problem.
Thank you!
Gabor -
Try rebuilding blacklist db apply save and reboot!
Hello,
I had the same problem (missing libldap-2.4.so.2) after upgrading squidGuard to 1.4.7 (1.9.14). For me rebuilding the blacklist database solved the problem.
Thank you!
GaborRebuilding the DB worked for me too, don;t know if it will survive a reboot but it got back up to running.
-
Not working here; I can rebuild the DB and squid/squidguard start. After a reboot they don't .
-
This can be worked around by creating and enabling at least one custom target category. For some reason if you're using downloaded blacklists only the required file/folder isn't created and at boot Squidguard fails to start filling the squid logs in cache.log with this error.
We had to do some testing on this during the week for a customer and I was seeing this exact symptom. Jim found this workaround.
This happens on both Squid 2.7 and 3.Steve
-
This can be worked around by creating and enabling at least one custom target category.
Really working (after reboot too) after creating at custom target category!
Thanks. -
This can be worked around by creating and enabling at least one custom target category. …
Yes, it fixed same error for me, thanks.
-
First post and using pfsense now for a year but at a dead end trying to find a solution for not getting squidguard to work on my Pfsense box (2.2.2 64bit).
The following shows up in cache.log:2015/05/07 20:57:40 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1…Shared object "libdb41.so.1" not found, required by "squidGuard"
Shared object "libdb41.so.1" not found, required by "squidGuard"
Shared object "libdb41.so.1" not found, required by "squidGuard"
Shared object "libdb41.so.1" not found, required by "squidGuard"
Shared object "libdb41.so.1" not found, required by "squidGuard"
Shared object "libdb41.so.1" not found, required by "squidGuard"
Shared object "libdb41.so.1" not found, required by "squidGuard"
Shared object "libdb41.so.1" not found, required by "squidGuard"
2015/05/07 20:57:40 kid1| WARNING: redirector #Hlpr0 exited
FATAL: The redirector helpers are crashing too rapidly, need help!
Squid Cache (Version 3.4.10): Terminated abnormally.CPU Usage: 0.305 seconds = 0.196 user + 0.110 sys
Maximum Resident Size: 154768 KB
Page faults with physical i/o: 0I already tried to create a custom target category it still doesn’t work. Also reinstalling Squidguard with and without prior de-installing it is not helping.
Not trying to hijack this thread but my cache.log looks very similar to OP’s observation. Thank you all for helping.Jaap
-
You have added the category to the common ACLs and set it to allow/deny?
The system log is full of the squid 'help respawing too fast' errors?Steve
-
Hi Steve,
Thanks for answering. I added a whitelist category set to whitelist and a blacklist category set to deny showing on top of the list according to this article .
Jaap
-
That should do it.
What Squid and Squidguard versions are you running?Steve