Questions tagged [cron]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

How do I disable notification emails from cron daemon?

I recently enabled scheduled jobs on my system, and now I'm getting notification emails daily when the job runs. The body of the email contains this: Array ( [is_error] => 0 [version] => 3 [...
user avatar
  • 13
0 votes
0 answers
4 views

Timeout in sqlgroup.php stopping Scheduled Mailings

The Scheduled Mailing task has stopped working with the following error message: Fatal error: Maximum execution time of 120 seconds exceeded in /home/example/public_html/sites/all/modules/civicrm/CRM/...
user avatar
  • 4,263
0 votes
0 answers
16 views

Mailings sent via cli generate bad URLs e.g. (https://civicrm/mailing/url/?u=81&qid=7915)

When I run /usr/local/bin/cv api --quiet --user=CRC --cwd=/var/www/html job.execute, my mailings have URLs where the site name is replaced by civicrm, e.g.: https://civicrm/mailing/url/?u=81&qid=...
user avatar
0 votes
1 answer
18 views

cron jobs not working

Can someone help with debugging why cron jobs aren't activated on my site? When looking at civiCRM system status under Set-up Cron it says No cron runs have been recorded. A cron job is required to ...
user avatar
0 votes
1 answer
11 views

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

According to this documentation https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#drush I defined the following crontab: * * * * * /var/www/path_to_civi_project/vendor/drush/drush/drush -u ...
user avatar
0 votes
1 answer
32 views

Upgrade to 5.47.2 now cron does nothing - how to fix?

Since upgrading to 5.47.2 cron has stopped doing anything. It's running as I have redirected the output to a file (which shows zero bytes) but nothing is happening. The cron user is authorised and ...
user avatar
  • 4,263
0 votes
1 answer
39 views

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

I have found the guides for setting up the cron in CiviCRM. I cant understand anything. I am using Wordpress. can someone please give me a complete step to step for setting this up as I really don't ...
user avatar
  • 21
0 votes
0 answers
17 views

Can Scheduled Jobs time out?

I have set up a few Scheduled Jobs that have started successfully started, but never finished. Is this due to a "time out" configuration? I would like to support some long running jobs.
user avatar
  • 355
3 votes
2 answers
50 views

BackdropCMS & cron

How to do civicrm cron in BackdropCMS? when I do in the browser: https://<domain.com>/modules/civicrm/bin/cron.php with the proper parameters it gets redirected to: https://<domain.com>/...
user avatar
  • 3,504
1 vote
1 answer
40 views

Error Message "Cron not running", but it's working perfectly. CiviCRM 5.43.0

I've seen a couple of Drupal workarounds for this, but not for Wordpress. The CiviCRM status is below; note that the last reported cron run was manually executed by me. All extensions are up-to-date: ...
user avatar
  • 21
0 votes
2 answers
128 views

Getting Cron to run scheduled jobs with Drupal 9 in cPanel

I am trying to setup cron to run job.execute that I have setup in CiviCRM scheduled jobs. Drupal https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#cron Cron setup¶ In order for the scheduled ...
user avatar
0 votes
0 answers
29 views

Cron Job Set using WP-CLI method. Seems to be functioning. Civimail won't send. Suggestions?

Wordpress 5.8 CiviCRM 5.38.0 PHP 7.4.15 System Stats say "Cron Running OK Last cron run at September 8th, 2021 5:30 PM." All extensions up to date. Using wp-cli method as laid out here: ...
user avatar
  • 384
3 votes
1 answer
126 views

Cron not running since updating to 5.39.0

I updated to 5.39.0 on Friday, and upon logging in today I've discovered that cron doesn't seem to have run since. I've checked my host's cronlog, and it reports that the command has been sent, so I'...
user avatar
0 votes
0 answers
36 views

User Permissions For Running API Calls With CV in Drupal 9

I am trying to run a cv command for the CiviCRM API. My command looks like this /usr/local/bin/php /usr/local/bin/cv api job.execute --user=USER --cwd=/var/www My user is cron-user and when I use ...
user avatar
  • 783
0 votes
1 answer
33 views

warning message from cron

This morning I started receiving a warning message from my regular cron job. Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/customer/www/crm.coma.org/...
user avatar
  • 3,137
0 votes
1 answer
60 views

How to set Up a Cron Job

I am trying to set up the cron job, can't seem to get it to work. I keep getting invalid user/password. I am trying the HTTP method. I am using WordPress I am on a shared server.
user avatar
0 votes
1 answer
42 views

username and password invalid on cronjob setup through anacron on server control panel

I am trying to run all cron jobs at a one hour interval, but I keep getting "Could not open input file". my path: @hourly 0 my_php_script php -f /srv/data/web/vhosts/[mysite]/wp-content/...
user avatar
0 votes
2 answers
50 views

civicrm email scheduling

I scheduled an email to send at 9.40am and it actually sent at 9.49am which I assume is to do with how often the send mail cron job runs. Is there a way of actually getting an email to send at the ...
user avatar
3 votes
0 answers
80 views

Cron Job Not Running

I'm running WP 5.3.2 and Civi 5.34.0. I recently installed Wordfence free version on my site, but not sure if this has anything to do with my problem (disabled the plugin and the problem still occurs)....
user avatar
  • 83
1 vote
0 answers
33 views

Cron job causes 504

The cron job on my site us using up many resources and ultimately causing a 504 error. I tested not passing a site key or passing the wrong site key and it ran succesfully with the error that the key ...
user avatar
1 vote
1 answer
10 views

How often does the Status Report expect Cron to run?

I am on CiviCRM 5.33.1. The system Status Report gives warnings like this, taken about 90 minutes later at 12:26. Cron is deliberately set to run slowly since this is a development system. How ...
user avatar
0 votes
1 answer
187 views

Command are running manually, but cron is not running

I'm running CiviCRM 5.32.0 on WordPress 5.6 hosted by Hostinger. 1st step I test cv.phar = php /xzy/wp-content/plugins/civicrm/civicrm/bin/cv.phar api Job.process_mailing --user=abcd --cwd=/xyz 2nd ...
user avatar
  • 71
0 votes
1 answer
105 views

Wordpress Cron not Running

I am using the following method to get cron to work with wordpress. It has worked in the past but recently (around December of 2019) it stopped working. It hasn't become too big of a problem until ...
user avatar
2 votes
1 answer
66 views

Email report via cron gets moved every time it runs!

I have scheduled job (daily) to email a report to myself. I would like to receive it on a specific time everyday. Although I have set the time when it should run, every time it runs on a different ...
user avatar
  • 2,846
0 votes
0 answers
31 views

System paths for HTML vs CLI/Cron

A client has had a site on Siteground for 3 years. It worked fine until they moved to a new server architecture and their own suite of management tools (swapping out CPanel for SiteTools). The site ...
user avatar
0 votes
0 answers
31 views

Cron Job Output Error with 5.31 on WordPress

Since updating from 5.29 to 5.31.0 on WordPress I am receiving the following error from my cron job: Fatal error: Uncaught Exception: : in /home/*hostname*/www/www/wp-content/plugins/civicrm/civicrm/...
user avatar
  • 339
3 votes
1 answer
329 views

Why am I getting a warning about hook_civicrm when Civi's cron runs?

On Drupal 7.73 with CiviCRM 5.29.1. Every time the CiviCRM cron runs, I get the following warnings in the Drupal watchdog log. Each is a separate entry. hook_civicrm_alter_drupal_entities should be ...
user avatar
0 votes
1 answer
49 views

Why am I getting problems with username & password for WP cron?

I'm trying to set up cron in Wordpress (& I'm only familiar with Drupal). I have the following set up in cron which doesn't work, and when I paste the url into a browser I get 'ERROR: invalid ...
user avatar
  • 4,263
