Skip to main content
The 2024 Developer Survey results are live! See the results
4 votes
Accepted

CV Scheduled jobs not firing from cron

Ok so this may seem like a silly issue to some but after some messing around I figured out cron didn't have access to the path where CV was installed so to fix it the crontab entry had to be changed ...
tanbog's user avatar
  • 317
3 votes

No cron runs have been recorded (CiviCRM 4.7.25 on Wordpress 4.8?)

From your second image, I see that you have not yet set up cron for CiviCRM. The first entry in your crontab executes the Wordpress job. A second entry is needed to execute the CiviCRM job. Here are ...
Coleman's user avatar
  • 18.9k
3 votes

Cron not working after forcing https

The most likely causes for breakage with this change are: Cron job is pointing to HTTP only curl by default will not follow 302 redirects, while wget will. If you're using curl, it won't work ...
Chris Burgess's user avatar
3 votes

Has anyone run into scheduled jobs drifting on Centos7?

I don't know if this is the case here, and it seems more regular than my experience, but my coworkers and I have seen cron jobs walk fairly regularly. (We're more commonly using Ubuntu 14.04 or 12.04,...
Andie Hunt's user avatar
  • 7,462
3 votes
Accepted

Long running Scheduled Job

If you run the schedulded job as a cron job and don't use the http-method for the setup you will not face a php runtime timeout. We did have no issues with schedulded jobs running multiple hours.
Thomas Schüttler's user avatar
3 votes

process_mailing processing addresses when called in UI but not CRON

Had the same problem, on Ubuntu change the system time zone with "sudo dpkg-reconfigure tzdata". Restart the mysql service with "sudo service mysql restart". Can confirm that this gets the cron ...
Stephen Sloan's user avatar
3 votes

Cronjob for CiviCRM with drush 10: The "-u" option does not exist

I don't know if there still is a way to use drush but I got the cronjob working with cv: composer require civicrm/cv And then the crontab is: * * * * * /var/www/path_to_civi_project/vendor/civicrm/cv/...
Tobias Krause's user avatar
3 votes

$EventID is string, not int

I took a look & I think you are probably on a higher php version than we are testing with - this patch should address it for you https://github.com/civicrm/civicrm-core/pull/27363
eileen's user avatar
  • 2,344
2 votes
Accepted

Cron failing after 4.6.16 upgrade

So CLI's memory limit was set to -1 like this: memory_limit = -1 // no memory limit Setting the limit to other than no limit solved the issue. I'm not sure why this happened as CLI's memory limit ...
Andrei's user avatar
  • 2,321
2 votes

why is the percentage of successful deliveries greater than the intended recipients in civi mailing report?

@Kboy - that sounds like it could be a bug; General receipe for this sort of scenario is to update to latest 4.6.x - if this then still persists let us know and file a bug report on JIRA. 4.6.x latest ...
KarinG - Semper IT's user avatar
2 votes

How to setup cron for updating membership statuses in cPanel

