Hi,

Aegir task cron runs as expected.

But individual site crons are not running.

I looked at my setup under hosting >queues

while my takss queue runs as expected my cron queue has not run for several weeks.
How can I force this to happen?

su - aegir
crontab -e

SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
*/1 * * * * /usr/bin/php /var/aegir/drush/drush.php --php=/usr/bin/php '@hostmaster' hosting-dispatch
</codee>

I tried per troubleshooting instructions to reset cron:
<code>
cd /var/aegir/hostmaster-alpha14
/var/aegir/drush/drush.php hosting-setup --uri="my-site-url"
Could not find a Drupal settings.php file at                         [error]
./sites/default/settings.php.
The drush command 'hosting-setup' could not be found.

I also tried

cd /var/aegir/hostmaster-alpha14/sites/my-site-url
/var/aegir/drush/drush.php hosting-setup --uri="my-site-url"
Could not find a Drupal settings.php file at                         [error]
./sites/default/settings.php.
The drush command 'hosting-setup' could not be found.

Comments

Anonymous’s picture

Category: bug » support

Run

php /var/aegir/drush/drush.php @hostmaster hosting-cron --debug

from the CLI and start debugging from there.

The cron feature forks the command 'drush cron' against your sites in batches of 5 or so.

From running the above command you can start seeing which site is breaking cron by exiting early, 99% of the time due to a contrib module on your site doing something wrong.

Or just start running 'drush cron' against each of your sites.

Sometimes running it manually like this is enough to 'clear the blockage' and the regular cron starts running ok again.

omega8cc’s picture

Category: support » bug
Status: Active » Closed (duplicate)

This is already known bug, since Aegir should purge locked semaphore and not allow to silently block sites cron without any error displayed, like it is for standard Drupal cron. Marking this as duplicate of http://drupal.org/node/931550

francewhoa’s picture

Issue summary: View changes

Confirming this issue with Aegir 2.1

Activating the "Task queue" feature fixed that issue. Details at https://www.drupal.org/node/2302255#comment-8963401