3.0.2.1 CAN'T OPEN (/etc/cron.d/msre_reload.crond): No such file or directory

Report bugs and workarounds
Post Reply
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

3.0.2.1 CAN'T OPEN (/etc/cron.d/msre_reload.crond): No such file or directory

Post by henk »

Update from 3.0.1.9 to 3.0.2.0.->3.0.2.1
Before I start nagging about err messages ( just 1) I want to thank thr EFA team for the massive effort to keep our mail system free from spam :clap:

I'm not sure to what to do with this err message in /var/log/cron.

Shoud I copy the msre_reload.crond to the /usr/local/bin/mailwatch/tools/Cron_jobs/ directory or re-link the broken link or simply ignore the message?

[i]crond[2412]: (root) CAN'T OPEN (/etc/cron.d/msre_reload.crond): No such file or directory[/i]

Code: Select all

ls -l /etc/cron.d
total 28
-rw-r--r--  1 root root  113 Aug 23  2016 0hourly
-rw-r--r--  1 root root 1397 Sep  5  2016 clamav-unofficial-sigs
-rw-r--r--  1 root root   58 Apr  5  2016 EFA-Monitor.cron
lrwxrwxrwx. 1 root root   58 May 25  2015 msre_reload.crond -> /usr/local/bin/mailwatch/tools/Cron_jobs/msre_reload.crond
-rw-r--r--  1 root root  114 May 10  2016 munin
-rw-------  1 root root  108 Jan 26 12:18 raid-check
-rw-------  1 root root  235 Mar 22 10:21 sysstat
-rw-r--r--. 1 root root  187 Feb  9  2015 unbound-anchor
and

Code: Select all

ls -l /usr/local/bin/mailwatch/tools/MailScanner_rule_editor
total 12
-rw-r--r-- 1 root root  450 Apr 10 12:15 INSTALL
-rw-r--r-- 1 root root  305 Apr 10 12:15 msre_reload.crontab
-rw-r--r-- 1 root root 1050 Apr 10 12:15 msre_reload.sh

the INSTALL :

Code: Select all

-----------------------------
INSTALLATION INSTRUCTIONS
-----------------------------

If you're using the RPM-based MailScanner install:

# cp msre_reload.sh /usr/local/bin

# chmod +x /usr/local/bin/msre_reload.sh

It is used by the MSRE cron job to restart MailScanner after a rule has been edited.

If you've used a source-based install of MailScanner, you'll need to create a msre_reload.sh
script which reloads mailscanner in your environment.
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: 3.0.2.1 CAN'T OPEN (/etc/cron.d/msre_reload.crond): No such file or directory

Post by shawniverson »

Try relinking and let me know if that fixes the issue. It appears we may need to fix this.
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: 3.0.2.1 CAN'T OPEN (/etc/cron.d/msre_reload.crond): No such file or directory

Post by henk »

relink seems to solve it.

-The file used in /usr/local/bin/msre_reload.sh is a copy of /usr/local/bin/mailwatch/tools/MailScanner_rule_editor
see INSTALLATION INSTRUCTIONS-

Code: Select all

ls -la
total 48
drwxr-xr-x.   2 root root  4096 Apr 12 16:31 .
drwxr-xr-x. 101 root root 12288 Apr 12 12:40 ..
-rw-r--r--    1 root root   113 Aug 23  2016 0hourly
-rw-r--r--    1 root root  1397 Sep  5  2016 clamav-unofficial-sigs
-rw-r--r--    1 root root    58 Apr  5  2016 EFA-Monitor.cron
lrwxrwxrwx    1 root root    74 Apr 12 16:31 msre_reload.crond -> /usr/local/bin/mailwatch/tools/MailScanner_rule_editor/msre_reload.crontab
-rw-r--r--    1 root root   114 May 10  2016 munin
-rw-------    1 root root   108 Jan 26 12:18 raid-check
-rw-------    1 root root   235 Mar 22 10:21 sysstat
-rw-r--r--.   1 root root   187 Feb  9  2015 unbound-anchor
But on editing rules via the Gui, the next one comes into the light :doh:

Code: Select all

Backing up current file...**ERROR** Could not make backup!
Done with Write_File.
Scheduling reload of MailScanner...Ok.
Your changes will take effect in the next 5 minutes, when MailScanner reloads.
and in /var/log/httpd/ssl_error_log

Code: Select all

PHP Warning:  
 PHP Warning:  fread(): Length parameter must be greater than 0 in /var/www/html/mailscanner/msre_edit.php on line 777, referer: https://efa-server/mailscanner/msre_index.php
 PHP Warning:  copy(/etc/MailScanner/rules/content.scanning.rules.bak): failed to open stream: Permission denied in /var/www/html/mailscanner/msre_edit.php on line 806, referer: https://efa-server/mailscanner/msre_edit.php?token=xxxxxxxxxxxxxxxxxxxxxxxxxxx&file=content.scanning.rules
 PHP Warning:  fread(): Length parameter must be greater than 0 in /var/www/html/mailscanner/msre_edit.php on line 777, referer: https://efa/mailscanner/msre_edit.php?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=content.scanning.rules
~
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
Post Reply