This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Cron Manager doesn't appear to be working in Sentora v1.0.0
#1
Cron Manager doesn't appear to be working in Sentora v1.0.0
So I'm new to Sentora and the last piece of the puzzle I am trying to sort out is getting Cron to run my Drupal update scripts. It's pretty straightforward and I never had issues with cpanel and doing this.

In my website root folders (Drupal), I have a file cron.php which I want to run daily. I have added it to the Sentora Cron Manager but it doesn't seem to actually run the cron.php.

Initially I put in the path as follows:

/sitename_com/cron.php

as instructed on the page with these directions:

"example: /folder/task.php
Note 1 : Script path is relative to your sentora-user root directory:
/var/sentora/hostdata/zadmin/public_html/
Note 2 : Each file access in your script must use absolute directory path as above."

however, it doesn't seem to work, as my site shows that cron has not been run. So then I looked into the file here: /var/spool/cron/crontabs

This is where Sentora puts the www-data file which has all the cron jobs listed. I noticed that there was an extra "/" being put inline.

So the last line of the cron job showed something like this:
/var/sentora/hostdata/zadmin/public_html//mywebsite_com/cron.php

So I think that's wrong. But I followed the directions exactly as told. Anyway, I went back and deleted that cron job from the cron manager and this time, I added the URL as follows:

sitename_com/cron.php

* note I omitted the forward slash at the start of this line.

Now looking at the file at /var/spool/cron/crontabs

it shows the path without the extra forward slash:
/var/sentora/hostdata/zadmin/public_html/mywebsite_com/cron.php

The entire line looks like this:

* * * * * php -d suhosin.executor.func.blacklist="passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" -d open_basedir="/var/sentora/hostdata/zadmin/:/var/sentora/temp/" /var/sentora/hostdata/zadmin/public_html/mysite_com/cron.php
# END CRON ID: 8

However, cron is still not running my cron.php file as I can see that cron has not been run when looking at the Drupal status pages. Can someone advise what is going on and what I'm doing wrong? Obviously I can just add a cron task myself in the terminal, but I could prefer to use Sentora to do this. This seems like a bug, but then I'm sure everyone would know it if it truly was a bug. Any ideas???
Reply
Thanks given by:


Messages In This Thread
Cron Manager doesn't appear to be working in Sentora v1.0.0 - by americanninja - 04-12-2015, 03:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Is Sentora dead? rajeevrrs 2 3 ,068 12-17-2022, 09:20 AM
Last Post: TGates
Sentora debug and error files johnnyp 0 1 ,187 10-27-2022, 06:16 PM
Last Post: johnnyp
Transfer Account to another Sentora BenI 1 2 ,632 07-21-2022, 07:19 PM
Last Post: Nigel

Forum Jump:


Users browsing this thread: 1 Guest(s)