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

    23.01 Periodic scripts have been re-enabled and are broken

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 6 Posters 3.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.
    • S
      Sn3akerz
      last edited by

      Since upgrading to 23.01 I am getting nightly, and weekly FreeBSD periodic emails containing errors.

      pfsense.xxx - Arpwatch Notification : Cron <root@pfsense> periodic daily
      X-Cron-Env: <SHELL=/bin/sh>
      X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin>
      X-Cron-Env: <LOGNAME=root>
      X-Cron-Env: <USER=root>
      
      eval: mail: not found
      cat: stdout: Broken pipe
      cat: stdout: Broken pipe
      cat: stdout: Broken pipe
      cat: stdout: Broken pipe
      cat: stdout: Broken pipe
      cat: stdout: Broken pipe
      cat: stdout: Broken pipe
      cat: stdout: Broken pipe
      cat: stdout: Broken pipe
      echo: write error on stdout
      echo: write error on stdout
      
      pfsense.xxx - Arpwatch Notification : Cron <root@pfsense> periodic weekly
      X-Cron-Env: <SHELL=/bin/sh>
      X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin>
      X-Cron-Env: <LOGNAME=root>
      X-Cron-Env: <USER=root>
      
      eval: mail: not found
      cat: stdout: Broken pipe
      echo: write error on stdout
      echo: write error on stdout
      

      From this forum post it appears periodic should be disabled. On my 23.01 system it is not.

      [23.01-RELEASE][admin@pfsense.xxx]/: grep periodic /etc/crontab
      1       3       *       *       *       root    periodic daily
      15      4       *       *       6       root    periodic weekly
      30      5       1       *       *       root    periodic monthly
      1       3       *       *       *       root    /etc/rc.periodic daily
      15      4       *       *       6       root    /etc/rc.periodic weekly
      30      5       1       *       *       root    /etc/rc.periodic monthly
      

      Is this supposed to be running now? If so, why am I getting a bunch of errors?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        What settings do you have enabled in ARPwatch?

        I assume you had it installed with the settings in 22.05?

        Steve

        S 1 Reply Last reply Reply Quote 0
        • S
          Sn3akerz @stephenw10
          last edited by

          @stephenw10

          Yes, identical settings on 22.05.

          Enable Arpwatch checked
          LAN interface selected
          my@email.com for Notifications
          zero padded ethernet addresses is checked
          Update vendors is checked
          All others are unchecked, and Suppress MAC is default/blank

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            I assume you have the main server configured in the main system notifications.

            Are other system email notifications functioning as expected?

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

              Those shouldn't have been re-enabled. I opened https://redmine.pfsense.org/issues/14016 to address the cron changes.

              You can install the System Patches package and then create an entry for ff715efce5e6c65b3d49dc2da7e1bdc437ecbf12 to apply the fix. After applying the patch you can either reboot or if you have the cron package installed, edit and save a job (without making changes) to trigger a rewrite of the cron config.

              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!

              P 1 Reply Last reply Reply Quote 1
              • P
                payazo915 @jimp
                last edited by

                @jimp

                I'm new to pfsense. Can you post a screenshot of the information to enter in the System > Patches. I'm a bit lost on how to add the patch.

                E 1 Reply Last reply Reply Quote 0
                • E
                  ebcdic @payazo915
                  last edited by ebcdic

                  @payazo915 Select add new patch, then enter the long number in the URL/Commit ID field. Put something like "Remove bogus cron jobs" in the Description field. Then click save.

                  Screenshot 2023-02-23 at 18.40.57.png

                  Then do fetch and apply.

                  P 1 Reply Last reply Reply Quote 2
                  • P
                    payazo915 @ebcdic
                    last edited by

                    @ebcdic said in 23.01 Periodic scripts have been re-enabled and are broken:

                    @payazo915 Select add new patch, then enter the long number in the URL/Commit ID field. Put something like "Remove bogus cron jobs" in the Description field. Then click save.

                    Screenshot 2023-02-23 at 18.40.57.png

                    Then do fetch and apply.

                    Thank you!

                    1 Reply Last reply Reply Quote 0
                    • HorstZimmermannH
                      HorstZimmermann
                      last edited by HorstZimmermann

                      same here,

                      updated from 22.05 to 23.01 and getting these notifications via telegram, no errors in the GUI

                      Arpwatch Notification : Cron <root@pfSense> periodic daily - 
                      
                      
                      X-Cron-Env: <SHELL=/bin/sh>
                      X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin>
                      X-Cron-Env: <LOGNAME=root>
                      X-Cron-Env: <USER=root>
                      
                      eval: mail: not found
                      cat: stdout: Broken pipe
                      cat: stdout: Broken pipe
                      cat: stdout: Broken pipe
                      cat: stdout: Broken pipe
                      cat: stdout: Broken pipe
                      cat: stdout: Broken pipe
                      cat: stdout: Broken pipe
                      cat: stdout: Broken pipe
                      cat: stdout: Broken pipe
                      echo: write error on stdout
                      echo: write error on stdout
                      
                      

                      i did not have arpwatch enabled, eiher on version 22.05 nor on 23.01

                      Arpwatch.png

                      i will try the patch and report back if it gets fixed

                      @jimp said in 23.01 Periodic scripts have been re-enabled and are broken:

                      Those shouldn't have been re-enabled. I opened https://redmine.pfsense.org/issues/14016 to address the cron changes.

                      You can install the System Patches package and then create an entry for ff715efce5e6c65b3d49dc2da7e1bdc437ecbf12 to apply the fix. After applying the patch you can either reboot or if you have the cron package installed, edit and save a job (without making changes) to trigger a rewrite of the cron config.

                      1 Reply Last reply Reply Quote 0
                      • HorstZimmermannH
                        HorstZimmermann
                        last edited by

                        @jimp

                        this patch did apparently not fix my problem....

                        i installed this patch ff715efce5e6c65b3d49dc2da7e1bdc437ecbf12 then i edited a cronjob without makin changes and saved the cronjob

                        at 03:01 i got this message

                        - Arpwatch Notification : Cron <root@pfSense> periodic daily - 
                        
                        
                        X-Cron-Env: <SHELL=/bin/sh>
                        X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin>
                        X-Cron-Env: <LOGNAME=root>
                        X-Cron-Env: <USER=root>
                        
                        eval: mail: not found
                        cat: stdout: Broken pipe
                        cat: stdout: Broken pipe
                        cat: stdout: Broken pipe
                        cat: stdout: Broken pipe
                        cat: stdout: Broken pipe
                        cat: stdout: Broken pipe
                        cat: stdout: Broken pipe
                        cat: stdout: Broken pipe
                        cat: stdout: Broken pipe
                        echo: write error on stdout
                        echo: write error on stdout
                        
                        

                        and at 04:15 i got this message

                        - Arpwatch Notification : Cron <root@pfSense> periodic weekly - 
                        
                        
                        X-Cron-Env: <SHELL=/bin/sh>
                        X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin>
                        X-Cron-Env: <LOGNAME=root>
                        X-Cron-Env: <USER=root>
                        
                        eval: mail: not found
                        cat: stdout: Broken pipe
                        echo: write error on stdout
                        echo: write error on stdout
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          Either the patch didn't apply or cron didn't rewrite the file.

                          First make sure in the system patches package that you clicked the Fetch and then Apply button to activate the patch.

                          Then for the best chance at success, reboot afterward.

                          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
                          • HorstZimmermannH
                            HorstZimmermann
                            last edited by

                            apparently the patch applied correctly, i did reboot now

                            Patch.png

                            1 Reply Last reply Reply Quote 0
                            • HorstZimmermannH
                              HorstZimmermann
                              last edited by HorstZimmermann

                              @jimp

                              thank you for your help, problem solved (reboot did fix it)

                              1 Reply Last reply Reply Quote 1
                              • F FSC830 referenced this topic on
                              • T tman222 referenced this topic on
                              • T tman222 referenced this topic on
                              • B bigsy referenced this topic on
                              • T tman222 referenced this topic on
                              • T tman222 referenced this topic on
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.