I need some help with cron jobs to get Scheduler working. My recent post was removed due to personal info in it (sorry, and thanks for deleting).
Im trying to get Scheduler working, but with no success. Grav v1.7.53.5, Scheduler is fresh install.
Im on IONOS shared web hosting, and it's usually fairly easy to set up a cron job. Ive tried various things, but nothing works. I need new ideas.
# original script provided - did not work
(crontab -l; echo "* * * * * cd /homepages/X/XXXXXX/htdocs/grav;/usr/lib/cgi-bin/php8.4-cli bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
# ways Ive tried using the standard IONOS method to write cronjobs (adding php8.v-cli at beginning, followed by full path), with different configurations
* * * * * usr/bin/php8.4-cli /kunden/homepages/X/XXXXXX/htdocs/grav/usr/lib/cgi-bin/php8.4-cli bin/grav scheduler 1>> /dev/null 2>&1
* * * * * usr/bin/php8.4-cli /kunden/homepages/X/XXXXXX/htdocs/grav/ bin/grav scheduler 1>> /dev/null 2>&1
* * * * * usr/bin/php8.4-cli /kunden/homepages/X/XXXXXX/htdocs/grav/php8.4-cli bin/grav scheduler 1>> /dev/null 2>&1
* * * * * usr/bin/php8.4-cli/kunden/homepages/X/XXXXXX/htdocs/grav/scheduler/webhook /dev/null 2>&1
* * * * * usr/bin/php8.4-cli /homepages/X/XXXXXX/htdocs/grav/scheduler/webhook /dev/null 2>&1
# or tried wget
* * * * * wget -qO- https://domain/ > php8.4-cli bin/grav scheduler 1>> /dev/null 2>&1
* * * * * wget -qO- https://domain/scheduler/webhook > /dev/null 2>&1
# ===
# curl script provided - throws "error": "Invalid authorization token"
curl -X POST "https://grav.local/scheduler/webhook" \
-H "Authorization: Bearer <token>"
# curl script with new way to call the token (from another forum post). this hangs. the admin page states its ran, but nothing happens (eg no back is generated)
curl -X POST "https://grav.local/scheduler/webhook" \
-H "X-Webhook-Token: <token>"
If Im in the grav folder I run the php8.4-cli bin/grav scheduler and it fires Scheduler, again stating on admin page that it ran, but it hasnt, nothing happens.
Visiting the https://domain/sheduler/webhook webpage give me this
Ill keep trying, but any suggestions welcome.