LinHES Forums
http://forum.linhes.org/

'Automatically run Mythfilldatabase' fails (SOLVED)
http://forum.linhes.org/viewtopic.php?f=6&t=9941
Page 1 of 1

Author:  speedsix [ Sat May 06, 2006 2:48 pm ]
Post subject:  'Automatically run Mythfilldatabase' fails (SOLVED)

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

Author:  Greg Frost [ Sat May 06, 2006 6:55 pm ]
Post subject: 

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

Author:  tjc [ Sat May 06, 2006 8:34 pm ]
Post subject: 

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...

Author:  nigelpearson [ Mon May 08, 2006 12:24 am ]
Post subject: 

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.

Author:  beamland [ Mon May 08, 2006 1:08 am ]
Post subject: 

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.

Author:  Greg Frost [ Mon May 08, 2006 1:44 am ]
Post subject: 

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?

Author:  tjc [ Mon May 08, 2006 7:08 am ]
Post subject: 

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...

Author:  speedsix [ Wed May 10, 2006 4:47 am ]
Post subject: 

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!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/