I've expanded Kainuk's SOLUTION here (thanks Kainuk!): To start executing civicrm jobs without doing them one-time-only as done with Sheduled Jobs List (Civicrm > Administer > System Settings > ...
Carl Fusch's user avatar
2 votes

Error: Cron Not Running

I may have solved this with the following steps. create a drush alias for the site configure crontab using the drush alias Drush alias (~/.drush/example.aliases.drushrc.php) <?php $aliases['...
Brylie Christopher Oxley's user avatar
2 votes

Crons are running but system status page says otherwise

You do not need to have a separate cronjob for each job: on the admin interface, set the frequency for each job you want to (nightly is good for most of them, but the one that process the mailing and ...
Xavier's user avatar
  • 10.2k
2 votes
Accepted

Safe to run cron jobs using wget and user with full admin rights?

It's better to limit the cron user to the minimum permissions - but I'm not 100% sure what those permissions are. E.g. if you don't give access to CiviEvent, can you use smart groups based on ...
Jon G - Megaphone Tech's user avatar
2 votes

Upgrade to version 4.7.31 seems to have broken DAO.PHP

It sounds like you perhaps aren't using a supported version of PHP. I would check your version; my guess is that you're on PHP 5.4, since 5.5 is the minimum supported version in Civi 4.7.31. I would ...
Jon G - Megaphone Tech's user avatar
2 votes

Has anyone run into scheduled jobs drifting on Centos7?

This extension might solve this issue: Cron Plus
luciano_s's user avatar
  • 566
2 votes

manage new scheduled job

I assume you mean the job that is used to send Scheduled Mailings . You do not have to create it. It is part of the standard configuration. So the only thing to do is to enable it. But to be complete ...
Kainuk - CiviCooP's user avatar
2 votes

process_mailing processing addresses when called in UI but not CRON

I figured out that it was due to a time zone setting mismatch between MariaDB and PHP. Taking inspiration in this forum post https://forum.civicrm.org/index.php%3Ftopic=26132.0.html, I observed that ...
R. Alfaro's user avatar
2 votes

Can't get Cron to run on WordPress CiviCRM via Dreamhost - am I doing it right?

See the SysAdmin guide section on scheduled jobs for details of how to set up cron jobs. For WordPress I use the wp method with a wrapper script: #!/bin/sh wp=/path/to/wp # Path to the wp ...
Aidan's user avatar
  • 13.6k
2 votes
Accepted

Can't get Cron to run on WordPress CiviCRM via Dreamhost - am I doing it right?

So after a lot of back and forth with Dreamhost I have gotten Cron to work. Here are the details based of @Aiden answer for anyone else who is on Dreamhost using CiviCRM. Change anything in CAPS below....
Kevin V's user avatar
  • 89
2 votes

Problems setting up cron

I prefer the wp-cli method to all other methods. Can this work at your host? https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#wp-cli If you do not have Command line access, but the host ...
Kevin Cristiano's user avatar
2 votes
Accepted

Very New To Cron - Setting Up Schedule Jobs with Dreamhost

I just set it up with dreamhost shared hosting. I went into cron jobs in my dreamhost control panel and added a new job. under command to run I put "/usr/bin/php /home/DREAMHOST-USER/EXAMPLE.COM/wp-...
netzih's user avatar
  • 497
2 votes

Cron Job Diagnostics

Hope you adding >/dev/null 2>&1 and not only /dev/null 2>&1 at the end of the cron string.
Pradeep Nayak's user avatar
2 votes

Civimail is not sending scheduled mailings, could it be Cronjob syntax or Bluehost?

Success, with minor change in syntax I am now able to send schedule mail using Cron jobs to kick off schedule mails. Here is my method for running CiviCRM cron jobs on Bluehost shared hosting every ...
Dwight Martino's user avatar
2 votes
Accepted

Mailing only works when executed manually, not scheduled

Solution: create a new user, add permissions: View all contacts Access CiviCRM Access CiviMail go to admin/config/civicrm/civicrm-cron See also: https://docs.civicrm.org/sysadmin/en/latest/setup/...
Webmaster COVS's user avatar
2 votes
Accepted

Email report via cron gets moved every time it runs!

If you want the jobs to execute at exactly the same time every day, swich it to disabled in the UI and then call that job with its params from a system crontab instead. We do this often for recurring ...
KarinG - Semper IT's user avatar
2 votes

Command are running manually, but cron is not running

In order to close this post, I'll explain the solution. There were 2 mistakes: 1/ the parametre cwd= (current working directory) was incorrect. 2/ the way I use UIHostinger for cron was incorect. My ...
rv91530's user avatar
  • 71
2 votes

CVIVI CRM setup on Wordpress

Welcome to SE! If you want to pay someone to do it for you then see https://civicrm.org/partners-contributors If you want free community help to do it yourself then you'll need to describe in more ...
Aidan's user avatar
  • 13.6k
2 votes
Accepted

I need a complete idiots guide to creating the initial cron setup

We would need to know more about your hosting arrangements to provide any more detailed help. Setting up cron can be confusing and it is hard to provide a complete step-by-step guide since there are ...
Aidan's user avatar
  • 13.6k
2 votes
Accepted

Cannot run scheduled jobs - cli.php errors out with uninformative "Error"

This is caused by this bug introduced in 5.56. The related pull request fixes this. We will have to watchout when updating until the PR has been introduced.
thoni56's user avatar
  • 1,241

Only top scored, non community-wiki answers of a minimum length are eligible