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

pfBlockerNG - Failed to parse: pfb_py_data.txt

Scheduled Pinned Locked Moved pfBlockerNG
7 Posts 4 Posters 1.2k 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.
  • R
    RobbieTT
    last edited by Feb 29, 2024, 4:39 PM

    On restart I get a yellow ! on the DNSBL widget, directing me to the py_error.log.

    The error log only contains this:

    2024-02-29 16:00:25,892|ERROR| [pfBlockerNG]: Failed to parse: pfb_py_data.txt: []
    2024-02-29 16:00:44,506|ERROR| [pfBlockerNG]: Failed to parse: pfb_py_data.txt: []
    

    I can delete the log entries and the green tick on the widget will return but a subsequent restart will trigger it again.

    24.03.a.20240229.0929

    Any ideas to fix this properly?

    ☕️

    G P 2 Replies Last reply Mar 3, 2024, 9:11 AM Reply Quote 0
    • G
      garyn @RobbieTT
      last edited by Mar 3, 2024, 9:11 AM

      @RobbieTT I do not know the root cause for this issue, but I just posted about a similar issue about the gambling-porn list.

      To debug this, ssh into pfsense. The log files are in /var/log/pfblocker. Once you have narrowed down which list is causing the problem, the original lists are downloaded to /var/db/pfblockerng/dnsblorig. The parsed version is then placed in /var/db/pfblockerng/dnsbl, ... so don't bother editing that one because it will be over written. You need to work directory on the pfsense box because the pfsense gui only loads the last 10k lines and, for example, the gambling-porn original list is >200k lines.

      Using whatever clues the the error log gives you, search for the error text. From your post, it looks like there are two problem lines. Either comment (#) or delete the problem lines.

      Then, follow these steps here to place your list on 'hold' until the root problem is fixed:

      https://forum.netgate.com/topic/186505/pfblocker-parse-errors-with-stevenblacklists-gambling-porn
      

      I'm guessing that it would also be useful to report the issue back to the list creator. In my case it was:

      https://github.com/StevenBlack/hosts/issues/
      

      Good luck!

      R 1 Reply Last reply Mar 5, 2024, 4:39 PM Reply Quote 0
      • P
        provels @RobbieTT
        last edited by Mar 3, 2024, 2:14 PM

        @RobbieTT
        I chased that error once and was caused (for me) by a bad Smart TV block List.

        Peder

        MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
        BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

        1 Reply Last reply Reply Quote 0
        • R
          RobbieTT @garyn
          last edited by Mar 5, 2024, 4:39 PM

          @garyn

          I just cannot find what may be causing this. There is little to no information in the error message so I have yet to find what I am targeting. I have manually looked at the (big) lists and didn't notice anything obvious but manual reviews lead to proximity blindness.

          Any other ideas how to simplify this hunt?

          ☕️

          G G 3 Replies Last reply Mar 6, 2024, 5:56 AM Reply Quote 0
          • G
            garyn @RobbieTT
            last edited by Mar 6, 2024, 5:56 AM

            @RobbieTT you've got company, ... google pfb_py_data and you'll see several reddit posts. Reddit seems to imply deleting the log files.?.? My issue was an incorrectly formatted item on one of StevenBlack's lists. So, my assumption that your pfb_py_data.txt error was also and item in a list may have been incorrect.

            If this is a list, do you know which source (which distribution) it's coming from? Which lists to you upload?

            1 Reply Last reply Reply Quote 0
            • G
              Gertjan @RobbieTT
              last edited by Mar 7, 2024, 10:38 AM

              @RobbieTT said in pfBlockerNG - Failed to parse: pfb_py_data.txt:

              Any other ideas how to simplify this hunt?

              By looking at the file ?!

              The format is rather simple, and 'constructed' after the DNSBL you've selected to use. One of them contains a format error not detected by pfBlocker upon construction, but when read back in, it fails.

              Start removing one by one your DNSBL feeds, a,d as soon as the errors goes away, you'll know which one to exclude.

              Btw : this is what I would do to tackle the issue.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • G
                Gertjan @RobbieTT
                last edited by Mar 7, 2024, 11:14 AM

                @RobbieTT said in pfBlockerNG - Failed to parse: pfb_py_data.txt:

                Any other ideas how to simplify this hunt?

                By looking at the file ?!

                The format is rather simple, and 'constructed' after the DNSBL you've selected. MOst priobably, one of them contains a format error not detected by pfBlocker upon construction, but when read back in, it fails.

                Start removing one by one your DNSBL feeds, and as soon as the errors goes away, you'll know which one to exclude.

                Btw : this is what I would do to tackle the issue.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received