23.01 Periodic scripts have been re-enabled and are broken
-
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?
-
What settings do you have enabled in ARPwatch?
I assume you had it installed with the settings in 22.05?
Steve
-
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 -
I assume you have the main server configured in the main system notifications.
Are other system email notifications functioning as expected?
-
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. -
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.
-
@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.
Then do fetch and apply.
-
@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.
Then do fetch and apply.
Thank you!
-
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
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. -
this patch did apparently not fix my problem....
i installed this patch
ff715efce5e6c65b3d49dc2da7e1bdc437ecbf12
then i edited a cronjob without makin changes and saved the cronjobat 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
-
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.
-
apparently the patch applied correctly, i did reboot now
-
thank you for your help, problem solved (reboot did fix it)
-
-
-
-
-
-