View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 14 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Zap2it needs our help..
PostPosted: Mon Jun 14, 2004 12:15 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
http://bb.labs.zap2it.com/viewtopic.php?t=139
http://www.gossamer-threads.com/lists/m ... sers/72785

As root:
Code:
mv /etc/cron.daily/mythtv-backend ~

In the Frontend:
Setup -> General
Go to the forth screen and select "Automatically run mythfilldatabase"
mythfilldatabase Path:/usr/bin/mythfilldatabase
mythfilldatabase Arguments:
mythfilldatabase Log Path:
mythfilldatabase Run Frequency(Days): 2
mythfilldatabase Execution Start:12
mythfilldatabase Execution End:0

In my case, I have it run every 2 days any time between 12 PM and 12 AM. Logging is disable because, if I go check the backend status that will tell me when mythfilldatabase was last ran.

Please change the time you have mythfilldatabase run and consider having it run every other day. A minium of 11 days should be plenty(remember before it was 9).

Thanks,

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 18, 2004 3:19 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
mythfilldase doesn't seem to run as I've described above... Investigating.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 18, 2004 4:49 pm 
Offline
Joined: Sat Mar 13, 2004 6:41 am
Posts: 44
i needed to mkdir /.xmltv to get it to work, wasnt able to give it any other path, even tried to edit the default path in the perl file, didnt work either.

maybe only for xmltv (germany)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 18, 2004 6:00 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I noticed this last night after discovering that the system was down to "only" 7 days worth of program info, but didn't have time to dig into the details and debug it. I did searched all the obvious log files but didn't see any interesting diagnostics. Of course, since it was past midnight my eyes and brain weren't at their sharpest. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 21, 2004 10:54 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Much poking around in logs files reveals a whole lot of nothing... I'm going to put a dummy command in place of mythfilldatabase and see if it turns up anything.
Code:
root@black:/var/log # cat /root/dummy.sh
echo $@ >/tmp/dummy.log
date >>/tmp/dummy.log
exit 0

However I suspect that the command is never run however so my expected symptom is no output to speak of... 8-/ Cesman, any clues from your end?
OBTW - I've been searching in the Myth user mailing list archive but haven't found anything that seems related...


Top
 Profile  
 
PostPosted: Fri Jun 25, 2004 2:29 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
I removed the mythtbackend cronjob and setup the internal myth setup to do the mythfilldatabase as instructed with cessman's post, but it still keeps running at about 6:30am.
I want to help out Zap2it, but not sure what more I need to do?
Anyone figure this out yet?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 25, 2004 3:56 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
I have not figured out why it isn't running yet... ElGordo, please change the time to have it run to later in the day.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 25, 2004 6:14 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I spent a lot more time digging at log files, testing with dummy scripts and the like, and it flat out wasn't being run as far as I could tell. Very frustrating... With no diagnostics to go on, or related messages over in the MythTV User mailing list, I gave up and fell back on the following hack:

As root:

- Make a copy of your old mythtv-backend file. Call it something like update-program-listings.sh and make sure it's executable.
Code:
cp mythtv-backend update-program-listings.sh
chmod a+x update-program-listings.sh

- Edit the file and add the following line in front of the fill database command
Code:
sleep $RANDOM
This will spread your requests over about a 9 hour period.

- Save your changes and copy the file to /usr/local/bin/

- Run
Code:
crontab -e
and add a line which starts your new script at an appropriate time.

I'll edit this later when I get home and add the exact details.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 25, 2004 6:34 pm 
Offline
Joined: Mon Nov 17, 2003 8:59 am
Posts: 206
Location: Michigan
I think we'd even out the load on their servers just as much if everyone picks a random time and runs their cron job at that time. It doesn't really matter if a single person runs at a random time every day.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 25, 2004 7:33 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
True, if people really picked random times. They don't. There are a number of famous "mind reading" tricks based on how NON-randomly people pick numbers or times or whatever. At least this way if I'm part of a usage peak it'll be a very broad and diffuse peak. ;-)

If I were feeling truly clever I'd have tossed in another randomizer for the start time like the last 2 digits of your postal code % 24 for the hour and your phone number % 60 for the minute. However given how hard it is to find good sources of randomness, I'd guess that at least one of those two isn't really all that random. ;-) Not to mention the chances of people actually following those directions... Much better to use something simple and automatic.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 28, 2004 2:44 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
Cesman,
How/where/what program to change to get it to do this? I deleted the cron job for mythtv-backend and have it setup in the menu's as you have described, but it still runs at 6:30. What exactly is being ran at 6:30 and what is kicking it off? I assume that mythfilldatabase is being ran at 6:30, but what is triggering it? If I know that much I can change it easily. It doesn't look like the menu entries affect anything, and the cron job is deleted so it isn't being called from cron.....?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 28, 2004 5:28 pm 
Offline
Joined: Sat Apr 17, 2004 8:25 pm
Posts: 24
Try editing /etc/crontab as root. Edit the time for cron daily.job.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2004 9:35 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
More info for those who haven't given up on the internal housekeeping task yet. It looks like there may be a DB issue involved. See these threads in MythTV Users:

http://www.gossamer-threads.com/lists/mythtv/users/75377
http://www.gossamer-threads.com/lists/mythtv/users/75402

Hope this helps...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 5:50 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
I tried the fixes listed in those mailing list messages. Didn't help.

Here's another data point though. Like ElGordo, I set up the internal "run mythfilldatabase" as originally described, and set it to run between (I think) 6AM and 10AM.

It usually runs at 6:30AM and is successful. Sometimes, however, it does try to run at 9:30 but always seems to be unsuccessful when doing so.

Just thought I'd mention it in case it helped track down what's going on.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu