My ongoing experiences with Ubuntu, and later Mythbuntu, as a media center with MythTV. I'm also using the system for a virtual machine server, a mediawiki server and a general all around home infrastructure base.

Sunday, September 28, 2008

mythtv-status missing config errors

The following cron job, running as root, kept emailing me output complaining about "No config found":

[ -x /etc/init.d/mythtv-status ] && /etc/init.d/mythtv-status reload > /dev/null


Replicating it from the commandline worked:

# mythtv-status > /dev/null
No config found; attempting to find mythbackend via UPnP.


After playing around a bit, I figured out it was coming from the MythTV Perl module:
# perl -e "require MythTV"
No config found; attempting to find mythbackend via UPnP.
No backends found. Please copy /root/.mythtv/config.xml from a working MythTV installation instead.
Compilation failed in require at -e line 1.


Copying ~/.mythtv/config.xml from the mythtv account to the root account solved the problem.

2 comments:

dannysauer said...

The myth tv perl module uses the MYTHCONFDIR environment variable to find the myth config, and defaults t the homedir of the current user. I put a line in /etc/environment like

MYTHCONFDIR=/home/mythtv/.mythtv/

and restarted cron (may not have been required, but seemed a good idea anyway). No more messages, and it stays current even if you reconfigure myth. :)

Von Welch said...

Danny - thanks for the tip.