• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Diagnose Cron Job Problem

U

ukbonkers

Guest
Hi,

I have a problem with my cron jobs not running properly anymore. I'm using Plesk 7.5.4

I can see from the log file that the cron job runs but nothing is outputted, and no email confirmation. The cron job is an xml site map generator which DID run fine until i messed with updating Plesk to 8.1.

Because of a failed upgrade to 8.1, i had a problem with WebMail not working anymore, which i have fixed. And i still have the plesk 8.1 base package installed but nothing else (which i dont know how to fix without re-installing everything). But not sure where to start with the Cron Job problem. Can anyone point me in the right direction?

I don't want to re-install as i dont have any other issues now apart from this.

This is the cron job that worked ok

php /var/www/vhosts/domain.co.uk/httpdocs/googlesitemap/index.php

I have also tried different methods found in posts, but because i know it worked before its got to be something to do with the failed upgrade not the command line.

This is the output from var/log/cron

Mar 5 19:35:00 myip CROND[12029]: (user) CMD (php -e -f /var/www/vhosts/domain.co.uk/httpdocs/googlesitemap/index.php)

Other cron jobs are running fine under the root account, so i presume it could be a permissions problem?


Bob
 
i was wrong

An update on this problem, after more investigating, I have found that the CRON jobs are running fine. I was wrong, it appears one my scripts doesnt work anymore.

however i still have the problem of cron jobs not emailing me the results anymore, which would be nice to have working again...

Bob
 
Back
Top