Sentora Support Forums
Cronjob not working in Sentora 1.0.3 (Ubuntu 14.04) - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: Cronjob not working in Sentora 1.0.3 (Ubuntu 14.04) (/showthread.php?tid=2272)



Cronjob not working in Sentora 1.0.3 (Ubuntu 14.04) - solidgeek - 12-10-2015

Hi,

My name is Emil! I am having a problem with my Sentora installation on my Ubuntu 14.04 VPS. I am not able to run cronjob by using the "Cron Manager". The directory is correct and Sentora do accept the script, however nothing happens, it does not run the script every minute (or ever). 

[Image: 2iifx9g.jpg]
I have tried following this guide: http://docs.sentora.org/?node=91 however, I am not sure how to proceed or what to do. 

Any help would be very much appreciated! 

Thanks  Big Grin


RE: Cronjob not working in Sentora 1.0.3 (Ubuntu 14.04) - TGates - 12-10-2015

If your daemon is running every 5 mins, chances are good the job is being run. You should take a look at the logs and the domain's error log to see if any errors are popping up. It may be running the task, but not completing it due to an error. (Short tags, misconfigured path or failed DB connection, etc.)


RE: Cronjob not working in Sentora 1.0.3 (Ubuntu 14.04) - solidgeek - 12-10-2015

(12-10-2015, 08:45 AM)TGates Wrote: If your daemon is running every 5 mins, chances are good the job is being run. You should take a look at the logs and the domain's error log to see if any errors are popping up. It may be running the task, but not completing it due to an error. (Short tags, misconfigured path or failed DB connection, etc.)

Thanks for your quick answer! I have checked the deamon and it runs every 5 minute. I have checked the script for errors, and it is working just fine. 

I'm not sure how to check every log, or which I should check, but I have looked in /var/sentora/logs/sentora.log, sentora-errors.log and sentora-access.log and none of them are indicating some kind of error. 

Any ideas? I am kind of a newbie to this command-line thing, yet!

EDIT: I found this command 
Code:
grep CRON /var/log/syslog

on your docs, to read the cronlog. And I found something interesting! It does indeed run the cronjob every minute.
[Image: 29xfz2d.jpg]


RE: Cronjob not working in Sentora 1.0.3 (Ubuntu 14.04) - TGates - 12-11-2015

The logs you are looking for are here:
/var/sentora/logs/domains/[domain]/domain.com-error.log