Recent Topics

1 Aug 15, 2015 21:53    

A couple of questions on this one:

  1. I'd like to try and understand why the scheduled jobs set up in b2evo don't seem to be running as scheduled. If you look at the screenshot below, you can see that the dates are set in the future, but the only reason they are like that, is because I'd clicked the [Execute pending jobs in a popup window now!] link in the bottom-left of the screen, and triggered them manually. When the appointed date comes, nothing will happen.
  1. Why might I be getting the 'Error' notification on the 'Prune old hits & sessions' job? This seems to fail consistently.

It's worth noting that, as far as I can recall, this has always been the case; it hasn't just started since in installed 6.6.2, all versions have done the same thing. I don't believe it's causing any issues, but then, I have very low traffic levels.

4 16 Aug 2015 15:01

OK thanks. Looks like I have reading to do, as CRON jobs currently escape me

5 16 Aug 2015 21:57

Well I've set something up in cPanel which looked straightforward enough. We'll see in a couple of hours whether I did it correctly.

6 24 Aug 2015 17:02

Just coming back to this one, with the help of my host, I got what appears to be a correctly configured CRON job set up. The host has confirmed today that the job ran as scheduled from their perspective and had no issues reaching /cron/cron_exec.php , however, as I look at my b2evo scheduler page, there is no sign that any of the scheduled jobs are any different to the screenshot above - in fact I'd say they were identical aside from the two errors, which I deleted days ago.

Would I be right in thinking that my scheduler page should now be showing new dates if the job had run as expected last night?

7 24 Aug 2015 22:09

Can you post a screenshot from the cron job you have configured in cPanel? How often does it run? (Ideally it should run every minute)

8 24 Aug 2015 22:26

The timing frequency may be where I'm going wrong. CRON jobs are something I've not really looked at previously, so I've currently got it set to once every 24 hours. Here's the screenshot though.

9 25 Aug 2015 00:25

You definitely want to run it every minute or 5 minutes if you want to be conservative.

Otherwise, b2evolution will execute only ONE action from it's scheduled tasks list, every 24 hours.

10 25 Aug 2015 10:40

OK, I'll modify the job later and see what happens overnight.

11 25 Aug 2015 16:42

I didn't need to wait until overnight, as they've now all run and are scheduled for some time in the future.

It does seem that once a minute is a bit of an overkill - do hosts not have to concern themselves with CPU time being sucked up with that?

12 25 Aug 2015 22:21

It takes less CPU to do a "shall we process some cron job now? oh, nothing in the queue right now, quit immediately" than to process a spam post by a spam bot (which also seem to happen every minute)

13 29 Aug 2015 20:11

I guess we're a few days on now, and I've just taken a look at the Scheduler page to see that the job ID has reached 499. During the time running, I've only have one email notification to say a job had timed out without running; it worked fine the next time ot was scheduled. So far then, all is well.

14 31 Aug 2015 21:07

Dont know if there's any difference but I am adding my cron checks as follows:
wget -q -O - http://domain.com/cron/cron_exec.php >/dev/null 2>&1

15 31 Aug 2015 21:38

I can't say I understand the one I've got, I needed my host to sort that out - CRON jobs are not something I have my head around yet, and I can't honestly see me changing this now - it took me 10 years to get this one set up.

16 01 Sep 2015 04:19

Calling /usr/bin/php is more efficient than calling wget because it directly executes the corn handler script instead of going through a web request that calls the corn handler script.

Both will work though.


Form is loading...