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

      Wipe out that dir and then try again

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

      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
      • S
        Summer
        last edited by

        Same situation here, I've deleted the directory but reinstallation fails with:

        
        >>> Installing pfSense-pkg-squid... 
        Updating pfSense-core repository catalogue...
        pfSense-core repository is up-to-date.
        Updating pfSense repository catalogue...
        pfSense repository is up-to-date.
        All repositories are up-to-date.
        Checking integrity... done (0 conflicting)
        The following 15 package(s) will be affected (of 0 checked):
        
        New packages to be INSTALLED:
        	pfSense-pkg-squid: 0.4.16_2 [pfSense]
        	squid_radius_auth: 1.10 [pfSense]
        	squid: 3.5.16 [pfSense]
        	krb5: 1.14 [pfSense]
        	pkgconf: 0.9.12_1 [pfSense]
        	cyrus-sasl: 2.1.26_12 [pfSense]
        	squidclamav: 6.13 [pfSense]
        	c-icap: 0.3.5_2,2 [pfSense]
        	c-icap-modules: 0.3.2_5 [pfSense]
        	clamav: 0.99 [pfSense]
        	unzoo: 4.4_2 [pfSense]
        	arc: 5.21p [pfSense]
        	lha: 1.14i_6 [pfSense]
        	arj: 3.10.22_4 [pfSense]
        	json-c: 0.12_2 [pfSense]
        
        The process will require 25 MiB more space.
        [1/15] Installing pkgconf-0.9.12_1...
        [1/15] Extracting pkgconf-0.9.12_1: ....... done
        [2/15] Installing unzoo-4.4_2...
        [2/15] Extracting unzoo-4.4_2: .. done
        [3/15] Installing arc-5.21p...
        [3/15] Extracting arc-5.21p: ...... done
        [4/15] Installing lha-1.14i_6...
        [4/15] Extracting lha-1.14i_6: .. done
        [5/15] Installing arj-3.10.22_4...
        [5/15] Extracting arj-3.10.22_4: .......... done
        [6/15] Installing json-c-0.12_2...
        [6/15] Extracting json-c-0.12_2: .......... done
        [7/15] Installing krb5-1.14...
        [7/15] Extracting krb5-1.14: .......... done
        [8/15] Installing cyrus-sasl-2.1.26_12...
        *** Updated user `cyrus'.
        [8/15] Extracting cyrus-sasl-2.1.26_12: .......... done
        [9/15] Installing c-icap-0.3.5_2,2...
        ===> Creating users and/or groups.
        Using existing group 'c_icap'.
        Using existing user 'c_icap'.
        [9/15] Extracting c-icap-0.3.5_2,2: .......... done
        [10/15] Installing clamav-0.99...
        ===> Creating users and/or groups.
        Using existing group 'clamav'.
        Using existing group 'mail'.
        Using existing user 'clamav'.
        [10/15] Extracting clamav-0.99: .......... done
        [11/15] Installing squid_radius_auth-1.10...
        [11/15] Extracting squid_radius_auth-1.10: .... done
        [12/15] Installing squid-3.5.16...
        ===> Creating users and/or groups.
        Using existing group 'squid'.
        Using existing user 'squid'.
        ===> Pre-installation configuration for squid-3.5.16
        [12/15] Extracting squid-3.5.16: .........
        pkg: cannot rename //usr/local/etc/squid/errors/zh-cn.2VKzkkFcvUET to //usr/local/etc/squid/errors/zh-cn: Is a directory
        [12/15] Extracting squid-3.5.16... done
        [12/15] Deleting files for squid-3.5.16: .......... done
        Failed
        
        1 Reply Last reply Reply Quote 0
        • 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.