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

    PFsense and Squid

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    19 Posts 4 Posters 6.3k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Can you show the output of:

      ls -l /usr/local/pkg/squid*
      

      It should look like:

      $ ls -l /usr/local/pkg/squid*
      -rwxr-xr-x  1 root  wheel  50705 May 31 10:49 /usr/local/pkg/squid.inc
      -rw-r--r--  1 root  wheel  13976 May 31 10:49 /usr/local/pkg/squid.xml
      -rwxr-xr-x  1 root  wheel   9454 May 31 10:49 /usr/local/pkg/squid_auth.xml
      -rwxr-xr-x  1 root  wheel  11415 May 31 10:49 /usr/local/pkg/squid_cache.xml
      -rwxr-xr-x  1 root  wheel   6334 May 31 10:49 /usr/local/pkg/squid_nac.xml
      -rwxr-xr-x  1 root  wheel  11716 May 31 10:49 /usr/local/pkg/squid_ng.xml
      -rwxr-xr-x  1 root  wheel   7310 May 31 10:49 /usr/local/pkg/squid_traffic.xml
      -rwxr-xr-x  1 root  wheel   5047 May 31 10:49 /usr/local/pkg/squid_upstream.xml
      -rwxr-xr-x  1 root  wheel   4362 May 31 10:49 /usr/local/pkg/squid_users.xml
      

      squid.inc is the only include file mentioned by those other xml files, so that file must be missing/corrupt for you somehow if that error is showing up.

      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
      • C
        collinsl
        last edited by

        output of requested command:

        ls -l /usr/local/pkg/squid*
        -rwxr-xr-x  1 root  wheel  49147 May 29 14:24 /usr/local/pkg/squid.inc
        -rw-r--r--  1 root  wheel  13976 May 29 14:22 /usr/local/pkg/squid.xml
        -rwxr-xr-x  1 root  wheel   9454 May 29 14:24 /usr/local/pkg/squid_auth.xml
        -rwxr-xr-x  1 root  wheel  11415 May 29 14:24 /usr/local/pkg/squid_cache.xml
        -rwxr-xr-x  1 root  wheel   6334 May 29 14:24 /usr/local/pkg/squid_nac.xml
        -rwxr-xr-x  1 root  wheel  11716 May 29 14:24 /usr/local/pkg/squid_ng.xml
        -rwxr-xr-x  1 root  wheel   7310 May 29 14:24 /usr/local/pkg/squid_traffic.xml
        -rwxr-xr-x  1 root  wheel   5047 May 29 14:24 /usr/local/pkg/squid_upstream.xml
        -rwxr-xr-x  1 root  wheel   4362 May 29 14:24 /usr/local/pkg/squid_users.xml
        
        
        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          That looks fine. As long as squid.inc is there it shouldn't be complaining about any missing files. Yours is a different size than mine but that's because I checked in an unrelated fix to squid.inc for another problem this morning so it's a little bigger now.

          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
          • C
            collinsl
            last edited by

            @jimp:

            That looks fine. As long as squid.inc is there it shouldn't be complaining about any missing files. Yours is a different size than mine but that's because I checked in an unrelated fix to squid.inc for another problem this morning so it's a little bigger now.

            So where does this leave us re a fix?

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

              If it can't be reproduced or diagnosed, it can't be fixed. I don't see any problems anywhere. I've removed it several times and reinstalled it on multiple VMs and I never see those errors. The files are all there, and yet you're seeing an error suggestion it's not actually there.

              Maybe run a FS check:

              fsck -p /
              

              And make sure you don't have a problem there.

              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
              • C
                collinsl
                last edited by

                I will run the check but unless the package installation is corrupting something on varying different hardware platforms (even virtual) then I doubt it will throw anything up.

                1 Reply Last reply Reply Quote 0
                • C
                  collinsl
                  last edited by

                  I just got a write access denied and an unexpected inconsistency message. Will run fsck -f and see what happens

                  1 Reply Last reply Reply Quote 0
                  • C
                    collinsl
                    last edited by

                    I got some unreferenced files. I will reboot and see if the problem is cured.

                    EDIT: I just noticed that the file references were not cleared. How do I clear them?

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

                      We need a good way to trigger a fsck manually. For now the best way is to boot to single user mode and run:

                      fsck -fy /
                      

                      And then reboot again.

                      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
                      • C
                        collinsl
                        last edited by

                        I shut down after the fsck -f attempt mentioned above, and after restarting it did the check itself during startup. It automatically marked the file system clean.

                        I have just looked at the logs and the problem persists. The service still cannot be restarted. I have just attempted to restart the service from the console and it reports that service squid does not exist within rc.d. I am not sure if this is related.

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

                          How did you try to start it by hand?

                          It may not have an rc script if it isn't loading the .inc file properly.

                          Uninstall anything squid related, remove its traces:

                          
                          pkg_delete -f \*squid\*
                          rm /usr/local/pkg/squid*
                          rm -rf /var/squid/
                          
                          

                          And then reinstall squid again, see if it behaves any differently. If you had squidguard installed, or lightsquid, don't reinstall those at first, wait until squid is running.

                          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
                          • C
                            collinsl
                            last edited by

                            EDIT: I started by running "service squid restart" from the console. Just for reference I tried from the web configuratior as well and that didn't work either,

                            I have just removed squid. The uninstaller told me that there was no reference to squid in the rc.d file to remove and that some folders could not be removed as they did not exist.

                            I have just received multiple file not found errors on bootup after a reboot as there is still a file somewhere trying to start squid.

                            1 Reply Last reply Reply Quote 0
                            • W
                              wallabybob
                              last edited by

                              @collinsl:

                              I just got a write access denied and an unexpected inconsistency message. Will run fsck -f and see what happens

                              Maybe your hard drive has developed a bad spot and you have consequently lost a few files. You almost certainly need to reinstall the package to recover the files that have been lost. I believe modern hard drives have spare blocks that can be used to replace bad blocks. I wonder if the drive still has spare blocks. You could try reading the whole drive to see if any errors are reported, e.g. if your hard drive is /dev/ad0 the pfSense shell command

                              dd if=/dev/ad0 of=/dev/null bs=65536

                              will read the whole hard drive.

                              Have you recently had any panics or other restarts not preceded by a shutdown? On my pfSense system I find there are often file system troubles reported after a panic.

                              1 Reply Last reply Reply Quote 0
                              • C
                                collinsl
                                last edited by

                                The hard drive is virtual, within VMWare. The problems are also replicated on a physical disk. Therefore this is not a hardware fault.

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