Quarentine Reports Cron Job missing after upgrade to 3.0.0.7

Report bugs and workarounds
Post Reply
User avatar
Socal_Steve
Posts: 30
Joined: 20 Mar 2014 20:10
Location: Laguna Beach, California, USA
Contact:

Quarentine Reports Cron Job missing after upgrade to 3.0.0.7

Post by Socal_Steve »

After Upgrade to 3.0.0.7 all my users not receiving quarantine reports. Report runs fine when launched manually from /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php

Looks like the upgrade broke the existing EFA Crons.

Anyone else having this issue??

Can anyone shoot me a list of their cron.daily.

THX
DaN
Posts: 240
Joined: 19 Nov 2014 10:04
Location: Earth

Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7

Post by DaN »

Don't use it (yet).

cron.daily folder
Attachments
Unbenannt.JPG
Unbenannt.JPG (19.05 KiB) Viewed 6642 times
mikemachin
Posts: 33
Joined: 29 Aug 2014 11:27

Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7

Post by mikemachin »

I have noticed this,

I am having to run both the reports php and the maint one to clean up the var directory and truncate my quarantine logs.

Is there a fix for this yet?
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7

Post by shawniverson »

My /etc/cron.daily/mailwatch cron has this and is executable...

Code: Select all

#!/bin/sh
/usr/local/bin/mailwatch/tools/Cron_jobs/db_clean.php >> /dev/null 2>&1
/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_maint.php --clean >> /dev/null 2>&1
/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php >> /dev/null 2>&1
Is this what you have?
User avatar
Socal_Steve
Posts: 30
Joined: 20 Mar 2014 20:10
Location: Laguna Beach, California, USA
Contact:

Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7

Post by Socal_Steve »

I'm still running manually as i haven't had the time to look deep at this one.

my listings are the same in /etc/cron.daily/mailwatch.

when i grep the cron log for db_clean.php i get nothing

here is my daily cron section from the log.

Code: Select all

Mar 31 03:30:01 dredge CROND[23295]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Mar 31 03:30:21 dredge run-parts(/etc/cron.daily)[23354]: finished logrotate
Mar 31 03:30:21 dredge run-parts(/etc/cron.daily)[22482]: starting mailwatch
Mar 31 03:30:28 dredge run-parts(/etc/cron.daily)[23385]: finished mailwatch
Mar 31 03:30:28 dredge run-parts(/etc/cron.daily)[22482]: starting makewhatis.cron
Mar 31 03:31:50 dredge run-parts(/etc/cron.daily)[612]: finished makewhatis.cron
Mar 31 03:31:50 dredge run-parts(/etc/cron.daily)[22482]: starting mlocate.cron
Mar 31 03:31:55 dredge run-parts(/etc/cron.daily)[636]: finished mlocate.cron
Mar 31 03:31:55 dredge run-parts(/etc/cron.daily)[22482]: starting prelink
Mar 31 03:32:36 dredge run-parts(/etc/cron.daily)[3042]: finished prelink
Mar 31 03:32:36 dredge run-parts(/etc/cron.daily)[22482]: starting readahead.cron
Mar 31 03:32:36 dredge run-parts(/etc/cron.daily)[3054]: finished readahead.cron
Mar 31 03:32:36 dredge run-parts(/etc/cron.daily)[22482]: starting tmpwatch
Mar 31 03:32:37 dredge run-parts(/etc/cron.daily)[3093]: finished tmpwatch
Mar 31 03:32:37 dredge run-parts(/etc/cron.daily)[22482]: starting update_spamassassin
Mar 31 03:40:01 dredge CROND[3560]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Mar 31 03:41:15 dredge run-parts(/etc/cron.daily)[3821]: finished update_spamassassin
Mar 31 03:41:15 dredge anacron[20821]: Job `cron.daily' terminated

it shows it ran but nothing happened...
Mar 31 03:30:21 dredge run-parts(/etc/cron.daily)[22482]: starting mailwatch
Mar 31 03:30:28 dredge run-parts(/etc/cron.daily)[23385]: finished mailwatch


tomorrow i'll try

Code: Select all

run-parts /etc/cron.daily
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7

Post by shawniverson »

I think this is a shell issue.

Change

Code: Select all

#!/bin/sh
to

Code: Select all

#!/bin/bash
in /etc/cron.daily/mailwatch
User avatar
Socal_Steve
Posts: 30
Joined: 20 Mar 2014 20:10
Location: Laguna Beach, California, USA
Contact:

Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7

Post by Socal_Steve »

Looks like that was the problem. once changed from sh to bash all is well.

THANKS SHAWN :clap:
Post Reply