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

    23.01 Squid issue

    Scheduled Pinned Locked Moved Cache/Proxy
    128 Posts 8 Posters 37.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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      If it's not showing as a service or in the menus that means pfSense thinks it is uninstalled. Those things are created from values in the config file. Reinstall it fro the package manager.

      1 Reply Last reply Reply Quote 0
      • hugoeyngH
        hugoeyng
        last edited by stephenw10

        @jonathanlee @stephenw10 I uninstalled Squid, SquidGuard an LightSquid.

        After that I rebooted pfSense e started reinstalling in the sequence: Squid, SquidGuard.

        Squid, ok.

        SqudiGuard, raised the error I had before the patch (13984) and do not correctly install (no appears in menu).

        PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc, Line: 1193, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1193

        Install log:

        >>> Installing pfSense-pkg-squidGuard... 
        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.
        The following 3 package(s) will be affected (of 0 checked):
        
        New packages to be INSTALLED:
        	db5: 5.3.28_9 [pfSense]
        	pfSense-pkg-squidGuard: 1.16.18_20 [pfSense]
        	squidGuard: 1.4_15 [pfSense]
        
        Number of packages to be installed: 3
        
        The process will require 15 MiB more space.
        41 KiB to be downloaded.
        [1/1] Fetching squidGuard-1.4_15.pkg: ...... done
        Checking integrity... done (0 conflicting)
        [1/3] Installing db5-5.3.28_9...
        [1/3] Extracting db5-5.3.28_9: .......... done
        [2/3] Installing squidGuard-1.4_15...
        [2/3] Extracting squidGuard-1.4_15: ...... done
        [3/3] Installing pfSense-pkg-squidGuard-1.16.18_20...
        [3/3] Extracting pfSense-pkg-squidGuard-1.16.18_20: .......... done
        Saving updated package information...
        done.
        Loading package configuration... done.
        Configuring package components...
        Loading package instructions...
        
        Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1193
        Stack trace:
        #0 /usr/local/pkg/squidguard.inc(1047): convert_pfxml_to_sgxml_time(Array)
        #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
        #2 /etc/inc/pkg-utils.inc(870): require_once('/usr/local/pkg/...')
        #3 /etc/rc.packages(76): install_package_xml('squidGuard')
        #4 {main}
          thrown in /usr/local/pkg/squidguard.inc on line 1193
        PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc, Line: 1193, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1193
        Stack trace:
        #0 /usr/local/pkg/squidguard.inc(1047): convert_pfxml_to_sgxml_time(Array)
        #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
        #2 /etc/inc/pkg-utils.inc(870): require_once('/usr/local/pkg/...')
        #3 /etc/rc.packages(76): install_package_xml('squidGuard')
        #4 {main}
          thrownpkg-static: POST-INSTALL script failed
        =====
        Message from db5-5.3.28_9:
        
        --
        ===>   NOTICE:
        
        The db5 port currently does not have a maintainer. As a result, it is
        more likely to have unresolved issues, not be up-to-date, or even be removed in
        the future. To volunteer to maintain this port, please create an issue at:
        
        https://bugs.freebsd.org/bugzilla
        
        More information about port maintainership is available at:
        
        https://docs.freebsd.org/en/articles/contributing/#ports-contributing
        --
        ===>   NOTICE:
        
        This port is deprecated; you may wish to reconsider installing it:
        
        EOLd, potential security issues, maybe use db18 instead.
        
        It is scheduled to be removed on or after 2022-06-30.
        =====
        Message from squidGuard-1.4_15:
        
        --
        In order to activate squidGuard you have to edit squid.conf
         To the contain "url_rewrite_program /usr/local/bin/squidGuard"
         and create a configuration file for squidGuard.
        
         Sample blacklists have been installed in /usr/local/share/examples/squidGuard.
        
         A sample configuration file has beeen installed in
         /usr/local/etc/squid/squidGuard.conf.sample.
        
         You need to edit the configuration and compile the blacklist
         you choose to use with:
         squidGuard -d -C all
        
         Please bear in mind that this is just a sample configuration file
         and for any real world usage you need to download or create your
         own updated blacklists and create your own configuration file.
        
         Check documentation here:
        
         http://www.squidguard.org/Doc/
        
         To activate the changes do a /usr/local/sbin/squid -k reconfigure
        =====
        Message from pfSense-pkg-squidGuard-1.16.18_20:
        
        --
        Please visit Services - SquidGuard Proxy Filter - Target Categories and set up at least one category there before enabling SquidGuard. See https://docs.netgate.com/pfsense/en/latest/packages/cache-proxy/squidguard.html for details.
        >>> Cleaning up cache... done.
        Success
        

        After that I applied the patches for Squid and SquidGuard and rebooted. Even so the SquidGuard do not appear in the menu and do not start.

        I love pfSense!

        Hugo Eyng
        Datamais Sistemas

        JonathanLeeJ 3 Replies Last reply Reply Quote 0
        • JonathanLeeJ
          JonathanLee @hugoeyng
          last edited by

          @hugoeyng said in 23.01 Squid issue:

          PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc

          What about you delete that file from the firewall if your up for reconfiguring Squidguard like a fresh install and after reinstall that package? It is like you are stuck in a reinstall loop now.

          Make sure to upvote

          hugoeyngH 1 Reply Last reply Reply Quote 1
          • JonathanLeeJ
            JonathanLee @hugoeyng
            last edited by

            @hugoeyng I added your notes to the Redmine

            Make sure to upvote

            1 Reply Last reply Reply Quote 1
            • hugoeyngH
              hugoeyng @JonathanLee
              last edited by

              @jonathanlee I did it and didn´t work. Sincerely, I did not see how deleting the file could help.

              In another way, you are right when say that I am "stuck in a reinstall loop".

              I think taht the way to solve this troble would beinstalling manually the package squidguard. Unpacking the package and replacing squidguard.inc with another squidguard.inc that was submitted to the patch. After that packing again and reinstalling.

              I am not able to do something like that.

              I love pfSense!

              Hugo Eyng
              Datamais Sistemas

              JonathanLeeJ 1 Reply Last reply Reply Quote 0
              • JonathanLeeJ
                JonathanLee @hugoeyng
                last edited by JonathanLee

                @hugoeyng dang I thought maybe you could do the rename .old trick and after revert the patched version back once it installs. Path under edit file would be /usr/local open the file and rename the name and resave it

                Make sure to upvote

                hugoeyngH 1 Reply Last reply Reply Quote 1
                • JonathanLeeJ
                  JonathanLee
                  last edited by

                  The Patch seems to be working fine for my 2100-MAX it even caught a new virus with HTTPS intercept. Clam AV normalized. "VIRUS FOUND"

                  Screenshot 2023-05-05 at 5.41.42 PM.png

                  Make sure to upvote

                  1 Reply Last reply Reply Quote 0
                  • hugoeyngH
                    hugoeyng @JonathanLee
                    last edited by

                    @jonathanlee the heart of the matter is that the error occurs during the installation and it is not possible to apply a patch before installing.

                    After the error during the instalattion squidGuard is actually not installed and not be able to start as a service, even the patch is applied. Is something like "sitllborn".

                    I love pfSense!

                    Hugo Eyng
                    Datamais Sistemas

                    JonathanLeeJ 1 Reply Last reply Reply Quote 0
                    • JonathanLeeJ
                      JonathanLee @hugoeyng
                      last edited by

                      @hugoeyng have you attempted a firmware reinstall, My system had the firmware reinstalled before the package install. With 23.01 update

                      Make sure to upvote

                      hugoeyngH 1 Reply Last reply Reply Quote 0
                      • hugoeyngH
                        hugoeyng @JonathanLee
                        last edited by

                        @jonathanlee In my case pfSense run on a PC, so I think a firmware update do not apply for me.

                        I love pfSense!

                        Hugo Eyng
                        Datamais Sistemas

                        JonathanLeeJ R 2 Replies Last reply Reply Quote 0
                        • JonathanLeeJ
                          JonathanLee @hugoeyng
                          last edited by

                          @hugoeyng do you have access to Virtualization software?

                          Make sure to upvote

                          hugoeyngH 1 Reply Last reply Reply Quote 1
                          • hugoeyngH
                            hugoeyng @JonathanLee
                            last edited by

                            @jonathanlee like what?

                            I love pfSense!

                            Hugo Eyng
                            Datamais Sistemas

                            JonathanLeeJ 1 Reply Last reply Reply Quote 0
                            • R
                              rcoleman-netgate Netgate @hugoeyng
                              last edited by

                              @hugoeyng Firmware, in this case, is the pfSense 'firmware'.

                              Ryan
                              Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                              Requesting firmware for your Netgate device? https://go.netgate.com
                              Switching: Mikrotik, Netgear, Extreme
                              Wireless: Aruba, Ubiquiti

                              hugoeyngH 1 Reply Last reply Reply Quote 1
                              • hugoeyngH
                                hugoeyng @rcoleman-netgate
                                last edited by

                                @rcoleman-netgate sorry for my lack of knowledge. I installed pfSense on a personal computer that uses its own firmaware. So, what other firmware should I update?

                                I love pfSense!

                                Hugo Eyng
                                Datamais Sistemas

                                R JonathanLeeJ 3 Replies Last reply Reply Quote 0
                                • R
                                  rcoleman-netgate Netgate @hugoeyng
                                  last edited by

                                  @hugoeyng I believe they're suggesting reinstallation of pfSense but you'll have to ask @JonathanLee

                                  Ryan
                                  Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                  Requesting firmware for your Netgate device? https://go.netgate.com
                                  Switching: Mikrotik, Netgear, Extreme
                                  Wireless: Aruba, Ubiquiti

                                  hugoeyngH 1 Reply Last reply Reply Quote 1
                                  • hugoeyngH
                                    hugoeyng @rcoleman-netgate
                                    last edited by

                                    @rcoleman-netgate Hmmm ... I got It. I think that is insane to reinstall pfSense as a solution to a package of pfSense to work.

                                    Also, I think that even I reinstall pfSense will no solve the root of this question: squidGuard package will not install correctly while they do not correct the bug that causes this issue.

                                    I love pfSense!

                                    Hugo Eyng
                                    Datamais Sistemas

                                    stephenw10S 1 Reply Last reply Reply Quote 0
                                    • JonathanLeeJ
                                      JonathanLee @hugoeyng
                                      last edited by

                                      @hugoeyng reinstall software is considered 'firmware' in PfSense Netgate models

                                      Make sure to upvote

                                      1 Reply Last reply Reply Quote 0
                                      • JonathanLeeJ
                                        JonathanLee @hugoeyng
                                        last edited by JonathanLee

                                        @hugoeyng Hypervisor, VirtualBox, VMware? Anything that you can spin up a machine you can load PfSense on to test without using your real equipment. They create a virtualized machine that you can install software on to test with. Windows 10-11 pro the software under features enable Hypervisor-V, Virtual box is free it's made by Oracle, VMware costs money. I recommend just using Hyper-V in Windows, it's really simple to use create a blank Virtual machine and load the software like you would on a normal machine it runs in a virtualized environment and you can test save snapshots test again and if you find something that works and doesn't have issues, repeat it with the real hardware. If you have access to a VM you can test it with a clean install, the reason is maybe your configuration is bonked up. You can test it outside the machine this way. I like virtual box too I use to use it with Palm Pre

                                        https://www.ceos3c.com/pfsense/install-pfsense-on-virtualbox/

                                        Make sure to upvote

                                        R 1 Reply Last reply Reply Quote 1
                                        • R
                                          rcoleman-netgate Netgate @JonathanLee
                                          last edited by

                                          @jonathanlee A better guide is here: https://docs.netgate.com/pfsense/en/latest/virtualization/index.html

                                          Ryan
                                          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                          Requesting firmware for your Netgate device? https://go.netgate.com
                                          Switching: Mikrotik, Netgear, Extreme
                                          Wireless: Aruba, Ubiquiti

                                          1 Reply Last reply Reply Quote 2
                                          • stephenw10S
                                            stephenw10 Netgate Administrator @hugoeyng
                                            last edited by

                                            @hugoeyng said in 23.01 Squid issue:

                                            I think that is insane to reinstall pfSense as a solution to a package of pfSense to work.

                                            Yeah, that really should never be required. It looks like some part of the install/deinstall script is failing there. Since that doesn't happen for most people it's probably something in the config that already exists.

                                            hugoeyngH JonathanLeeJ 2 Replies Last reply Reply Quote 2
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.