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

    pfBlockerNG-devel v3.2.0 crashing repeatedly on pfSense 23.01

    Scheduled Pinned Locked Moved pfBlockerNG
    25 Posts 11 Posters 2.1k 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.
    • W
      William 0 @xpxp2002
      last edited by

      @xpxp2002 I'm getting the same error as well after the upgrade

      1 Reply Last reply Reply Quote 0
      • S
        slever @xpxp2002
        last edited by slever

        @xpxp2002 Same here. In my case it’s errors parsing IPv6 addresses too. I’m using High Availability -Firewall > pfBlockerNG > Update > sync wasn’t configured with XMLRPC Replication Targets - which may or may not be relevant.

        1 Reply Last reply Reply Quote 0
        • BBcan177B
          BBcan177 Moderator
          last edited by

          Can you goto pfSense GUI > Diagnostics > Command Prompt > Execute PHP Commands

          And copy/paste the following:

          include_once("/usr/local/pkg/pfblockerng/pfblockerng.inc");
          print_r(pfb_collect_localip());
          

          Then report back here or in PM..

          Thanks!

          "Experience is something you don't get until just after you need it."

          Website: http://pfBlockerNG.com
          Twitter: @BBcan177  #pfBlockerNG
          Reddit: https://www.reddit.com/r/pfBlockerNG/new/

          M D 2 Replies Last reply Reply Quote 0
          • M
            MoonKnight @BBcan177
            last edited by

            @bbcan177
            Hi bbcan177,
            I got the same error after upgrading from 22.05 to 23.01. After a reboot of the system, the error message is gone.

            --- 24.11 ---
            Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz
            Kingston DDR4 2666MHz 16GB ECC
            2 x HyperX Fury SSD 120GB (ZFS-mirror)
            2 x Intel i210 (ports)
            4 x Intel i350 (ports)

            X W 2 Replies Last reply Reply Quote 0
            • X
              xpxp2002 @MoonKnight
              last edited by

              @moonknight Thanks for the suggestion. I will try this at the first opportunity to take the outage and reply back whether it works for me or not.

              1 Reply Last reply Reply Quote 1
              • W
                William 0 @MoonKnight
                last edited by

                @moonknight Thank you that worked for me. Can't believe it didn't dawn on me to do that. I'm not used to rebooting this device often

                1 Reply Last reply Reply Quote 1
                • M MoonKnight referenced this topic on
                • D
                  drewsaur @BBcan177
                  last edited by

                  @bbcan177 I am getting errors in /var/log/pfblockerng/py_error.log as follows:

                  2023-02-16 11:01:50,786|ERROR| [pfBlockerNG]: Failed to load python module 'maxminddb': No module named 'maxminddb'
                  2023-02-16 11:01:50,786|ERROR| [pfBlockerNG]: Failed to load python module 'sqlite3': No module named '_sqlite3'

                  1 Reply Last reply Reply Quote 1
                  • X
                    xpxp2002
                    last edited by

                    I rebooted the firewall, but the issue still persists for me.

                    BBcan177B 1 Reply Last reply Reply Quote 1
                    • BBcan177B
                      BBcan177 Moderator @xpxp2002
                      last edited by

                      @xpxp2002 can you try the command above and report back

                      "Experience is something you don't get until just after you need it."

                      Website: http://pfBlockerNG.com
                      Twitter: @BBcan177  #pfBlockerNG
                      Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                      M X P 3 Replies Last reply Reply Quote 1
                      • M
                        mcury Rebel Alliance @BBcan177
                        last edited by

                        Got some errors too, while changing the MaxMind Localized Language and setting the MaxMind License Key:

                        PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng.php, Line: 1980, Message: Uncaught TypeError: sort(): Argument #1 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng.php:1980
                        Stack trace:
                        #0 /usr/local/www/pfblockerng/pfblockerng.php(1980): sort(NULL, 2)
                        #1 /usr/local/www/pfblockerng/pfblockerng.php(229): pfblockerng_get_countries()
                        #2 {main}
                        thrown @ 2023-02-16 14:36:30
                        

                        dead on arrival, nowhere to be found.

                        1 Reply Last reply Reply Quote 1
                        • X
                          xpxp2002 @BBcan177
                          last edited by

                          @bbcan177 My apologies. I did not see your post earlier.

                          It is breaking my /24s out into individual addresses, so the output is quite long. I will send you a PM in a minute.

                          1 Reply Last reply Reply Quote 0
                          • X
                            xpxp2002
                            last edited by

                            @BBcan177 dug in and identified the behavior is coming from code outside of pfBlockerNG and forwarded that info to a pfSense dev.

                            I have several IPv6 VIPs that were in the short form (e.g. along the lines of fd00:0:0:1::1/64). The :: abbreviation seems to trigger the issue when pfb_local_ip() function runs.

                            I changed those VIPs to a more expanded string (fd00:0:0:1:0:0:0:1/64, for example) to see if that works around the issue. So far, I have not encountered an error, but I'll know for sure after an hour or so passes.

                            1 Reply Last reply Reply Quote 0
                            • P
                              paoloest @BBcan177
                              last edited by

                              @bbcan177
                              Just updated and pfblockerng-devel is not starting anymore.

                              
                              PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng.php, Line: 1980, Message: Uncaught TypeError: sort(): Argument #1 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng.php:1980
                              Stack trace:
                              #0 /usr/local/www/pfblockerng/pfblockerng.php(1980): sort(NULL, 2)
                              #1 /usr/local/pkg/pfblockerng/pfblockerng_install.inc(40): pfblockerng_get_countries()
                              #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): include_once('/usr/local/pkg/...')
                              #3 /etc/inc/pkg-utils.inc(781): eval()
                              #4 /etc/inc/pkg-utils.inc(899): eval_once('include_once('/...')
                              #5 /etc/rc.packages(76): install_package_xml('pfBlockerNG-dev...')
                              #6 {main}
                              
                              

                              Thanks for your work and commitment delivering such a wonderful package

                              NightlySharkN S 2 Replies Last reply Reply Quote 1
                              • dotOneD
                                dotOne
                                last edited by

                                After reboot issue persists…

                                Uncaught ValueError: str_repeat(): Argument #2 ($times) must be greater than or equal to 0 in /usr/local/share/pear/Net/IPv6.php:684

                                X 1 Reply Last reply Reply Quote 0
                                • S
                                  slever
                                  last edited by

                                  My error seems to have gone away. Reboot perhaps?

                                  1 Reply Last reply Reply Quote 0
                                  • NightlySharkN
                                    NightlyShark @paoloest
                                    last edited by

                                    @paoloest I have a suspicion that something is not getting set correctly by the install script from the browser because of a lack of a check for it, or, part of the installer page is not updated in browser (loaded from cache from a previous version)? Maybe try with another browser (one that has never connected to pfsense) or clear cache and cookies in browser? Just a thought.

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

                                      @paoloest said in pfBlockerNG-devel v3.2.0 crashing repeatedly on pfSense 23.01:

                                      #1 /usr/local/pkg/pfblockerng/pfblockerng_install.inc(40): pfblockerng_get_countries()

                                      Per https://redmine.pfsense.org/issues/13950, will be fixed in v3.2.0_2.

                                      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
                                      • W
                                        William 0
                                        last edited by

                                        Out of curiosity….those having issues, did you uninstall pfblocker before the upgrade? If not make sure you do. You will avoid these issues.

                                        P dotOneD 2 Replies Last reply Reply Quote 1
                                        • P
                                          paoloest @William 0
                                          last edited by

                                          @william-0
                                          nope, have not installed any package.

                                          Deleted pfblockerng-devel and installed the non-devel, but no change. I hope for next version to fix this

                                          1 Reply Last reply Reply Quote 0
                                          • dotOneD
                                            dotOne @William 0
                                            last edited by

                                            @william-0 Unfortunately that is not the case.
                                            I did my other firewalls, removed the package before upgrading and reinstalled afterwards.
                                            Same issue.

                                            Hope this will be resolved quickly

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