Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Python mode sync trouble

    Scheduled Pinned Locked Moved General pfSense Questions
    19 Posts 3 Posters 981 Views 3 Watching
    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.
    • J Offline
      jriofrio
      last edited by

      Hello everyone.
      I have a question about python mode using pfblockerng in the DNSBL
      I am having an issue with it, this is the message I am getting:

      My DNSBL has a yellow icon... it says: DNSBL(python mode) is out of sync. Perform a Force reload to correct....
      I did but, the yellow icon still there. I also restarted the firewall, that didn't help either.
      Is there an specific way to get it back into sync...
      Thanks for any help.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @jriofrio
        last edited by

        @jriofrio

        This might do it :

        aa07fd04-f1cd-4660-9bfe-5bbb2f820c08-image.png

        The last towo steps : get a copy of the error messages.
        Then delete the content - empty the file.

        Check also the py_error.log file.

        Then, if needed, do a force reload.
        If the issue comes back : resolve the issue first. Then empty the files again.

        No "help me" PM's please. Use the forum, the community will thank you.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jriofrio @Gertjan
          last edited by

          @Gertjan ... Hello, thank you for your advice. I did tried all your suggestions. But it didn't fix the sync issue.
          I went through the error.log file but it didn't find anything that will pin point the sync issue.
          Yesterday i went through the pfblockerng.log and this 3 sections call my attention. i can't recognize what will be causing the issue or at least i can't understand it.....

          Masterfile/Deny folder uniq check
          Deny folder/Masterfile uniq check

          Sync check (Pass=No IPs reported)
          Assembling DNSBL database...... completed [ 12/18/25 20:02:18 ]
          Reloading Unbound Resolver (DNSBL python).
          Stopping Unbound Resolver.
          Unbound stopped in 2 sec.
          Additional mounts (DNSBL python):
          No changes required.
          Starting Unbound Resolver... completed [ 12/18/25 20:02:21 ]
          Resolver cache restored
          *** DNSBL update [ 1082733 ] [ 1082684 ] ... OUT OF SYNC ! *** [ 12/18/25 20:02:22 ]

          Database Sanity check [ PASSED ]

          Masterfile/Deny folder uniq check
          Deny folder/Masterfile uniq check

          Sync check (Pass=No IPs reported)

          DO you see anything that will cause the problem ?
          Again thank you for your help.

          1 Reply Last reply Reply Quote 0
          • tinfoilmattT Offline
            tinfoilmatt LAYER 8
            last edited by

            It looks like multiple pfBlocker updates are running simultaneouly. Assembling DNSBL database should never follow Sync check. Those are two different 'jobs' running at the same time.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jriofrio @tinfoilmatt
              last edited by

              @tinfoilmatt ... Hello... thanks for the comment.
              is there anything i can do in order to solve that problem....
              Hope it is something i can fix for the sync issue.... thanks again

              tinfoilmattT 1 Reply Last reply Reply Quote 0
              • tinfoilmattT Offline
                tinfoilmatt LAYER 8 @jriofrio
                last edited by

                @jriofrio Adjust your CRON Settings (at Firewall / pfBlocker / General / General Settings), and make sure no 'job' is already running when performing any 'force' reloads.

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jriofrio @tinfoilmatt
                  last edited by

                  @tinfoilmatt .. I did what you suggested.... the cron update was 00 and chose 15 min, the i run an update. Going thought the update output i saw this....

                  Saving DNSBL statistics... completed [ 12/19/25 11:35:18 ]

                  Assembling DNSBL database...... completed [ 12/19/25 11:35:20 ]
                  Reloading Unbound Resolver (DNSBL python).
                  Stopping Unbound Resolver.
                  Unbound stopped in 2 sec.
                  Additional mounts (DNSBL python):
                  No changes required.
                  Starting Unbound Resolver... completed [ 12/19/25 11:35:23 ]
                  Resolver cache restored
                  *** DNSBL update [ 1074034 ] [ 1073985 ] ... OUT OF SYNC ! *** [ 12/19/25 11:35:24 ]

                  it is the only out of sync message .

                  tinfoilmattT 1 Reply Last reply Reply Quote 0
                  • tinfoilmattT Offline
                    tinfoilmatt LAYER 8 @jriofrio
                    last edited by

                    @jriofrio You need to specify what kind of update you're running and establish (preferably via screenshot) that no other update is running nor scheduled to run at a conflicting time before doing so.

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      jriofrio @tinfoilmatt
                      last edited by

                      @tinfoilmatt ... Sorry for the lack of my reply.
                      After i change cron updates to 15 min, I went to updates Tab and l update all.
                      Check the output and saw what i shared.... I did made sure that no other updates were ruining.
                      this is the update screen shot, just the update i did was 20 min ago....

                      Screenshot from 2025-12-19 12-01-09.png

                      i hope this is what you meant, if not please let me know. I don't the whole output of the update cause is way to long....

                      tinfoilmattT 1 Reply Last reply Reply Quote 0
                      • tinfoilmattT Offline
                        tinfoilmatt LAYER 8 @jriofrio
                        last edited by

                        @jriofrio Your screenshot shows that you have a force update actively running—with a CRON Event update scheduled to run <15 minutes from that point. Those updates are likely to collide.

                        You should set a longer CRON interval. And not perform any force updates until you're certain you have enough time before the next CRON Event.

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          jriofrio @tinfoilmatt
                          last edited by jriofrio

                          @tinfoilmatt ... Ok, i changed it to 30 min. I will wait after those 30 min and the the output of the updates... thanks.

                          this is how it looks...
                          Screenshot from 2025-12-19 12-11-39.png

                          tinfoilmattT 1 Reply Last reply Reply Quote 0
                          • tinfoilmattT Offline
                            tinfoilmatt LAYER 8 @jriofrio
                            last edited by tinfoilmatt

                            @jriofrio That's still a needlessly short interval. For reference I have mine set to run Once a day, with most feeds updating only weekly.

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              jriofrio @tinfoilmatt
                              last edited by

                              @tinfoilmatt Alright... you thinks this will be better?...

                              Screenshot from 2025-12-19 12-15-41.png

                              thanks

                              tinfoilmattT 1 Reply Last reply Reply Quote 0
                              • tinfoilmattT Offline
                                tinfoilmatt LAYER 8 @jriofrio
                                last edited by

                                @jriofrio Yes.

                                Now make sure no updates are running before running a Force Reload | Reload All—which @Gertjan is correct, should resolve the "OUT OF SYNC !" issue indicated by the yellow warning icon on the dashboard widget.

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jriofrio @tinfoilmatt
                                  last edited by

                                  @tinfoilmatt ... I did all of the suggested... still the yellow icon is present.
                                  One thing that call my attention is that the output of the update i posted before, the last line:
                                  *** DNSBL update [ 1074034 ] [ 1073985 ] ... OUT OF SYNC ! *** [ 12/19/25 11:35:24 ]

                                  those two numbers are not the same, i think both numbers should be the same in order to be in sync. Now, how to solve that, have no idea.

                                  tinfoilmattT 1 Reply Last reply Reply Quote 0
                                  • tinfoilmattT Offline
                                    tinfoilmatt LAYER 8 @jriofrio
                                    last edited by

                                    @jriofrio Two things:

                                    1.) Before proceeding with #2—if you hover over the yellow warning icon on the dashboard widget, a tooltip will display the actual warning being alerted to. That will confirm if you have more than one issue occurring.

                                    2.) Given that multiple updates repeatedly collided with one another, you should follow the procedure identified under the Keep Settings checkbox.

                                    J 1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      jriofrio @tinfoilmatt
                                      last edited by

                                      @tinfoilmatt ... At the beginning of this tread, i stated what the message from the yellow icon was and stil is.
                                      it says: DNSBL(python mode) is out of sync. Perform a Force reload to correct

                                      Anyway, i have been trying to find the "Keep Settings checkbox." but no luck.
                                      if you could point it out its location, i appreciated very much... thanks again.

                                      tinfoilmattT 1 Reply Last reply Reply Quote 0
                                      • tinfoilmattT Offline
                                        tinfoilmatt LAYER 8 @jriofrio
                                        last edited by

                                        @jriofrio It's in your last screenshot. Instructions (i.e., Note: To clear all [ . . . ]), too.

                                        J 1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jriofrio @tinfoilmatt
                                          last edited by

                                          @tinfoilmatt ... Hello again.... Been a little busy lately.... Anyway the idea of loosing all the settings don't appeal at the moment.
                                          I'm intrigued though of what is out of syncronization. Is it a list, a table, a database, a data file????
                                          Does anyone knows what is it!!!.
                                          Perhaps if I know what exactly is, I could synchronize it manually,... just wondering.
                                          If I could understand it I might be able to come up with a way to fix it....
                                          After a couple days, cron has reloaded a few times already (by itself, for the schedule) but th sync issues still persist....
                                          I'm just trying to make sense of this aloud....
                                          Good night.

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