View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 24 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Mon Feb 06, 2006 8:00 pm 
Offline
Joined: Sat Dec 03, 2005 5:59 pm
Posts: 111
Location: Sydney, Australia
Great thanks for that - should be able to let you know that it's worked in about 11 hours when it does its next fill.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 7:37 am 
Offline
Joined: Sat Dec 03, 2005 5:59 pm
Posts: 111
Location: Sydney, Australia
OK, well mythfilldatabase did its run and completed OK, but returned the following message:
Last mythfilldatabase run started on 2006-02-08 00:14 and ended on 2006-02-08 00:17. mythfilldatabase ran, but did not insert any new data into the Guide. This can indicate a potential grabber failure.
There's guide data until 2006-02-14 00:10 (6 days).

I got the same result when I ran it manually. I'll run it again a few times manually tomorrow, to see if this is consistent...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 9:16 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Try running the bare command as the mythtv user. If that doesn't tell you anyhting obvious add " -v all" to the command line to enable debugging and redirect stdout and stderr to a log file with something like " >mylogfile 2>&1".


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 3:19 am 
Offline
Joined: Sat Dec 03, 2005 5:59 pm
Posts: 111
Location: Sydney, Australia
As far as I can tell, it's running OK. Possibly the reason it does not insert any new data into the Guide is because there's no new data to insert, so I'm going to refrain from running it manually for a couple of days and just give it a chance to see how it goes each night with it's automatic run.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 5:19 pm 
Offline
Joined: Sat Dec 03, 2005 5:59 pm
Posts: 111
Location: Sydney, Australia
Last night's auto fill completed AOK. I've now rebooted to ensure that that doesn't affect anything, and will see how it goes tonight in about 14 hours time.


Top
 Profile  
 
PostPosted: Wed Feb 08, 2006 9:37 pm 
Offline
Joined: Fri Feb 03, 2006 7:54 am
Posts: 1
If you need to pass multiple arguments to the grabber script you need to put in quotes to group them together for mythfilldatabase (so it doesn't think the 2nd argument after --graboptions is for mythfilldatabase's use).

You need to use double backslashes before the quotes 'cos otherwise the script swallows the quotes.

So, the code becomes

Code:
#!/bin/bash
# This is to avoid problems when this is run with the wrong environment.
export HOME=/home/mythtv
/usr/bin/mythfilldatabase --graboptions \\"-v --force-explicit-timezone\\"


<<BOOM-chakka-BOOM-chakka>>
If yo gonna use bash,
Dude use da slash slash!
Wid no slashin' in what's wrote,
Script's gonna swallow up da quote.
Start learnin' dis good,
Big respect in da hood!

Hope that's useful... (apart from the cr@p rap!)

Indulis


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 10:41 pm 
Offline
Joined: Sat Dec 03, 2005 5:59 pm
Posts: 111
Location: Sydney, Australia
Thank you, Indulis, for that injection of...culture. I had no idea Linux had become so hip lately!

Anyway I'm 99% certain this has got it licked - the EPG listings server was n/a last night when Knopp did its auto fill, so an XMLTV error 256 was returned. (I'd still like to find a glossary of those errors somewhere, I couldn't find one on xmltv.org, but I guess it could be buried in compressed documentation somewhere there...)

Also, it would still be useful to know just why I have to set the environment when presumably most others don't have this issue...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 10, 2006 7:34 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Ralph wrote:
Also, it would still be useful to know just why I have to set the environment when presumably most others don't have this issue...

Most likely just your grabber choosing a bad place to cache settings, or a bad way to get the path to them. Frankly this is very common problem to encounter when running scripts from cron, or remotely with ssh, or ... I know enough to test stuff like that using "env -i" and still get burned occasionally when I get sloppy.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 11, 2006 1:06 am 
Offline
Joined: Sat Dec 03, 2005 5:59 pm
Posts: 111
Location: Sydney, Australia
OK so it's not just me, well that's kind of a relief! Well I think we can put this one to bed now, so thanks very much tjc, paulh & indulus, for all your assistance :D


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 12 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu