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

Shared object "libldap-2.4.so.2" not found

Scheduled Pinned Locked Moved Cache/Proxy
30 Posts 13 Posters 18.1k 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.
  • T
    tong
    last edited by Apr 27, 2015, 8:45 PM

    @gaborozzo:

    @alxbob:

    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

    Rebuilding the DB worked for me too, don;t know if it will survive a reboot but it got back up to running.

    1 Reply Last reply Reply Quote 0
    • D
      digifant
      last edited by Apr 30, 2015, 6:41 PM

      Not working here;  I can rebuild the DB and squid/squidguard start.  After a reboot they don't .

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by May 2, 2015, 7:43 PM

        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

        1 Reply Last reply Reply Quote 0
        • F
          firstzerg
          last edited by May 4, 2015, 7:16 AM

          @stephenw10:

          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.

          1 Reply Last reply Reply Quote 0
          • A
            alper
            last edited by May 8, 2015, 1:50 PM

            @stephenw10:

            This can be worked around by creating and enabling at least one custom target category. …

            Yes, it fixed same error for me, thanks.

            1 Reply Last reply Reply Quote 0
            • J
              jaapb
              last edited by May 8, 2015, 3:12 PM

              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: 0

              I 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

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by May 8, 2015, 3:16 PM

                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

                1 Reply Last reply Reply Quote 0
                • J
                  jaapb
                  last edited by May 8, 2015, 5:05 PM

                  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

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by May 8, 2015, 8:01 PM

                    That should do it.
                    What Squid and Squidguard versions are you running?

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • J
                      jaapb
                      last edited by May 9, 2015, 3:03 PM

                      @stephenw10:

                      What Squid and Squidguard versions are you running?

                      Hi, Steve

                      Running Squid 3.4.10 pkg 0.2.8 and squidguard 1.4.7. pkg 1.9.14 on 2.2.2 64 bit. Didn't use squidguard devel because pkg manager mentions it is working with squid 2.x only.

                      Jaap

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by May 9, 2015, 5:07 PM

                        Hmm, I installed that same combination on Thursday to a fresh 2.2.2 install and it's running fine. It was 32bit but if anything that's the less well tested branch.
                        I just booted it now and it all comes up fine. Even ClamAV. What hardware are you running it on? Ram? Disk size?

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • J
                          jaapb
                          last edited by May 10, 2015, 4:43 PM

                          @stephenw10:

                          What hardware are you running it on? Ram? Disk size?

                          Steve,

                          Squid by itself runs fine (AV included) as soon as squidguard is installed the drama happens, no internet connection with squid in transparant mode. Squid tries to restart but fails filling the log as posted earlier.
                          My hardware:
                          2 CPUs: 1 package(s) x 2 core(s), Intel(R) Atom(TM) CPU D2500 @ 1.86GHz . 4Gig RAM, 250 Gig HDD.
                          Dual Intel NIC.
                          Thanks,

                          Jaap

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Jun 7, 2015, 2:53 AM

                            Just coming back to this I again installed and see this only when the blacklist isn't loaded.

                            Steve

                            1 Reply Last reply Reply Quote 0
                            • J
                              jaapb
                              last edited by Jun 8, 2015, 6:21 PM

                              Hi Steve,

                              Thanks for still hanging in. There is a blacklist in /var/db/Squidguard I see all the shallalist categories. The only thing is that downloading the shallalist is suspiciously quick but returns no errors. Also tried removing and re-installing squid and squidGuard with Jims's script but keep getting shared object not found error in cache.log
                              Is there a special command to load the list after downloading, or maybe I should switch from transparent to WPAD proxy operation.
                              For now I am keeping an eye on the E2guardian package.
                              Thanks again.

                              Jaap

                              1 Reply Last reply Reply Quote 0
                              • S
                                stephenw10 Netgate Administrator
                                last edited by Jun 11, 2015, 12:28 PM

                                Nope there's no special trick. Once the list has downloaded and the categories are set it should work. You are seeing a different missing object to everyone else though which is odd. Check this video to make sure you are doing it right. It's a bit old but still applies.
                                https://www.youtube.com/watch?v=H-6_13P8pS8&feature=youtu.be
                                The only thing they don't do there is add the custom target which is required currently to prevent having to download the blacklist at each boot.

                                Steve

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jaapb
                                  last edited by Jun 11, 2015, 7:34 PM

                                  Hi Steve,

                                  Just to report I solved my issue. I found my Pfsense setup to contain two /usr/pbi/squidguard directories: /usr/pbi/squidguard-amd64/.. and /usr/pbi/squidguard-squid3-amd64/..
                                  In the squid integrations section the squidGuard –c  command referred to the squidguard-squid3-amd64 directory, while the updates of the blacklist for some reason were handled within the /usr/pbi/squidguard-amd64 realm. Apparently the/usr/pbi/squidguard-squid3-amd64 directory was a remnant of earlier attempts and was never properly cleaned up by a de-installation routine.
                                  Anyway de-installing squidguard, removing /usr/pbi/squidguard-squid3-amd64/.. and /var/db/squidGuard directories, rebooting and installing squidguard devel 1.5 and then running the shalla-list update rendered a system with a running proxy filter.
                                  Although a stubborn issue it very much deepened my knowledge of the system.
                                  Thank you for your support and time.

                                  Jaap

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Jun 14, 2015, 12:39 PM

                                    Thanks for coming back with that. Yeah Squidguard-squid3 is no longer necessary as the current version can run with both Squid 2.7 and 3.
                                    Well spotted.  :)

                                    Steve

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      rocaembole
                                      last edited by Jun 17, 2015, 12:58 PM

                                      @stephenw10:

                                      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

                                      Thank you, we all love you (?)

                                      No Pain
                                      No Gain

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        fgupadmin
                                        last edited by Aug 31, 2015, 11:36 AM

                                        This code may help
                                        https://forum.pfsense.org/index.php?topic=88221.msg550496#msg550496

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                          This community forum collects and processes your personal information.
                                          consent.not_received