[mythtv-users] Cannot run mythbackend with init.d script - runs fine at command prompt.

Chad masterclc at gmail.com
Sat Sep 30 20:34:55 UTC 2006


On 9/30/06, drbob <drbob at gmx.co.uk> wrote:
> I've just installed mythtv from the 0.19 debian sarge package. Install
> seemed to go fine but I'm running into a problem starting the backend.
> If I start the backend from a terminal window it loads up and happily
> sits there downloading EIT guide data and waiting for a frontend to
> connect.
>
> If I try to start it using the init script, it fails. Looking in the log
> file I see:
>
> QSqlQuery::exec: database not open
> QSqlQuery::exec: database not open
> 2006-09-30 20:57:50.580 DB Error (KickDatabase):
> Query was:
> SELECT NULL;
> No error type from QSqlError?  Strange...
> 2006-09-30 20:57:50.639 Failed to init MythContext, exiting.
> 2006-09-30 21:13:53.852 Using runtime prefix = /usr
> 2006-09-30 21:13:53.909 New DB connection, total: 1
> 2006-09-30 21:13:54.041 Unable to connect to database!
> 2006-09-30 21:13:54.044 Driver error was [1/1045]:
> QMYSQL3: Unable to connect
> Database error was:
> Access denied for user: 'mythtv at localhost' (Using password: YES)
>
> QSqlQuery::exec: database not open
> QSqlQuery::exec: database not open
> 2006-09-30 21:13:54.184 DB Error (KickDatabase):
> Query was:
> SELECT NULL;
> No error type from QSqlError?  Strange...
> 2006-09-30 21:13:54.243 Failed to init MythContext, exiting.
>
>
> I could understand the above if there were a problem with the database
> password, however it works fine if I run it from the terminal prompt,
> whether logged in as root or as the mythtv user. Any help would be much
> appreciated.
>
> regards,
>
> drbob

We used to have this problem on Gentoo as well.  Can you post your
init script?  Off hand I cannot remember exactly the problem (or the
fix) but it had to do with chaning the $HOME variable IIRC.  (possibly
/var/lib/mythtv or /etc/mythtv..?).

-Chad


More information about the mythtv-users mailing list