View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat May 06, 2006 2:48 pm 
Offline
Joined: Wed Mar 29, 2006 4:19 am
Posts: 29
Hi,

mythfilldatabase runs fine when I run it manually as the mythtv user via the command prompt but when I set it to automatically run via the mythtv options I notice it fails?

Any ideas?


Thanks

Dom


Last edited by speedsix on Wed May 10, 2006 4:51 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 06, 2006 6:55 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I am having a similar issue. The error I get when the backend runs it automatically is:
Code:
2006-05-06 18:57:34.797 Updating source #1 (Television) with grabber tv_grab_au
2006-05-06 18:57:34.825 ----------------- Start of XMLTV output ----------------
-
2006-05-06 18:57:34.826 New DB connection, total: 3
2006-05-06 18:57:34.828 Connected to database 'mythconverg' at host: localhost

This version of tv_grab_au is not configured!

    If you are using mythfilldatabase, you'll need to configure from
    within mythtv-setup (or with an appropriate --config-file option),
    otherwise simply run with the --configure option.

2006-05-06 18:57:36.465 ------------------ End of XMLTV output -----------------
-
Error in 1:1: unexpected end of file
This is with the australian grabber from www.immir.com/tv_grab_au
When I run mythfilldatabase from the command line as mythtv, here is an extract from the output:
Code:
2006-05-07 10:25:29.728 Updating source #1 (Television) with grabber tv_grab_au
2006-05-07 10:25:29.740 ----------------- Start of XMLTV output -----------------
2006-05-07 10:25:29.741 New DB connection, total: 3
2006-05-07 10:25:29.742 Connected to database 'mythconverg' at host: localhost
grabbing 7 days into /tmp/myth6XTGA1
tv_grab_au: downloads = 7 guide pages, 687 detail pages
0 failed detail pages, 0 stop times adjusted
tv_grab_au: finished in 376 seconds
2006-05-07 10:31:47.052 ------------------ End of XMLTV output ------------------
I have configured it from within mythtv-setup, and the setup options page that deals with mythfilldatabase does niot specify any additional options to be passed to mythfilldatabase


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 06, 2006 8:34 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
One of the grabbers has a dependency on the HOME variable being set (and exported). I think there was eventually a solution for the problem involving a wrapper script. Searching for the name of the grabber in the forums should turn it up...


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 12:24 am 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
Hi Greg.

I had the same problem for ages. I had to add debug into the tv_grab_au script just before that error to find out what user it was running as, what config file it was trying to open, what that file's permissions were, et c.

In the end, I don't remember what fix I had to do, but I think it was probably chmod 777 the config file.

I will try to check tonight when I get home.

_________________
| Nigel Pearson, nigel.pearson.au@gmail.com
| "Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 1:08 am 
Offline
Joined: Sun Feb 08, 2004 8:03 am
Posts: 71
Location: Switzerland
I had the same issue as well. I looked in /var/log/mythtv/mythbackend.log and realized, that it was searching the config file in /root/.mythtv/... so I just copied my config file from /home/mythtv/.mythtv to /root/.mythtv/... after that, it worked for me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 1:44 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I think tjc might have, in an inspirational, awe inspiring piece of insight, hit the nail on the head. Haven't worked out if that is the real problem yet, but I get exactly the same error from the command line if I do:
Code:
unset HOME
mythfilldatabase


EDIT: I have thought about the best way to fix this, and I believe it is to make the backend task have the HOME environment variable set to mythtv's home directory (since it runs as the mythtv user). To do this I added a line after this line in /etc/init.d/mythtv-backend
Code:
USER=mythtv
that looks like this:
Code:
HOME=/home/$USER

Can anyone see any reasons why this change should not be made to the mythtv-backend script that comes with knoppmyth by default?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 7:08 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Greg Frost wrote:
I think tjc might have, in an inspirational, awe inspiring piece of insight, hit the nail on the head.

;-) Just a long memory...


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 10, 2006 4:47 am 
Offline
Joined: Wed Mar 29, 2006 4:19 am
Posts: 29
Greg Frost wrote:
EDIT: I have thought about the best way to fix this, and I believe it is to make the backend task have the HOME environment variable set to mythtv's home directory (since it runs as the mythtv user). To do this I added a line after this line in /etc/init.d/mythtv-backend
Code:
USER=mythtv
that looks like this:
Code:
HOME=/home/$USER

Can anyone see any reasons why this change should not be made to the mythtv-backend script that comes with knoppmyth by default?


This fixed it thanks!


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 7 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