Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Grav Scheduler "Cron Not Available" - 1.6 Beta 6

Solved by Hydrox View solution

Started by Hydrox 8 years ago · 5 replies · 2129 views
8 years ago

I'm trying to enable the scheduler function. I've followed the instructions per the admin panel, and have the grav/scheduler listed in my crontab. However, "Cron Not Available" is still listed at the top of the scheduler page, and it doesn't appear to have run any of the jobs. When I run scheduler -i I get "[OK] All ready! You have already set up Grav's Scheduler in your crontab." It also appears in the cron logs that the grav cron job is executing without issue. Can anyone point me towards any other things to check? Thank you!

Host:
Centos7.6.1810, php 7.2.13, nginx

👍 1
8 years ago

@paulhibbitts Thank you, I'll check out those other options! Appreciate the help!

8 years ago Solution

Solved!

Turns out to be a literal "user error". 😎

This error will show if the scheduler is not installed in the crontab of the php user. I had installed the scheduler in the crontab of a different user. Once I corrected this issue, "Cron not Available" went away.

Thanks!

👍 1
last edited 12/12/18 by Hydrox
7 years ago

Who is php user? www-data doesn't work

I manually add this in my /etc/chrontab on Debian

Grave Chrontab

TXT
*  * * * * www-data cd /mnt/storage/www/domain-name/html/grav; /usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1

The parameter 1 is right?
If I manually do that command I have this error

TXT
Too many arguments, expected arguments "command".
scheduler [-i|--install] [-j|--jobs] [-d|--details]

Suggested topics

Topic Participants Replies Views Activity
Support · by Duc , 9 hours ago
1 34 9 hours ago
Support · by Thomas, 1 week ago
3 107 18 hours ago
Support · by Anna, 4 days ago
2 101 2 days ago
Support · by Justin Young, 2 days ago
1 67 2 days ago
Support · by Duc , 1 week ago
2 106 6 days ago