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

    "check_reload_status: syncing firewall" every 5 minutes in log

    Scheduled Pinned Locked Moved General pfSense Questions
    23 Posts 4 Posters 15.9k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Check the output of these two commands:

      $ ps uxawww | grep minicron
      $ cat /etc/crontab
      

      See what entries you have that might be executing every 5 minutes. (Though it could easily not be a cron job…)

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • P
        Pontiac_CZ
        last edited by

        The first one:

        
        $ ps uxawww | grep minicron
        root   27262  0.0  0.2  3316  1036  ??  Is   19May11   0:00.97 /usr/local/bin/minicron 240 /var/run/ping_hosts.pid /usr/local/bin/ping_hosts.sh
        root   27584  0.0  0.2  3316  1036  ??  Is   19May11   0:00.07 /usr/local/bin/minicron 3600 /var/run/expire_accounts.pid /etc/rc.expireaccounts
        root   27746  0.0  0.2  3316  1036  ??  Is   19May11   0:00.00 /usr/local/bin/minicron 86400 /var/run/update_alias_url_data.pid /etc/rc.update_alias_url_data
        root   37975  0.0  0.3  3656  1476  ??  S     2:04PM   0:00.00 sh -c ps uxawww | grep minicron
        root   38435  0.0  0.3  3524  1268  ??  S     2:04PM   0:00.00 grep minicron
        root   58830  0.0  0.2  3316  1040  ??  Is   19May11   0:04.06 /usr/local/bin/minicron 60 /var/run/cp_prunedb.pid /etc/rc.prunecaptiveportal
        root   59217  0.0  0.2  3316  1040  ??  Is   19May11   0:00.82 /usr/local/bin/minicron 300 /var/run/vouchercron.pid /etc/rc.savevoucher
        
        

        and the other:

        
        $ cat /etc/crontab
        SHELL=/bin/sh
        PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
        HOME=/var/log
        #minute hour    mday    month   wday    who      command
        #
        #
        # pfSense specific crontab entries
        # Created: May 19, 2011, 7:50 am
        #
        
        0	*	*	*	*	root	/usr/bin/nice -n20 newsyslog
        1,31	0-5	*	*	*	root	/usr/bin/nice -n20 adjkerntz -a
        1	3	1	*	*	root	/usr/bin/nice -n20 /etc/rc.update_bogons.sh
        */60	*	*	*	*	root	/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 sshlockout
        1	1	*	*	*	root	/usr/bin/nice -n20 /etc/rc.dyndns.update
        */60	*	*	*	*	root	/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 virusprot
        30	12	*	*	*	root	/usr/bin/nice -n20 /etc/rc.update_urltables
        #
        # If possible do not add items to this file manually.
        # If you do so, this file must be terminated with a blank line (e.g. new line)
        #
        
        
        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          If you run /etc/rc.savevoucher by hand, does it make that message appear in the logs? That appears to be the only thing running every five minutes.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • P
            Pontiac_CZ
            last edited by

            Ok, I sent the "/etc/rc.savevoucher" command to the pfSense box through "Execute Shell Command" field - but since then the system's been unresponsive (five minutes). Are you sure that was a good idea?  :)
            I am awaiting a desperate call from my employer any minute…

            1 Reply Last reply Reply Quote 0
            • W
              wk
              last edited by

              I'm using vouchers too.

              I executed the command via ssh and it worked as jimp said.
              The message appeares in the log.

              cu
              Walter

              1 Reply Last reply Reply Quote 0
              • W
                wallabybob
                last edited by

                I'm running captive portal and vouchers and I see those messages in the system log:

                clog /var/log/system.log | grep syncing | more

                May 28 18:38:38 pfsense2 check_reload_status: syncing firewall
                May 28 18:43:42 pfsense2 check_reload_status: syncing firewall
                May 28 18:48:45 pfsense2 check_reload_status: syncing firewall
                May 28 18:53:48 pfsense2 check_reload_status: syncing firewall
                May 28 18:58:51 pfsense2 check_reload_status: syncing firewall
                May 28 19:03:55 pfsense2 check_reload_status: syncing firewall
                May 28 19:08:59 pfsense2 check_reload_status: syncing firewall
                May 28 19:14:02 pfsense2 check_reload_status: syncing firewall
                May 28 19:19:06 pfsense2 check_reload_status: syncing firewall
                May 28 19:24:09 pfsense2 check_reload_status: syncing firewall
                May 28 19:29:13 pfsense2 check_reload_status: syncing firewall
                May 28 19:34:15 pfsense2 check_reload_status: syncing firewall
                May 28 19:39:19 pfsense2 check_reload_status: syncing firewall
                May 28 19:44:22 pfsense2 check_reload_status: syncing firewall
                May 28 19:49:25 pfsense2 check_reload_status: syncing firewall
                May 28 19:54:28 pfsense2 check_reload_status: syncing firewall
                May 28 19:59:32 pfsense2 check_reload_status: syncing firewall
                May 28 20:04:35 pfsense2 check_reload_status: syncing firewall
                May 28 20:09:38 pfsense2 check_reload_status: syncing firewall
                May 28 20:14:42 pfsense2 check_reload_status: syncing firewall
                May 28 20:19:46 pfsense2 check_reload_status: syncing firewall
                May 28 20:24:49 pfsense2 check_reload_status: syncing firewall
                May 28 20:29:52 pfsense2 check_reload_status: syncing firewall
                May 28 20:34:55 pfsense2 check_reload_status: syncing firewall
                May 28 20:39:58 pfsense2 check_reload_status: syncing firewall
                May 28 20:45:01 pfsense2 check_reload_status: syncing firewall
                May 28 20:50:04 pfsense2 check_reload_status: syncing firewall
                May 28 20:55:08 pfsense2 check_reload_status: syncing firewall
                May 28 21:00:11 pfsense2 check_reload_status: syncing firewall
                . . .

                On my other pfSense system where I'm not running captive portal:

                clog /var/log/system.log | grep syncing | more

                uname -a

                FreeBSD pfsense.example.org 8.1-RELEASE-p3 FreeBSD 8.1-RELEASE-p3 #1: Sat May 21 21:30:20 EDT 2011     sullrich@FreeBSD_8.0_pfSense_2.0-snaps.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense.8  i386

                uptime

                11:09PM  up 8 days, 14:54, 2 users, load averages: 0.15, 0.10, 0.07

                I'm running the same pfSense build on both systems.

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  So mystery solved. It's the voucher saving process every five minutes causing the log message.

                  It's also writing out the config every five minutes in that case, too, so I imagine that your backup history under Diagnostics > Backup/Restore is quite useless.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • W
                    wk
                    last edited by

                    Jimp,

                    you are right. The Config History also tells every 5 minutes: (system): made unknown change

                    Thanks for helping.

                    cu
                    Walter

                    1 Reply Last reply Reply Quote 0
                    • P
                      Pontiac_CZ
                      last edited by

                      Well, does that mean something for devs? Do you consider that bug? May we look forward to this to be fixed in the post-RC version?  :)

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        If you enable the voucher save feature, it will always happen. You can change how often this happens in the voucher config options.

                        Without saving the vouchers periodically, a sudden reboot would lose voucher usage data.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • W
                          wk
                          last edited by

                          jimp,

                          the text in the gui tells: 'No save is done if no new vouchers have been activated.'

                          There are no new vouchers or active vouchers.

                          cu
                          Walter

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            I don't see any checks to prevent that write in the backend code. The function called writes the db out whenever it's called. Perhaps that was intended to be added later.

                            https://github.com/bsdperimeter/pfsense/blob/master/etc/inc/voucher.inc#L622

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • P
                              Pontiac_CZ
                              last edited by

                              Maybe. But right now we consider this a little bug, right? So I created a new issue in Redmine. Thank you guys for your cooperation.  :)

                              1 Reply Last reply Reply Quote 0
                              • W
                                wk
                                last edited by

                                I can confirm, that since I'm using built Sat Jun 11 the bug is corrected and there are no more log entries and the history is no longer flooded.
                                There is also no more possibility to adjust the time of storing to database. I assume, it's still done all 5 minutes, but now silencely.

                                cu
                                Walter

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