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

    2.3 - Squid reinstallation fails

    Scheduled Pinned Locked Moved Cache/Proxy
    14 Posts 11 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

      You deleted all of /usr/local/etc/squid/? Or just the one mentioned in the error? Make sure /usr/local/etc/squid does not exist at all (even if it appears to be empty, rm -rf it)

      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
      • P
        powerrc
        last edited by

        I have the same issue when I try to reinstall squid after upgrading to 2.3.
        It's due to some glitch of installing bash , that trying to recover error translate files by "rename"

        A quick fix will be ,running this command in shell
        #mv /usr/local/etc/squid/errors /home/

        then try to reninstall again.

        @xoxys:

        Hi,
        after upgrade pfsense to 2.3 the reinstallation of squid failse. Log says:

        
        ===> Pre-installation configuration for squid-3.5.16
        [10/13] Extracting squid-3.5.16: .........
        pkg: cannot rename //usr/local/etc/squid/errors/zh-cn.nnKSxUSZZMU2 to //usr/local/etc/squid/errors/zh-cn: Is a directory
        [10/13] Extracting squid-3.5.16... done
        [10/13] Deleting files for squid-3.5.16: .......... done
        Failed
        
        

        Any idea?

        Thanks for your help

        ? 1 Reply Last reply Reply Quote 0
        • S
          Summer
          last edited by

          I've deleted the directory with  rm -rf, removed also all symlinks to squid, but still get the problem that says:

           pkg: cannot rename //usr/local/etc/squid/errors/zh-cn.YTBGi97hRFBr to //usr/local/etc/squid/errors/zh-cn: Is a directory
          

          bur is the  "//" correct at the start of the path?

          1 Reply Last reply Reply Quote 0
          • S
            saxonbeta
            last edited by

            I just removed /usr/local/etc/squid/errors/ and I did can install it

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

              I removed the entire /usr/local/etc/squid directory and still the old config keeps coming back after a uninstall/install (not reinstall).
              Baffling…I made sure I unticked the option for keeping config during reinstall etc..
              Squid+SquidGuard was working fine before 2.3 upgrade and now even after a good install (same config restored out of thin air by the system) nothing get blocked.
              Any other file I should remove to get rid of the config or do I have to reboot?

              1 Reply Last reply Reply Quote 0
              • T
                tester_02
                last edited by

                I just accepted that there will be no vnstat type monitoring and decided to try out 2.3.  Same issue as everyone else with squid.
                Ended up restoring from the backup vm files, and back up with 2.2.6. until I found this thread.
                I'll try 2.3 again when I see the issues are fixed.

                is the deleting the folder solving everyone's problem???

                1 Reply Last reply Reply Quote 0
                • T
                  tester_02
                  last edited by

                  anyone found a good solution yet?

                  1 Reply Last reply Reply Quote 0
                  • M
                    melik2k3
                    last edited by

                    this

                    rm -rf /usr/local/etc/squid/

                    1 Reply Last reply Reply Quote 0
                    • I
                      ipfftw
                      last edited by

                      rm -rf /usr/local/etc/squid/

                      worked for me to clear this error and squid now has a checkmark beside it.

                      sigh scratch that, squid does not start still. I get "UFSSwapDir::openLog: Failed to open swap log" which leads me to here

                      https://forum.pfsense.org/index.php?topic=109128.0

                      which leads me to here:

                      https://forum.pfsense.org/index.php?topic=105399.0

                      down the rabbit hole i go!

                      looks like the 2.3 update isn't quite ready for production yet!

                      EDIT2:

                      I think i got squid running now with these commands from the console:

                      cd /var/squid

                      chown -R squid cache/

                      as per https://forum.pfsense.org/index.php?topic=110119.msg613297#msg613297

                      some other services dont start, clamav, pfblocker, but im going to try and reinstall them.

                      Edit 3:
                      ok clamd, c-icap are no longer in available packages or installed packages, yet under service status they do still exist. have to come back to this later i think.

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @powerrc
                        last edited by

                        @powerrc
                        This worked for me.
                        Thank you very much.

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