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

    The firewall encountered an error after upgrading to 23.01

    Scheduled Pinned Locked Moved Cache/Proxy
    44 Posts 6 Posters 8.6k 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.
    • V
      Vinski- @hugoeyng
      last edited by

      I have same error, boot failed after update, and I had to restore using boot environment snapshot.

      hugoeyngH 1 Reply Last reply Reply Quote 0
      • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
      • hugoeyngH
        hugoeyng @Vinski-
        last edited by

        @vinski When I upgraded to 22.05 the same error happened. I don´t remember what a I did that time.

        I love pfSense!

        Hugo Eyng
        Datamais Sistemas

        1 Reply Last reply Reply Quote 1
        • Y
          yaw
          last edited by

          Are you able to add/remove the squidguard package, or do you receive the same error I posted about here.

          hugoeyngH JonathanLeeJ 2 Replies Last reply Reply Quote 1
          • hugoeyngH
            hugoeyng @yaw
            last edited by

            @yaw I tried to remove and add squidguard and did not work.

            I tried to stop squid and then remove and add squidguard. Did not work.

            SquidGuard appears as installed at "Installed Packages" but do not appear in "Services". Ok, it is not running, but it could appear in "Services" even as "not running".

            It seems to be something to do with permissios to delete or replace a file. I am not sure.

            I love pfSense!

            Hugo Eyng
            Datamais Sistemas

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

              @hugoeyng said in The firewall encountered an error after upgrading to 23.01:

              @yaw I tried to remove and add squidguard and did not work.

              I tried to stop squid and then remove and add squidguard. Did not work.

              SquidGuard appears as installed at "Installed Packages" but do not appear in "Services". Ok, it is not running, but it could appear in "Services" even as "not running".

              It seems to be something to do with permissios to delete or replace a file. I am not sure.

              The same error happens when I reinstall or install SquidGuard.

              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(868): 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(868): require_once('/usr/local/pkg/...')
              #3 /etc/rc.packages(76): install_package_xml('squidGuard')
              #4 {main}
              thrownpkg-static: POST-INSTALL script failed

              Cleaning up cache... done.
              Success

              I love pfSense!

              Hugo Eyng
              Datamais Sistemas

              1 Reply Last reply Reply Quote 1
              • Y
                yaw
                last edited by yaw

                @hugoeyng yeah, I don't know what the issue is. I think it's something to do with the PHP upgrade. Probably need the squidguard package maintainer to look at it.

                hugoeyngH JonathanLeeJ 2 Replies Last reply Reply Quote 2
                • hugoeyngH
                  hugoeyng @yaw
                  last edited by

                  @yaw I noticed, readind anothers topics, that pfBlocker, Snort and some others are affected in the same way.

                  I love pfSense!

                  Hugo Eyng
                  Datamais Sistemas

                  1 Reply Last reply Reply Quote 1
                  • matyi.szabolcsM
                    matyi.szabolcs
                    last edited by

                    Hello Everyone!
                    I am experiencing the same error:

                    >>> Upgrading 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.
                    Checking integrity... done (0 conflicting)
                    The following 1 package(s) will be affected (of 0 checked):
                    
                    Installed packages to be REINSTALLED:
                    	pfSense-pkg-squidGuard-1.16.18_20 [pfSense]
                    
                    Number of packages to be reinstalled: 1
                    [1/1] Reinstalling pfSense-pkg-squidGuard-1.16.18_20...
                    [1/1] Extracting pfSense-pkg-squidGuard-1.16.18_20: .......... done
                    Removing squidGuard components...
                    Menu items... done.
                    Services... done.
                    Loading package instructions...
                    
                    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124
                    Stack trace:
                    #0 /usr/local/pkg/squidguard.inc(1045): convert_pfxml_to_sgxml_destination(Array)
                    #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                    #2 /etc/inc/pkg-utils.inc(1068): require_once('/usr/local/pkg/...')
                    #3 /etc/rc.packages(80): delete_package_xml('squidGuard', 'deinstall')
                    #4 {main}
                      thrown in /usr/local/pkg/squidguard.inc on line 1124
                    PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc, Line: 1124, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124
                    Stack trace:
                    #0 /usr/local/pkg/squidguard.inc(1045): convert_pfxml_to_sgxml_destination(Array)
                    #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                    #2 /etc/inc/pkg-utils.inc(1068): require_once('/usr/local/pkg/...')
                    #3 /etc/rc.packages(80): delete_package_xml('squidGuard', 'deinstall')
                    #4 {main}
                      thrownpkg-static: DEINSTALL script failed
                    Saving updated package information...
                    overwrite!
                    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:1124
                    Stack trace:
                    #0 /usr/local/pkg/squidguard.inc(1045): convert_pfxml_to_sgxml_destination(Array)
                    #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                    #2 /etc/inc/pkg-utils.inc(868): 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 1124
                    PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc, Line: 1124, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124
                    Stack trace:
                    #0 /usr/local/pkg/squidguard.inc(1045): convert_pfxml_to_sgxml_destination(Array)
                    #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                    #2 /etc/inc/pkg-utils.inc(868): require_once('/usr/local/pkg/...')
                    #3 /etc/rc.packages(76): install_package_xml('squidGuard')
                    #4 {main}
                      thrownpkg-static: POST-INSTALL script failed
                    >>> Cleaning up cache... done.
                    Success
                    
                    
                    1 Reply Last reply Reply Quote 1
                    • matyi.szabolcsM
                      matyi.szabolcs
                      last edited by

                      Could this be a PHP bug?

                      [23.01-RELEASE][root@unix.fw]/root: /usr/local/bin/php -f /etc/rc.packages pfSense-pkg-squidGuard DEINSTALL
                      Removing squidGuard components...
                      Menu items... done.
                      Services... done.
                      Loading package instructions...
                      
                      Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124
                      Stack trace:
                      #0 /usr/local/pkg/squidguard.inc(1045): convert_pfxml_to_sgxml_destination(Array)
                      #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                      #2 /etc/inc/pkg-utils.inc(1068): require_once('/usr/local/pkg/...')
                      #3 /etc/rc.packages(80): delete_package_xml('squidGuard', 'deinstall')
                      #4 {main}
                        thrown in /usr/local/pkg/squidguard.inc on line 1124
                      PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc, Line: 1124, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1124
                      Stack trace:
                      #0 /usr/local/pkg/squidguard.inc(1045): convert_pfxml_to_sgxml_destination(Array)
                      #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                      #2 /etc/inc/pkg-utils.inc(1068): require_once('/usr/local/pkg/...')
                      #3 /etc/rc.packages(80): delete_package_xml('squidGuard', 'deinstall')
                      #4 {main}
                        thrown[23.01-RELEASE][root@unix.fw]/root
                      
                      hugoeyngH 1 Reply Last reply Reply Quote 1
                      • Y
                        yaw
                        last edited by yaw

                        Not sure.. probably need to open a new bug for squidguard on redmine. I tried creating an account this evening, but I'm having issues with the confirmation email.

                        Edit: I opened a new bug report on redmine. Maybe that will help get some attention on this issue.

                        JonathanLeeJ 1 Reply Last reply Reply Quote 1
                        • hugoeyngH
                          hugoeyng @matyi.szabolcs
                          last edited by

                          @matyi-szabolcs I don't think It os a PHP bug. It seems, to me, one from this:

                          • some type pra funtion that the current verison of PHP does not support

                          • the installattion/updating process conflicts with some other running process that is using the resource/file.

                          I love pfSense!

                          Hugo Eyng
                          Datamais Sistemas

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

                            @hugoeyng I have the same issue, when ever I try to save the Squid configuration it give this error.

                            Make sure to upvote

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

                              @yaw I have removed and reinstalled as soon as you save the configuration it fails

                              Make sure to upvote

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

                                @yaw

                                I have the same issue with I save Squid config changes. Thanks for opening the redmine ticket. Everything works until I save the proxy config

                                PHP_errors.txt

                                Make sure to upvote

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

                                  @yaw should I open a pfSense ticket and reinstall from a USB or will this result in the same issue?

                                  26543a79-b18a-4fa3-a88c-df051ab5df9f-image.png
                                  (Image: error when you try to save the Squid config changes)

                                  Make sure to upvote

                                  Y 1 Reply Last reply Reply Quote 0
                                  • Y
                                    yaw @JonathanLee
                                    last edited by

                                    @jonathanlee I don't think reinstalling from USB will help. I think the developers are going to need to fix this and update the squid and squidguard packages. You can try opening a ticket if you have a support agreement.

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

                                      @yaw I opened a TAC ticket with Netgate. I cannot do a reinstall right now, my family will be mad at me.

                                      https://forum.netgate.com/topic/178036/23-01-squid-issue/3?_=1676773067228

                                      I have a thread open also same issue.

                                      TAC had me perform a BareMetal install via USB drive and reinstall the configuration after, and it cleared up a lot of my issues. The in-place upgrade did not fully install from what their team said last night, it never fully completed.

                                      With the fresh install it is working fine for now.

                                      Make sure to upvote

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

                                        @jonathanlee When I open the webGUI a warning message, about the crash error, is showed to me.

                                        3819a095-31e0-4498-9110-38790fc8cb5b-image.png

                                        And if I try to reinstall the Squid Proxy Filter the crash error message is showed in the "installation progress box"

                                        I love pfSense!

                                        Hugo Eyng
                                        Datamais Sistemas

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

                                          @hugoeyng do you have the error? I had to resave reverse proxy because it was blank before the update and save the config as that was missing for me, after update it.

                                          Make sure to upvote

                                          hugoeyngH 1 Reply Last reply Reply Quote 0
                                          • Dobby_D
                                            Dobby_
                                            last edited by Dobby_

                                            • Upgrade from 22.05 (zfs) to 23.01 (zfs)
                                              -- reboot
                                              -- go in console (8) and type pfSense-upgrade
                                              -- reboot again
                                              -- go in console type in pkg update and pkg upgrade
                                              -- reboot again

                                            All failures went away (my settings) only higher cpu, ram and swap usage was there for a while. Perhaps, it could help you out of your situation. I must restart the ClamD, snort and unbound once, but after reboot they were working automatically again.

                                            pfSense2.jpg pfSense1.jpg

                                            #~. @Dobby

                                            Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
                                            PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
                                            PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

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