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

    Squid problems in 2.3

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    17 Posts 4 Posters 7.5k 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.
    • M
      maverick_slo
      last edited by

      Hi all!

      I finally upgraded to 2.3 in my production enviroment.

      I have however some problems with Squid.
      I had 2.2.6 and squid package installed and on 2.3 squid can`t start, I cannot remove it, reinstall fails.

      Reinstall:

      
      >>> 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 16 package(s) will be affected (of 0 checked):
      
      New packages to be INSTALLED:
      	pfSense-pkg-squid: 0.4.7 [pfSense]
      	squid_radius_auth: 1.10 [pfSense]
      	squid: 3.5.12 [pfSense]
      	krb5: 1.14 [pfSense]
      	pkgconf: 0.9.12_1 [pfSense]
      	cyrus-sasl: 2.1.26_12 [pfSense]
      	perl5: 5.20.3_8 [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 76 MiB more space.
      [1/16] Installing pkgconf-0.9.12_1...
      [1/16] Extracting pkgconf-0.9.12_1: ....... done
      [2/16] Installing unzoo-4.4_2...
      [2/16] Extracting unzoo-4.4_2: .. done
      [3/16] Installing arc-5.21p...
      [3/16] Extracting arc-5.21p: ...... done
      [4/16] Installing lha-1.14i_6...
      [4/16] Extracting lha-1.14i_6: .. done
      [5/16] Installing arj-3.10.22_4...
      [5/16] Extracting arj-3.10.22_4: .......... done
      [6/16] Installing json-c-0.12_2...
      [6/16] Extracting json-c-0.12_2: .......... done
      [7/16] Installing krb5-1.14...
      [7/16] Extracting krb5-1.14: .......... done
      [8/16] Installing cyrus-sasl-2.1.26_12...
      *** Updated user `cyrus'.
      [8/16] Extracting cyrus-sasl-2.1.26_12: .......... done
      [9/16] Installing perl5-5.20.3_8...
      [9/16] Extracting perl5-5.20.3_8: .......... done
      makewhatis: not found
      makewhatis: not found
      pkg: POST-INSTALL script failed
      [10/16] Installing c-icap-0.3.5_2,2...
      ===> Creating users and/or groups.
      Using existing group 'c_icap'.
      Using existing user 'c_icap'.
      [10/16] Extracting c-icap-0.3.5_2,2: .
      pkg: archive_read_extract(): Can't create '/usr/local/etc/c-icap/c-icap.conf.sample'
      [10/16] Extracting c-icap-0.3.5_2,2... done
      [10/16] Deleting files for c-icap-0.3.5_2,2: .......... done
      >>> Cleaning up cache... done.
      Success
      
      

      Uninstall:

      
      ERROR: Package pfSense-pkg-squid is not installed
      Failed
      
      

      How can I resolve this one?

      Thanks!

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

        I had the same problem, I created a topic, and informed me that my "hardware" was bad, saying that my hard drive could be defective …

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

        and with that, they ignore me completely.

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

          Naaah I managed it to work just fine.

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

            @maverick_slo:

            Naaah I managed it to work just fine.

            how ?

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

              Post your install log here

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

                https://forum.pfsense.org/index.php?topic=104037.msg580107#msg580107

                https://forum.pfsense.org/index.php?topic=104037.msg580419#msg580419

                >>> Installing pfSense-pkg-squid... 
                Checking integrity... done (0 conflicting)
                The following 14 package(s) will be affected (of 0 checked):
                
                New packages to be INSTALLED:
                	pfSense-pkg-squid: 0.4.7 [pfSense]
                	squid_radius_auth: 1.10 [pfSense]
                	squid: 3.5.9_1 [pfSense]
                	krb5: 1.13.2_3 [pfSense]
                	cyrus-sasl: 2.1.26_12 [pfSense]
                	perl5: 5.20.3_8 [pfSense]
                	squidclamav: 6.13 [pfSense]
                	c-icap: 0.3.5_2,2 [pfSense]
                	c-icap-modules: 0.3.2_4 [pfSense]
                	clamav: 0.98.7 [pfSense]
                	unzoo: 4.4_2 [pfSense]
                	arc: 5.21p [pfSense]
                	lha: 1.14i_6 [pfSense]
                	arj: 3.10.22_4 [pfSense]
                
                The process will require 75 MiB more space.
                [1/14] Installing unzoo-4.4_2...
                [1/14] Extracting unzoo-4.4_2: .. done
                [2/14] Installing arc-5.21p...
                [2/14] Extracting arc-5.21p: ...... done
                [3/14] Installing lha-1.14i_6...
                [3/14] Extracting lha-1.14i_6: .. done
                [4/14] Installing arj-3.10.22_4...
                [4/14] Extracting arj-3.10.22_4: .......... done
                [5/14] Installing krb5-1.13.2_3...
                [5/14] Extracting krb5-1.13.2_3: .......... done
                [6/14] Installing cyrus-sasl-2.1.26_12...
                *** Updated user `cyrus'.
                [6/14] Extracting cyrus-sasl-2.1.26_12: .......... done
                [7/14] Installing perl5-5.20.3_8...
                [7/14] Extracting perl5-5.20.3_8: 
                pkg: archive_read_extract(): Can't create '/usr/local/lib/perl5/5.20/AnyDBM_File.pm'
                [7/14] Extracting perl5-5.20.3_8... done
                [7/14] Deleting files for perl5-5.20.3_8: .......... done
                >>> Cleaning up cache... done.
                Success
                
                >>> Installing pfSense-pkg-squid... 
                Checking integrity... done (0 conflicting)
                The following 12 package(s) will be affected (of 0 checked):
                
                New packages to be INSTALLED:
                	pfSense-pkg-squid: 0.4.7 [pfSense]
                	squid_radius_auth: 1.10 [pfSense]
                	squid: 3.5.9_1 [pfSense]
                	krb5: 1.13.2_3 [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_4 [pfSense]
                	clamav: 0.98.7 [pfSense]
                	unzoo: 4.4_2 [pfSense]
                	arc: 5.21p [pfSense]
                	lha: 1.14i_6 [pfSense]
                
                The process will require 26 MiB more space.
                [1/12] Installing unzoo-4.4_2...
                [1/12] Extracting unzoo-4.4_2: .. done
                [2/12] Installing arc-5.21p...
                [2/12] Extracting arc-5.21p: ...... done
                [3/12] Installing lha-1.14i_6...
                [3/12] Extracting lha-1.14i_6: .. done
                [4/12] Installing krb5-1.13.2_3...
                [4/12] Extracting krb5-1.13.2_3: .......... done
                [5/12] Installing cyrus-sasl-2.1.26_12...
                *** Updated user `cyrus'.
                [5/12] Extracting cyrus-sasl-2.1.26_12: .......... done
                [6/12] Installing c-icap-0.3.5_2,2...
                ===> Creating users and/or groups.
                Using existing group 'c_icap'.
                Using existing user 'c_icap'.
                [6/12] Extracting c-icap-0.3.5_2,2: .
                pkg: archive_read_extract(): Can't create '/usr/local/etc/c-icap/c-icap.conf.sample'
                [6/12] Extracting c-icap-0.3.5_2,2... done
                [6/12] Deleting files for c-icap-0.3.5_2,2: .......... done
                >>> Cleaning up cache... done.
                Success
                
                1 Reply Last reply Reply Quote 0
                • M
                  maverick_slo
                  last edited by

                  OK.

                  1. Go to console and

                  
                  pkg remove perl5
                  pkg install perl5
                  
                  
                  rm -rf /usr/local/etc/c-icap
                  rm -rf /usr/local/include/c_icap
                  rm -rf /usr/local/share/c_icap
                  rm -rf /usr/local/lib/c_icap
                  rm -rf /usr/local/etc/c-icap
                  rm -rf /var/log/squid
                  rm -rf /var/squid/
                  

                  Install Squid again and post log here.

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

                    @maverick_slo:

                    OK.

                    1. Go to console and

                    
                    pkg remove perl5
                    pkg install perl5
                    
                    
                    rm -rf /usr/local/etc/c-icap
                    rm -rf /usr/local/include/c_icap
                    rm -rf /usr/local/share/c_icap
                    rm -rf /usr/local/lib/c_icap
                    rm -rf /usr/local/etc/c-icap
                    rm -rf /var/log/squid
                    rm -rf /var/squid/
                    

                    Install Squid again and post log here.

                    yes man,  I did the same things you did, I posted on the forum, so that developers can solve this problem that happens in the update process pfsense 2.2 to 2.3, however no one heard me.

                    but thanks

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

                      And yet you say that your squid is not working?

                      Mine IS working just fine.

                      1. I don`t have "AnyDBM_File.pm" problem so your issue is not identical to mine
                      2. perl5 uninstall in console goes OK, but install gives me "makewhatis: not found" error
                      3. Step to uninstall and reinstall perl from console is CRUCIAL so squid install can move on.
                      4. It will fil again on icap folders, deleted those and install proceeded
                      5. Install finished, gave me a bunch of permission related errors on access.log and var/squid folders
                      6. Uninstalled squid, deleted all folders that were problematic and reinstalled squid.
                      7. Configure it and run it
                      8. Squid is working

                      There is fundamental f**k up in upgrade proccess but nothing that can`t be sorted out.
                      HW failure is BS.

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

                        And BTW:
                        pkg: archive_read_extract(): Can't create '/usr/local/lib/perl5/5.20/AnyDBM_File.pm'

                        this is a permission issue if you ask me.

                        What is output of

                        
                        ls -al /usr/local/ | grep lib
                        ```on your machine?
                        1 Reply Last reply Reply Quote 0
                        • W
                          whitexp
                          last edited by

                          sorry , my english is very bad , my squid is working normally after i did same comands  a few weeks ago .

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

                            Ahhh ok then :)

                            So now we`re 2 people who resolved it on our own :)

                            Maybe my disk is failing too lol

                            Good doctor a comment please?

                            1 Reply Last reply Reply Quote 0
                            • KOMK
                              KOM
                              last edited by

                              I finally upgraded to 2.3 in my production enviroment.

                              It just went beta a few days ago.  You must like to live dangerously  8)

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

                                Sure I am :)
                                What about squid?

                                1 Reply Last reply Reply Quote 0
                                • KOMK
                                  KOM
                                  last edited by

                                  What about squid?

                                  No idea.  I haven't even installed squid under 2.3.  I'm only playing with base functionality at this point.  I wouldn't even think of replacing my existing production install until about a month (at least) after 2.3 release.

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

                                    I have a site with 10 users at work so… Its not a big thing to upgrade and test off hours :)

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

                                      Just to help anyone else if they have the same problem, in addition to deleting the list of directories above and re-installing perl, there is an additional directory which I needed to delete to get squid to install

                                      /usr/local/etc/squid

                                      else you might see this in the installation log.

                                      Make sure you have a backup of the configuration before deleting!

                                      
                                      >>> Installing pfSense-pkg-squid... 
                                      ...
                                      ===> Pre-installation configuration for squid-3.5.12
                                      [12/15] Extracting squid-3.5.12: .........
                                      pkg: cannot rename //usr/local/etc/squid/errors/zh-cn.Y0q7UeHPChFy to //usr/local/etc/squid/errors/zh-cn: Is a directory
                                      [12/15] Extracting squid-3.5.12... done
                                      [12/15] Deleting files for squid-3.5.12: .......... done
                                      >>> Cleaning up cache... done.
                                      Success
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.