• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Problems with cronjob

henkbart

New Pleskian
Hello,

Since the upgrade to version 8.3 i got an error on a cronjob :

Cron /opt/kav/5.5/kav4mailservers/bin/parse_avstat.pl -d -sd=/opt/kav/5.5/kav4mailservers/proc_avstat /var/log/kav/5.5/kav4mailservers/avstats.log

This generates the following error :

Logfile '/var/log/kav/5.5/kav4mailservers/avstats.log' does not exist

Doen anyone has this problem and who knows what to do about this problem??

Henk
 
Hi,

If file "/var/log/kav/5.5/kav4mailservers/avstats.log" does not exist on server create it. After that you should stop getting this error from cron task.
 
That solution works for 1 day. After running he renames or deletes that file so the next day i got the same error. Thanks for your suggestion, but that doesn't work quit good.

Looking for a more permanent solution.
 
Well I have modified the cronjob to be like this :

touch /var/log/kav/5.5/kav4mailservers/avstats.log ; /opt/kav/5.5/kav4mailservers/bin/parse_avstat.pl -d -sd=/opt/kav/5.5/kav4mailservers/proc_avstat /var/log/kav/5.5/kav4mailservers/avstats.log

tested few times. works fine.
 
Hey, can you tell me where (which file) the cron task is to find?
I don't see any related cron tasks in the dedicated files but I get the same error.
need to know where to look
thanks
 
Hello steakknife,

The cron generally is set to run under user kluser . You either can edit the cronjob from plesk directly by going under Server -> Scheduled tasks and choose user kluser or you can edit it in ssh directly
crontab -e -u kluser
 
Back
Top