I'm trying to kill off an error in WP "Cron Not Running"
I installed cv. Im putting lines into crontab that trigger cv, such as
*/5 * * * * cv api --user=www-data job.execute
...as per instructions related to this error.
The Civi error is persisting. Also, cv, unexpectedly to me, returns HTML as output at the command line, e.g.
foo@bar sudo cv ext:list
Outputs HTML, counterintuitively.
This HTML appears to be the Wordpress site's top page itself (aka a maintenance mode page.
I thought cv with that option would list a bunch of vars, not spit up the site.
Anybody know what's up here?
www-data
or is that the name of the system user your webserver/cron run as? If there's no WP user by that name, that could trigger an error when using the--user
param.cv
. The error message you're seeing is a bit misleading in that regard; ideally it would say Scheduled Jobs not running rather than introducing a new term "cron" which has other meanings in the same domain. Scheduled Jobs are discussed in depth at that linked docs page (which I guess you've seen, since you got here already!).