Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#11890 - [mythtv] mythtvbackend doesn't start automatically

Attached to Project: Arch Linux
Opened by Filipp Andjelo (scorp) - Sunday, 26 October 2008, 13:37 GMT
Last edited by Jürgen Hötzel (juergen) - Sunday, 08 November 2009, 23:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Aaron Griffin (phrakture)
Jürgen Hötzel (juergen)
Architecture i686
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No


mythtvbackend doesn't start automatically, although rc.conf entry is done.
The "Starting MythTV Backend [DONE]" message is shown on booting, but
nothing is running. You have to run "/etc/rc.d/mythtvbackend start" manually
after booting.

Additional info:
* package version mythtv-0.21-1

Steps to reproduce:

This task depends upon

Closed by  Jürgen Hötzel (juergen)
Sunday, 08 November 2009, 23:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in SVN trunk (preparing 0.22 release)
Comment by Bill (QuimaxW) - Thursday, 30 October 2008, 03:05 GMT
I can confirm this scenario. I have not rebooted my mythbackend server, but when it reboots the mythbackend daemon doesn't start. When it's rebooted, I'll grab a log and post it.
Comment by Glenn Matthys (RedShift) - Friday, 05 December 2008, 22:02 GMT
What's the status of this issue?
Comment by Bill (QuimaxW) - Saturday, 06 December 2008, 01:05 GMT
So far, it still needs to be restarted after a system reboot.
Comment by Jürgen Hötzel (juergen) - Tuesday, 09 December 2008, 23:26 GMT
mythbackbend need to be startet AFTER mysqld: You checked this?
Comment by Bill (QuimaxW) - Wednesday, 10 December 2008, 02:58 GMT
From my rc.conf file:

DAEMONS=(syslog-ng sensors cpufreq network openntpd portmap nfslock nfsd mysqld mythbackend httpd authdaemond courier-imap netfs sshd crond cups samba mdadm mythbackend)

I added the 2nd mythbackend a while ago just to see if it would have any effect. It didn't, but I never took it out.
Comment by Glenn Matthys (RedShift) - Wednesday, 10 December 2008, 08:53 GMT
Have you checked what's in /var/log/mythbackend.log? Please post the full log.
Comment by Jürgen Hötzel (juergen) - Wednesday, 10 December 2008, 09:14 GMT
Can reproduce this:

2008-12-08 10:17:45.275 Cannot locate your home directory. Please set the environment variable HOME or MYTHCONFDIR

HOME is not set when called by sysinit but on manual restart.
Comment by Jürgen Hötzel (juergen) - Wednesday, 10 December 2008, 09:20 GMT
BTW. mythbackend is executed as "root", not really a good setup. I think we should change this in the long run: But this will break users config on update...

User/Group: mythtv
HOME: /etc/mythtv

Comment by Aaron Griffin (phrakture) - Wednesday, 10 December 2008, 17:50 GMT
What about using MYTHCONFDIR instead of HOME for that, if we're using /etc
Comment by Jürgen Hötzel (juergen) - Wednesday, 10 December 2008, 21:17 GMT
So this is my plan for the next release:

Include etc/conf.d/mysqlbackend (sourced by mythbackend rc script) for setting this options

MYTH_OPTIONS # Options passed to mythbackend process

MYTH_USERID # defaulting to root (for backward compatibility)

MYTH_GROUPID # defaulting to root

MYTHCONFDIR # defaulting to Home of MYTH_USERID

Any options?
Comment by Aaron Griffin (phrakture) - Wednesday, 10 December 2008, 21:27 GMT
+1 from me
Comment by Tomas M. (eldragon) - Wednesday, 22 July 2009, 14:06 GMT
so whats the status on this?
Comment by Filipp Andjelo (scorp) - Wednesday, 22 July 2009, 14:31 GMT
Don't know, switched to freevo for a long time :)
Comment by Jürgen Hötzel (juergen) - Friday, 24 July 2009, 06:05 GMT
Sorry for the delay...Me also don't uses MythTV anymore. But i will take care of it...
Comment by lklklk (kknull) - Monday, 17 August 2009, 14:35 GMT
adding export HOME=/root/ in /etc/rc.d/mythbackend do the tricks, although it is a dirty hack...
Comment by Matthew Gyurgyik (pyther) - Monday, 05 October 2009, 21:23 GMT
I can confirm this is still an issue.
Comment by Jürgen Hötzel (juergen) - Saturday, 07 November 2009, 13:04 GMT
in avoidance of of duplicated efforts:

I cannot participate on Bug Squashing Day. But will do a 0.22 release tomorrow and hope to get rid of most bugs.