1 vote
0 answers
68 views

Setting up Cron and CiviMail

CiviCRM is telling me I need to set up Cron jobs and CiviMail, but I've looked at the documentation and it's all Greek to me. How can I get help with setting these up? I'm using Wordpress with ...
user avatar
  • 11
0 votes
1 answer
55 views

My cronjob fails to run my Civimail queue. What am I missing here?

This invocation now returns a result code of 0. And still I see no evidence that it ran my civimail, in the browser UI, at /civicrm/mailing/browse/unscheduled, nor in the logs at /civicrm/admin/joblog,...
user avatar
0 votes
1 answer
116 views

CiviMail cron job unable to find: civicrm.config.php, built with: roundearth/drupal-civicrm-project

My next issue is this: attempts to push out a civilmailing result, as reported by /civicrm/admin/joblog, with this error: 'API permission check failed for Group/get call', . . . 'insufficient ...
user avatar
1 vote
1 answer
50 views

Cron Job User Permissions

Is it possible to run a cli.php without user and password if cron owner has sufficient privileges? Having added it my Joomla dashboard is over run with entries for the cron user logging in. The user I ...
user avatar
  • 11
3 votes
0 answers
30 views

Why is my cron run failing following a database move?

I've got a Civi/Wordpress install. Originally all of the codebase was in a directory called dev. When it was ready to go live I moved everything to a directory called default, and I went through all ...
user avatar
  • 3,664
0 votes
1 answer
24 views

Using the cron facility

I have unsuccessfully been trying to get the cron facility to work and would like someone to help me please. I am working on a Joomla 3 site. The CP provides a facility to create a cron job which ...
user avatar
  • 21
1 vote
2 answers
174 views

cli.php can only be run from command line

Using WordPress 5.4 and CiviCRM Version 5.18.4. Hosting with InmotionDirect, managing via Cpanel. Trying to follow the instructions to set up our cron job. I got the command line to work, finally, ...
user avatar
0 votes
1 answer
125 views

Cron ERROR: Invalid username and/or password (Wordpress)

Our cron has worked without issue then all of a sudden it stopped and provided the error: Civi 5.23.3 WP 5.3 When the cron runs - I get the following: ERROR: Invalid username and/or password My cron ...
user avatar
  • 3,222
1 vote
0 answers
217 views

Why is there a "session_set_save_handler" warning whenever Civi cron runs?

I am using CiviCRM 5.23.4 with Drupal 7.69, though this issue is not new to this version of Civi. Every time Civi cron runs, I get a warning in the Drupal Recent log messages: Warning: ...
user avatar
0 votes
1 answer
56 views

My custom reports work fine, but mail_report fails

All of my custom report mail_report jobs give this error, both through cron and when triggered manually: "Did not find valid instance to execute" The report is defined as class com_foo_bar ...
user avatar
  • 1,157
0 votes
1 answer
31 views

Cron Job Diagnostics

WordPress Version: 5.3.2 CiviCRM - Version 5.21.1 Shared Hosting - Dreamhost I have tested this string in ssh: /usr/bin/wp --user=username --url=https://mysite.org --path=/home/username/mysite.org/...
user avatar
  • 384
1 vote
0 answers
35 views

Mailing job never finishes, but restarts at next cron cycle

After upgrading to 5.17.4 under Joomla, the next large CiviMail job did as follows: It never completed and had to be cancelled It reported zero successful deliveries, though it did report opens At ...
user avatar
1 vote
1 answer
34 views

CiviCRM Scheduled Jobs Timezone Confusion

I am running a CiviCRM deployment in a GNU\Linux environment. When comparing the times reported by https://example.com/civicrm/admin/job (Settings - Scheduled Jobs) with https://example.com/civicrm/...
user avatar
  • 31
3 votes
1 answer
391 views

What is the easiest way to set up cron for CiviCRM on a Drupal 7 installation?

I have created a test instance of CiviCRM that uses Drupal 7 as the CMS. It's running inside a Ubuntu Desktop virtual machine that has a LAMP stack installed on it (Apache2, php7.2 and mySQL). I am ...
user avatar
1 vote
0 answers
30 views

Cron "Running" But "Not Running"!! How to fix this?

I had everything running fine until this morning all of a sudden CiviCRM decided to show up a message that cron is not running. But if I go to scheduled Job its all running fine. Please see the ...
user avatar
  • 2,846
1 vote
0 answers
27 views

CiviMail Authentication Issues when run by Cron - SOLVED - Sharing Information

I was working through a strange issue where emails were bouncing with varying issues like syntax, relay etc. But it felt random. What it came down to is that all mailings via cron (cv api job.execute) ...
user avatar
2 votes
2 answers
228 views

Very New To Cron - Setting Up Schedule Jobs with Dreamhost

I'll try to be as thorough as I can while getting straight to the point. I am brand new to the idea of using WP-CLI, SSH, and Scheduled Cron jobs. Everything is Greek to me, so I am in desperate need ...
user avatar
  • 23
2 votes
2 answers
167 views

cron on drupal8: can't handle separate paths for vendor and library

The Sysadmin guide lists several methods to run the internal cron. On the previous site we used the http method, but now on drupal8 neither this nor calling cli.php works. It seems a bit obvious, ...
user avatar
1 vote
1 answer
51 views

Server Security Update Breaks Cron

A recent security update from our host has resulted in cron throwing out the following errors: PHP Warning: ini_set() has been disabled for security reasons in /.../public_html/wp-content/plugins/...
user avatar
1 vote
0 answers
43 views

CiviCRM Says Cron Job Not Running But It Is

The pop up message in CiviCRM says the Cron is not running, but the Admin Page states it is. CiviCRM v5.16.2 on WordPress.
user avatar
2 votes
1 answer
35 views

CiviRules update interfering with another plugin?

Yesterday, I updated the CiviRules extension to version 2.8, then did the database update. Immediately afterward, I began getting error emails each time the cron job runs. I have in place a hack to ...
user avatar
  • 870
1 vote
1 answer
31 views

Processed as Activity: Cron job output

Recently we have had our cron email us anytime there is an output as typically that only occurs when there is an email. Processed as Activity: Cron job output - I have the same cron running on other ...
user avatar
  • 3,222