This is not the first time I set up cron… But I have a problem for a new server.
I have tried to setup several linux cron entries using sudo crontab -u www-data -e
or sudo crontab -e
.
For each of them, I have tried several flavor:
*/3 * * * * wget -O - -q -t 1 https://www.domain.be:6666/fr/cron/key
or
*/3 * * * * drush @alias --quiet cron
I can see in syslog that the linux cron is running each 3 minutes:
Feb 27 15:36:01 d9 CRON[2780]: (username) CMD (drush @alias --quiet cron)
Each time, the next syslog entry is about sendmail (don’t know why, maybe another problem)
The problem is that, even if syslog is showing the command, the cron of my site is not launched by it (and the last cron run
variable is not updated)
If I run manually the command drush @alias --quiet cron
it works fine.
If I run manually the wget -O - -q -t 1 https://www.domain.be:6666/fr/cron/key
: nothing happens => Maybe this is the key point to solve my problem (I am using https and a special port)