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

    pfBlocker-NG-devel 3.2.0_3 not uninstalling on 23.01

    pfBlockerNG
    6
    17
    2.3k
    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.
    • lohphatL
      lohphat
      last edited by lohphat

      Note: this is with all the recommended patches for 23.01 installed.

      >>> Removing pfSense-pkg-pfBlockerNG-devel... 
      Checking integrity... done (0 conflicting)
      Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
      
      Installed packages to be REMOVED:
      	pfSense-pkg-pfBlockerNG-devel: 3.2.0_3
      
      Number of packages to be removed: 1
      
      The operation will free 7 MiB.
      [1/1] Deinstalling pfSense-pkg-pfBlockerNG-devel-3.2.0_3...
      Removing pfBlockerNG-devel components...
      Menu items... done.
      Services... done.
      Loading package instructions...
      Removing pfBlockerNG... Removing all customizations/data...
      Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/config.lib.inc:928
      Stack trace:
      #0 /etc/inc/config.lib.inc(680): cleanup_backupcache(true)
      #1 /usr/local/pkg/pfblockerng/pfblockerng.inc(10768): write_config('pfBlockerNG: Re...')
      #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): pfblockerng_php_pre_deinstall_command()
      #3 /etc/inc/pkg-utils.inc(781): eval()
      #4 /etc/inc/pkg-utils.inc(1093): eval_once('pfblockerng_php...')
      #5 /etc/rc.packages(80): delete_package_xml('pfBlockerNG-dev...', 'deinstall')
      #6 {main}
        thrown in /etc/inc/config.lib.inc on line 928
      PHP ERROR: Type: 1, File: /etc/inc/config.lib.inc, Line: 928, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/config.lib.inc:928
      Stack trace:
      #0 /etc/inc/config.lib.inc(680): cleanup_backupcache(true)
      #1 /usr/local/pkg/pfblockerng/pfblockerng.inc(10768): write_config('pfBlockerNG: Re...')
      #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): pfblockerng_php_pre_deinstall_command()
      #3 /etc/inc/pkg-utils.inc(781): eval()
      #4 /etc/inc/pkg-utils.inc(1093): eval_once('pfblockerng_php...')
      #5 /etc/rc.packages(80): delete_package_xml('pfBlockerNG-dev...', 'deinstall')
      #6 {main}
        thrownpkg-static: DEINSTALL script failed
      [1/1] Deleting files for pfSense-pkg-pfBlockerNG-devel-3.2.0_3: .......... done
      Removing pfBlockerNG-devel components...
      Configuration... done.
      >>> Removing stale packages... done.
      Success
      
      

      SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_1)

      1 Reply Last reply Reply Quote 0
      • H
        hefferbub
        last edited by

        I'm having the same problem on 23.01, but I'm using 3.2.0.3 non-DEVEL version (supposedly these are the same?).

        It is definitely not deleting the pfblockerng configuration entries in config.xml.

        How can I safely remove an old config and start over?

        Thanks

        fireodoF 1 Reply Last reply Reply Quote 0
        • fireodoF
          fireodo @hefferbub
          last edited by

          @hefferbub said in pfBlocker-NG-devel 3.2.0_3 not uninstalling on 23.01:

          How can I safely remove an old config and start over?

          Have you uncheck this?:Bildschirmfoto 2023-04-06 um 13.19.44.png

          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
          pfsense 2.7.2 CE
          Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

          H 1 Reply Last reply Reply Quote 0
          • H
            hefferbub @fireodo
            last edited by

            @fireodo Thanks for the suggestion.

            I did check that, but there seems to be a bug in the code that deletes the old configuration (as shown in the original post of this thread).

            So my config entries remain, and get re-used when I reinstall the package.

            I did have one idea of how to deal with this—if I do a manual backup and tell it not to back up package configuration, I could probably then restore from that to clean it up.

            I have not tried it yet, however.

            J S 2 Replies Last reply Reply Quote 1
            • J
              jdeloach @hefferbub
              last edited by jdeloach

              @hefferbub

              Did you reboot pfSense after you deleted the package including the settings. I seem to recall that you need to do that in order to clear all the old settings in the config file, other files, etc?

              lohphatL 1 Reply Last reply Reply Quote 0
              • lohphatL
                lohphat @jdeloach
                last edited by

                @jdeloach Yes. Still the error persists.

                SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_1)

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

                  @hefferbub said in pfBlocker-NG-devel 3.2.0_3 not uninstalling on 23.01:

                  I did check that

                  You need to UNcheck the "keep settings" box. Otherwise the config is left in the config file, for example to keep settings after a pfSense version upgrade.

                  re: PHP error, with the migration to PHP 8 there have been quite a lot of PHP errors that were found in rarely used code. If it can be replicated you can look for it and make a report at https://redmine.pfsense.org.

                  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!

                  lohphatL 2 Replies Last reply Reply Quote 0
                  • lohphatL
                    lohphat @SteveITS
                    last edited by

                    @steveits It IS unchecked an the stack trace STILL triggers.

                    SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_1)

                    1 Reply Last reply Reply Quote 0
                    • H
                      hefferbub
                      last edited by

                      I tried uninstalling the devel version today (with Save Config unchecked), and it did not produce any errors.

                      However, when I download the config.xml, there are still several hundred lines of PFBlocker entries.

                      1 Reply Last reply Reply Quote 1
                      • lohphatL
                        lohphat @SteveITS
                        last edited by lohphat

                        @steveits

                        Redmine bug opened:

                        https://redmine.pfsense.org/issues/14287

                        SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_1)

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          michmoor LAYER 8 Rebel Alliance @lohphat
                          last edited by

                          @lohphat Any reason why you cant upgrade to _4 then remove? If there is regression in an old package but not in the new one i dont see the redmine going places.

                          Firewall: NetGate,Palo Alto-VM,Juniper SRX
                          Routing: Juniper, Arista, Cisco
                          Switching: Juniper, Arista, Cisco
                          Wireless: Unifi, Aruba IAP
                          JNCIP,CCNP Enterprise

                          lohphatL 1 Reply Last reply Reply Quote 0
                          • lohphatL
                            lohphat @michmoor
                            last edited by

                            @michmoor Well you mentioned the issue of config crud still in the config file after removal. I included that in the bug description. So even if it doesn't throw a stack trace under _4 the config cleanup is still broken.

                            SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_1)

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              michmoor LAYER 8 Rebel Alliance @lohphat
                              last edited by

                              @lohphat true.

                              Firewall: NetGate,Palo Alto-VM,Juniper SRX
                              Routing: Juniper, Arista, Cisco
                              Switching: Juniper, Arista, Cisco
                              Wireless: Unifi, Aruba IAP
                              JNCIP,CCNP Enterprise

                              lohphatL 1 Reply Last reply Reply Quote 0
                              • lohphatL
                                lohphat @michmoor
                                last edited by

                                @michmoor

                                I've installed 3.2.0_4 and I'm still getting the stack trace.

                                >>> Removing pfSense-pkg-pfBlockerNG-devel... 
                                Checking integrity... done (0 conflicting)
                                Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
                                
                                Installed packages to be REMOVED:
                                    pfSense-pkg-pfBlockerNG-devel: 3.2.0_4
                                
                                Number of packages to be removed: 1
                                
                                The operation will free 7 MiB.
                                [1/1] Deinstalling pfSense-pkg-pfBlockerNG-devel-3.2.0_4...
                                Removing pfBlockerNG-devel components...
                                Menu items... done.
                                Services... done.
                                Loading package instructions...
                                Removing pfBlockerNG... Removing all customizations/data...
                                Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/config.lib.inc:928
                                Stack trace:
                                #0 /etc/inc/config.lib.inc(680): cleanup_backupcache(true)
                                #1 /usr/local/pkg/pfblockerng/pfblockerng.inc(10768): write_config('pfBlockerNG: Re...')
                                #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): pfblockerng_php_pre_deinstall_command()
                                #3 /etc/inc/pkg-utils.inc(781): eval()
                                #4 /etc/inc/pkg-utils.inc(1093): eval_once('pfblockerng_php...')
                                #5 /etc/rc.packages(80): delete_package_xml('pfBlockerNG-dev...', 'deinstall')
                                #6 {main}
                                  thrown in /etc/inc/config.lib.inc on line 928
                                PHP ERROR: Type: 1, File: /etc/inc/config.lib.inc, Line: 928, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/config.lib.inc:928
                                Stack trace:
                                #0 /etc/inc/config.lib.inc(680): cleanup_backupcache(true)
                                #1 /usr/local/pkg/pfblockerng/pfblockerng.inc(10768): write_config('pfBlockerNG: Re...')
                                #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): pfblockerng_php_pre_deinstall_command()
                                #3 /etc/inc/pkg-utils.inc(781): eval()
                                #4 /etc/inc/pkg-utils.inc(1093): eval_once('pfblockerng_php...')
                                #5 /etc/rc.packages(80): delete_package_xml('pfBlockerNG-dev...', 'deinstall')
                                #6 {main}
                                  thrownpkg-static: DEINSTALL script failed
                                [1/1] Deleting files for pfSense-pkg-pfBlockerNG-devel-3.2.0_4: .......... done
                                Removing pfBlockerNG-devel components...
                                Configuration... done.
                                >>> Removing stale packages... done.
                                Success
                                

                                SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_1)

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  michmoor LAYER 8 Rebel Alliance @lohphat
                                  last edited by

                                  @lohphat darn…I’ve seen this somewhere..Reddit maybe? I hope you get your answer but I would recommend posting on the pfblocker subreddit. The maintainer does chime in.

                                  Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                  Routing: Juniper, Arista, Cisco
                                  Switching: Juniper, Arista, Cisco
                                  Wireless: Unifi, Aruba IAP
                                  JNCIP,CCNP Enterprise

                                  lohphatL 1 Reply Last reply Reply Quote 0
                                  • lohphatL
                                    lohphat @michmoor
                                    last edited by

                                    @michmoor He's responding to the Redmine bug.

                                    SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_1)

                                    M 1 Reply Last reply Reply Quote 1
                                    • M
                                      michmoor LAYER 8 Rebel Alliance @lohphat
                                      last edited by

                                      @lohphat Very cool.

                                      Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                      Routing: Juniper, Arista, Cisco
                                      Switching: Juniper, Arista, Cisco
                                      Wireless: Unifi, Aruba IAP
                                      JNCIP,CCNP Enterprise

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