• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Youtube Crones Not working

Started by indiyatube,

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

anchantw

Quote
I'm telling you that if there are no new videos returned by Youtube the crons won't import anything (normal!).
Setup an e-mail alert there in the cron, to monitor when the system triggers it and with what output
I get news video from youtube cron and I know already from 8:00 to 23:00 every hour news video uploaded.
So I set up system cron from 8:00 to 23:00 but from phpvibe 3.6 2nd edition I cannot get every hour, each 6 hour. I just wanna know this problem.
Fro example at 8:00 I can get new video and next cron runs at 09:00, 10:00,...13:00. At this time I know new videos uploaded in Youtube but cron.php never do anything and output "Not in cron execution range (cron time not meet)". Why cron time not meet? Nevertheless, in admin(moderator) area I set up and change Cron Run interval shortly(1800s or 3600s), why does cron.php runs every 6 hours? Which files or db does cron.php check?
 
  •  

Marius P.

Your issues is simply timing, the cron execution takes time.
Your cron is set to 60 minutes, if is updated at 8:01 (last execution) and your cron runs at 9:00 then is one minute difference that makes the cron not run (period not meet).
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

anchantw

Quote from: @Mario on
Your issues is simply timing, the cron execution takes time.
Your cron is set to 60 minutes, if is updated at 8:01 (last execution) and your cron runs at 9:00 then is one minute difference that makes the cron not run (period not meet).
Your mention is strange, you said "if is updated at 8:01 and your cron runs at 9:00 then is one minute difference that makes the cron not run", that's right, I understand but next cron runs at 10:00, cron.php must import videos updated at 8:01, rihgt?
  •  

Marius P.

I'm not 100% what's the cron logic (not my build) but from what I've seen looking at the code it simply asks for the youtube results page by page and compares them to the database, if they exist already it skips them.
Every cron has an last run field, which gets updated when that cron block gets executed to the current time.
The cron.php file compares every cron to is last run, if the cron period is smaller thank the last run + cron run time it will skip running that execution block.



Nothing incredible fancy or complicated, you can check for yourself opening cron.php
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Hi,

   I have reinstalled PHPVibe (bcz heavy load in server due to trigger). Now i need youtube crones to work from server (Schedule Task). I have set all settings. I am getting email for every hour with one error. Error as follows

/var/www/vhosts/indiyatube.com/httpdocs/cron.php: line 1: syntax error near unexpected token `('
/var/www/vhosts/indiyatube.com/httpdocs/cron.php: line 1: `<?php error_reporting(0); '


I am getting above error to my email for every hour. I am sending you my logins via PM. please make it to work every hour.

Thanking You.
  •  

quincetin

Hello, my PHP support fastCGI application, but youtube crones not working, Does need to be apache?
  •  

Marius P.

Quote from: quincetin on
Hello, my PHP support fastCGI application, but youtube crones not working, Does need to be apache?

It has nothing to do. fastCGI is an Apache mode :)
Why are they not working, what did you did to set them up?
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Hi,

   Now after server change crones started working. Now i set Cron to be executed for every 3 hours in my plesk panel via scheduled task. Now in plesk its running perfectly for every 3 hours time.

Now problem raise that cron executing for every 9 hours time. I have set two automated youtube channels. With each channel it taking 3 hours gap and executing each channel for every 9 hours time.

For example channel 1 executed at 1am mean again it executing at 10am (exartly 9 hours gap).
Now channel 2 will execute at 4am and again it execute at 1pm (exartly 9 hour gap). But for each channel it taking 3 hours gap. that was good sign. but i need channels to be executed for every 3 hours time just like this.

I set time frame as 10800 (3 hours time).

Solution please.
  •  

Marius P.

Set the time frame for crons in admin to less than 3h, and execute the cron in plesk for 3 hours.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)