OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: Isabella Borgward on July 05, 2024, 01:04:20 PM

Title: zenarmor periodicals cron job noise filling /var/spool/clientmqueue
Post by: Isabella Borgward on July 05, 2024, 01:04:20 PM
My /var/spool/clientmqueue had literally hundreds of thousands of files in it. They are all just a UUID. The message info indicates that they are caused by this cron job:


# crontab -u nobody -l
# or /usr/local/etc/cron.d and follow the same format as
# /etc/crontab, see the crontab(5) manual page.
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
#minute hour    mday    month   wday    command
# Origin/Description: Zenarmor/Zenarmor periodicals
*       *       *       *       *       /usr/local/sbin/configctl -d 'zenarmor periodicals' '>' /dev/null '2>&1'



Note the quotes around the >.
This does not work as intended:


# /usr/local/sbin/configctl -d 'zenarmor periodicals' '>' /dev/null '2>&1'
3fc7e3fa-5fbb-46f6-9069-939c2b154e05



This does:


# /usr/local/sbin/configctl -d 'zenarmor periodicals' > /dev/null '2>&1'
#


I don't really know configctl but it also has a -q option to suppress stdout, perhaps that would make sense here.
Title: Re: zenarmor periodicals cron job noise filling /var/spool/clientmqueue
Post by: sy on July 05, 2024, 03:07:59 PM
Hi,

We have reproduced the issue and determined that it is related to a connection timeout issue and attempting to send an email. The emails are currently stuck in the queue. We are actively working on a solution and will update you soon.


Title: Re: zenarmor periodicals cron job noise filling /var/spool/clientmqueue
Post by: sy on July 06, 2024, 12:58:20 PM
Hi,

It seems that the issue occurs with any cronjob. We are informing OPNsense side. Thanks again for reporting.
Title: Re: zenarmor periodicals cron job noise filling /var/spool/clientmqueue
Post by: Isabella Borgward on March 10, 2025, 03:51:15 PM
This still happens with current versions of OpnSense + Zenarmor. Simply redirecting the output of "zenarmor peridiocals" to /dev/null would fix this.
Title: Re: zenarmor periodicals cron job noise filling /var/spool/clientmqueue
Post by: sy on March 10, 2025, 04:02:27 PM
Hi,

There might be a problem with the email queue again. Can you share a report by following the instructions in the below link

https://www.zenarmor.com/docs/support/reporting-bug
Title: Re: zenarmor periodicals cron job noise filling /var/spool/clientmqueue
Post by: Isabella Borgward on March 11, 2025, 02:57:23 PM
Bug reported.
I notice that in the current version of Zenarmor [vs whatever version it was in July 2024], it doesn't attempt to redirect output at all.