Quarantine Report stopped after upgrade

Questions and answers about how to do stuff
Post Reply
eoh7678
Posts: 5
Joined: 13 Apr 2017 14:22

Quarantine Report stopped after upgrade

Post by eoh7678 »

Recently upgraded from 3.0.1.6 to 3.0.2.1. Since the upgrade, users are no longer receiving the daily quarantine report I had configured.

Checked /var/www/html/mailscanner/conf.php and settings look valid for daily report still.

When running /uar/local/bin/mailwatch/tools/Cron_jobs/mailwatch_quarantine_report.php manually, it runs with no issue and sends the report.

/etc/cron.daily/mailwatch has the proper command as above, but I didn't receive the quarantine this morning like I usually do.

/var/log/cron doesn't show anything for that task, but looking back at the log before the upgrade, it seems it never has.

Not sure where else to look or what to do next. Any thoughts?

Oh, also another thing I've noticed since the upgrade- there seems to be a session timeout on the management web interface for mailwatch now- where can I set/change that? It seems to be relatively short (~10 minutes or less).
Last edited by eoh7678 on 13 Apr 2017 15:20, edited 1 time in total.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Quarantine Report stopped after upgrade

Post by shawniverson »

What happens if you try to run /etc/cron.daily/mailwatch directly? (just to verify that the file is syntactically correct)
eoh7678
Posts: 5
Joined: 13 Apr 2017 14:22

Re: Quarantine Report stopped after upgrade

Post by eoh7678 »

shawniverson wrote: 13 Apr 2017 15:20 What happens if you try to run /etc/cron.daily/mailwatch directly? (just to verify that the file is syntactically correct)
Seems to run without any problem. No output at all- just takes about 10 seconds and returns to prompt. I received new quarantine reports after running it that way, so seems like it works.

Also, I added an edit about this- any thoughts:
Oh, also another thing I've noticed since the upgrade- there seems to be a session timeout on the management web interface for mailwatch now- where can I set/change that? It seems to be relatively short (~10 minutes or less).
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Quarantine Report stopped after upgrade

Post by shawniverson »

Is the cron daemon actually running?

Session timeouts improvements coming, stay tuned.
eoh7678
Posts: 5
Joined: 13 Apr 2017 14:22

Re: Quarantine Report stopped after upgrade

Post by eoh7678 »

Yep, crond appears to be running.

I tried a reboot and will report back tomorrow if it doesn't run in the morning.

Really appreciate the fast responses and love the project!

Thanks!
User avatar
pdwalker
Posts: 1583
Joined: 18 Mar 2015 09:16

Re: Quarantine Report stopped after upgrade

Post by pdwalker »

shawniverson wrote: 13 Apr 2017 15:38 Session timeouts improvements coming, stay tuned.
That'd be a useful improvement.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Quarantine Report stopped after upgrade

Post by shawniverson »

Waiting on one last pending PR in MailWatch before release of 3.0.2.2
User avatar
pdwalker
Posts: 1583
Joined: 18 Mar 2015 09:16

Re: Quarantine Report stopped after upgrade

Post by pdwalker »

Not to be a nag, but do you know where I can change the timeout manually? The brutally short timeout is starting to piss me off and I'll happily hardcode a fix until it is actually fixed.

What were they thinking?
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Quarantine Report stopped after upgrade

Post by shawniverson »

near the top of functions.php, you'll see the timeout values.
User avatar
pdwalker
Posts: 1583
Joined: 18 Mar 2015 09:16

Re: Quarantine Report stopped after upgrade

Post by pdwalker »

I increased the numbers by a factor of 10 according to https://github.com/mailwatch/MailWatch/issues/730 but I still get timeouts in Chrome for MacOSX when the tab is not in the foreground.

It's super annoying.

Just fyi.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Quarantine Report stopped after upgrade

Post by shawniverson »

Working on 3.0.2.2 today :D
Post Reply