Log in

View Full Version : Help Needed with Cron and RSS Locking up


Scalemotorcars
06-04-2010, 01:52 PM
Im having a heck of a time with my scheduled tasks and really could use a hand.

Ive got several hacks but everything worked fine until I tried the RSS poster. Since then the crons are sporadic. Sometimes they work and sometimes they lock up. I tried rebuilding the tables many times and Ive reset ever cron manually untold times. Sometimes it stops on the RSS cron other times another cron. Its never the same one 2 times in a row.

Ive disabled every hack and uninstalled a few all together. I tried new RSS feeds. Ive removed the RSS feeds and even shut down the crons one at a time trying to figure out what task what locking it.

Like I said until I ran the RSS poster it all worked perfectly with all the hacks being nice to each other.

Im really stuck and I need to get it fixed so the site can go live at the end of the month. Can someone please take a look and help me out. Here.... (http://themodelcraftsman.com/forum.php)

your24hourstore
06-04-2010, 02:15 PM
whats the logs say?

Scalemotorcars
06-04-2010, 02:37 PM
I turned on the logs for each cron so I could get a report. Last night after resetting everything again manually it stopped on the RSS heres a copy of the current logs.

63 RSS Poster Robot 11:34, 4th Jun 2010 Inserted the following:

* Ed Roth
o Vintage Ed Roth Rat Fink Beatnik Bandit 2 Un-assembled
o car club weirdo jacket,ed roth, rockabilly jacket
o Ed Big Daddy Roth MYSTERION Show Rod in Collector Tin

62 Hourly Cleanup #2 11:33, 4th Jun 2010 Hourly Cleanup #2 Completed
61 CMS Daily Cleanup 10:51, 4th Jun 2010
60 CMS Daily Cleanup 08:58, 4th Jun 2010
59 Daily Cleanup 08:57, 4th Jun 2010 Daily Cleanup Completed
58 Attachment Views 01:19, 4th Jun 2010 Attachment Views Updated
57 Hourly Cleanup 01:13, 4th Jun 2010 Hourly Cleanup #1 Completed
56 Subscriptions 01:11, 4th Jun 2010 Paid Subscriptions Updated
55 Daily Digest 01:11, 4th Jun 2010 Daily Digest Sent
54 Daily Statistics Log 01:03, 4th Jun 2010 Daily Statistics Updated
53 Thread Views 01:03, 4th Jun 2010 Thread Views Updated

The next cron to run is the event reminder and that was to run last night at 1:25 am.

No activity since then.

And Harleyparts I really appreciate the help. I've noticed your helping allot of VB's lately. Way to go man, thats mighty nice of you..... :up:

Daniel

your24hourstore
06-04-2010, 04:40 PM
did 60 and 61 cron jobs complete?

so it stopped at that point after inserting 3 links?



man i would check out my rss links
i bet one is misconfigured in a way thats jaming it up

go in and delete all your rss bot jobs and make 1 good one that runs every 30 minutes

go grab ebay or something

i{feed:description}More... ({feed:link})may be the forth one to run maybe the third one is doing it check out the body and title templates

your24hourstore
06-04-2010, 05:03 PM
you can force the feed to run here if you want to

man whats up with my pics being so small today :>

Scalemotorcars
06-04-2010, 05:05 PM
Yep, it locked up after the lost RSS cron. Funny thing is I just checked it and its been locked up since 1am now it ran a few crons and locked up again at 5am +/-. but didn't give me that info only 1 hour ago. And yes my time is set correctly both on the board on in the profile. :)

As for the RSS Manager theres only one set up now and its a copy of one I use with another board. No problems on that one.

The RSS I have is from eBay. Same [BB] code as you provided but minus the (i) right before {feed:description}

:D

Ive set up the error log paths like you instructed in the PM. Im just waiting on those.

--------------- Added 1275674814 at 1275674814 ---------------

you can force the feed to run here if you want to

man whats up with my pics being so small today :>

Yes Ive done that and it works but still waiting on it to do it auto...

--------------- Added 1275675050 at 1275675050 ---------------

Just checked and 2 crons ran but its off by about 3 or 4 minutes. Could that just be a propagation delay?

your24hourstore
06-04-2010, 05:16 PM
yea not sure, i was hopeing it was just a misconfigured feed, but sounds like something more with rss maybe a corrupt file os something

you say you did an edit in search.php?

--------------- Added 1275675762 at 1275675762 ---------------

if all else fails , i would take a backup of public_html
then i would take vbulletinsuite_4-0-3_Patch_Level_1
and i would remove the images directory and the favicon and the includes/install,php
i would then upload it and reinstall over the files you have . cant hurt anything really. and may fix it.

Scalemotorcars
06-04-2010, 05:22 PM
Yes its the edit to exclude some forums from the whats new tab.

Heres a copy of the code, note the part that reads (Start Hack) and (End Hack) this line is simply added to the script.

{
global $vbulletin;

//figure out forums
//This follows the logic of the original search. If a forum is specified then use it and its
//children. If an include list is specified, then use it without its children.
//Do not honor the exclude list if we are using the provided forumid
if ($vbulletin->GPC['f'])
{
$criteria->add_forumid_filter($vbulletin->GPC['f'], true);
}
else
{
if ($vbulletin->GPC['include'])
{
$list = explode(',', $vbulletin->GPC['include']);

if (is_array($list))
{
$list = array_map('intval', $list);
$criteria->add_forumid_filter($list, false);
}
}
// start hack
$vbulletin->GPC['exclude'] .= '20,21,22,25,27,30,37,38,39,41,43,45,49,50,52,56,5 8,60,71,73,75,89,90,91,92';
// end hack
if ($vbulletin->GPC['exclude'])
{
$list = explode(',', $vbulletin->GPC['exclude']);

if (is_array($list))
{
$list = array_map('intval', $list);
$criteria->add_excludeforumid_filter($list);
}
}
}
}

your24hourstore
06-04-2010, 05:25 PM
whats this mod ?

Page Time: 0.20324 seconds Memory: 5,400 KB Queries: 14 Templates: 33
Server Uptime: 20 hours 13 mins Server Load: 0.51 : 0.51 : 0.46

Scalemotorcars
06-04-2010, 05:26 PM
Dumb questions.

If a cron has nothing to do it doesn't log, right?

For example the Infractions Cleanup cron ran (about 10 minutes late but it ran) without logging even though its set to log the cron.

--------------- Added 1275676072 at 1275676072 ---------------

whats this mod ?

Page Time: 0.20324 seconds Memory: 5,400 KB Queries: 14 Templates: 33
Server Uptime: 20 hours 13 mins Server Load: 0.51 : 0.51 : 0.46

8WR Micro Debug (https://vborg.vbsupport.ru/showthread.php?t=240905)

Installed after the fact trying to debug the system.

your24hourstore
06-04-2010, 05:28 PM
ahh ok jaxels codes are good :>

--------------- Added 1275676209 at 1275676209 ---------------

if all else fails , i would take a backup of public_html
then i would take vbulletinsuite_4-0-3_Patch_Level_1
and i would remove the images directory and the favicon and the includes/install,php
i would then upload it and reinstall over the files you have . cant hurt anything really. and may fix it.

oh yea http://themodelcraftsman.com/install/upgrade.php run that

Scalemotorcars
06-04-2010, 05:30 PM
I agree Im using his Random Header also.

--------------- Added 1275676310 at 1275676310 ---------------



if all else fails , i would take a backup of public_html
then i would take vbulletinsuite_4-0-3_Patch_Level_1
and i would remove the images directory and the favicon and the includes/install,php
i would then upload it and reinstall over the files you have . cant hurt anything really. and may fix it.

Just overwrite the files. Not actually running any kind of install.php right?

your24hourstore
06-04-2010, 05:33 PM
yep its just writing over what you have it will reinstall tables too

Scalemotorcars
06-04-2010, 05:43 PM
Looks like Ill have to give that a try. Its locked on the Event Reminder cron this time and is almost 30 minutes late.

Still not error logs in the server. All paths are correct and Permissions set to 777. Wait and see I guess.

Thanks again. I'll report back on this later today...

your24hourstore
06-04-2010, 05:44 PM
good luck with it

Scalemotorcars
06-04-2010, 09:23 PM
Well I just gave that a try. Now to wait and see.

--------------- Added 1275699085 at 1275699085 ---------------

A little progress finally. :up:

So the cron's are basically running. All except for one. For some reason its the Events Reminder thats hanging each time. As long as its deactivated everything works.

I think overwriting the files as you said did the trick for most of it. I went ahead and reinstated the search hack and its still working.

Any ideal why the events cron would shut it down? All that is fresh VB script.

--------------- Added 1275741774 at 1275741774 ---------------

I think I found the problem. Its a link rewrite hack that changes the RSS link into an affiliate link for eBay.

As soon as I reinstalled the hack the cron's shut down.

Scalemotorcars
06-06-2010, 03:59 AM
Guess what its a confirmed bug in the RSS.

http://www.vbulletin.com/forum/project.php?issueid=36702

Its been around since March and its listed as Trivial in the bug tracker. Wow!!! You would think anything shutting down the croms would be a priority issue but no. Its not even assigned to anyone.

Now I have to hold off on my 3.8.4 update and the new site cant go live without it. Not cool VB this a vital part of the forum and its not even being addressed. :down: