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

    Possible bug on 23.05 - Bulk Import of Aliases causes full brick of pfSense

    Scheduled Pinned Locked Moved Firewalling
    10 Posts 6 Posters 1.4k 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.
    • D
      dedskwirl
      last edited by

      I apologize if this has been posted in the wrong section.

      I was attempting to do a bulk import of multiple FQDNs into a single Alias. Immediately upon hitting "Save" I received the following message on my screen. (Line breaks added in to make reading easier.)

      Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/util.inc:2053 
      Stack trace: #0 /etc/inc/config.gui.inc(56): alias_make_table() 
      #1 /etc/inc/auth.inc(34): require_once('/etc/inc/config...') 
      #2 /etc/inc/authgui.inc(27): include_once('/etc/inc/auth.i...') 
      #3 /usr/local/www/guiconfig.inc(62): require_once('/etc/inc/authgu...') 
      #4 /usr/local/www/firewall_aliases.php(35): require_once('/usr/local/www/...') 
      #5 {main} thrown in /etc/inc/util.inc on line 2053 
      PHP ERROR: Type: 1, File: /etc/inc/util.inc, 
      Line: 2053, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/util.inc:2053 
      Stack trace: #0 /etc/inc/config.gui.inc(56): alias_make_table() 
      #1 /etc/inc/auth.inc(34): require_once('/etc/inc/config...') 
      #2 /etc/inc/authgui.inc(27): include_once('/etc/inc/auth.i...') 
      #3 /usr/local/www/guiconfig.inc(62): require_once('/etc/inc/authgu...') 
      #4 /usr/local/www/firewall_aliases.php(35): require_once('/usr/local/www/...') 
      #5 {main} thrown
      

      That's all I was able to copy from the webpage. Rebooting didn't change anything. Via console I was unable to revert to a previous config, reboot, reset webconfigurator or anything. My only option was a factory reset and start from scratch.

      This happened multiple times both with FQDN and IPs while attempting to Bulk Import. Adding individual FQDNs one-by-one worked fine.

      I am running an SG-1100 for reference.

      S 1 Reply Last reply Reply Quote 0
      • D dedskwirl referenced this topic on
      • S
        SteveITS Galactic Empire @dedskwirl
        last edited by

        @dedskwirl That is a known bug, install the System Patches package to apply the fix.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        J 1 Reply Last reply Reply Quote 0
        • J
          JSB @SteveITS
          last edited by

          @SteveITS said in Possible bug on 23.05 - Bulk Import of Aliases causes full brick of pfSense:

          @dedskwirl That is a known bug, install the System Patches package to apply the fix.

          If this were truly a known problem, I wouldn't have just crashed my 1100 with a bulk import also. This is a remote router, many miles away. All I can do is reload the firmware onsite now.

          I've had nothing but problems with the 1100 and firmware upgrades to 23.01 and 23.05.

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @JSB
            last edited by

            @JSB I was answering quickly, didnโ€™t mean to be short. There are other posts about it and at least recently (this week?) a release note for 23.05.1 appeared with it so a new version is coming.
            https://docs.netgate.com/pfsense/en/latest/releases/23-05-1.html#aliases-tables

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            1 Reply Last reply Reply Quote 0
            • J
              jduzan
              last edited by

              Does anyone know how to recover from this without doing a full reset?

              S 1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @jduzan
                last edited by

                @jduzan The (upcoming) release note links to https://redmine.pfsense.org/issues/14412 which mentions the problematic aliases section in the config file:

                <aliases>
                    <alias>0</alias>
                </aliases>
                

                Can you connect via SSH or console and remove that from the file? Or maybe the config history?
                https://docs.netgate.com/pfsense/en/latest/backup/restore.html#console-configuration-history

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote ๐Ÿ‘ helpful posts!

                J 1 Reply Last reply Reply Quote 1
                • J
                  jduzan @SteveITS
                  last edited by

                  @SteveITS

                  Thanks,
                  I was able to find the line in the config.xml file and delete it. After that I rebooted the device and then was able to restore from previous config. After that the system came back online. Im not sure why deleting the line in the config wasn't enough, but ut did recover it enough to then do a restore.

                  1 Reply Last reply Reply Quote 0
                  • S SteveITS referenced this topic on
                  • S
                    Scooter13
                    last edited by

                    I encountered this bug last night while attempting to perform a bulk alias import of CDN IP ranges. 23.05.1 needs to get release SOON. Creating a FW alias should NOT cause the entire appliance to fall over... That's terrible.

                    1 Reply Last reply Reply Quote 0
                    • B
                      bars0um
                      last edited by

                      I just want to fume off my anger at this dastardly bug. Seriously? A full brick? With all the nonsense of having to bumble through the console serial connection and all, on a Sunday no less??!?

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        SteveITS Galactic Empire @bars0um
                        last edited by

                        @bars0um Itโ€™s a bad one yeah, but there was a patch via System Patches IIRC, and a few releases since then.

                        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                        Upvote ๐Ÿ‘ helpful posts!

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