[mythtv-commits] Ticket #3913: After WOL'ing the DB server, mythfrontend connects to wrong host

MythTV mythtv at cvs.mythtv.org
Fri Aug 31 12:31:26 UTC 2007


#3913: After WOL'ing the DB server, mythfrontend connects to wrong host
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  ijr    
     Type:  defect     |      Status:  new    
 Priority:  minor      |   Milestone:  unknown
Component:  mythtv     |     Version:  head   
 Severity:  medium     |     Mlocked:  0      
-----------------------+----------------------------------------------------
 Hello,

 I've just configured mythfrontend to WOL my database server (which is also
 my master backend). The box wakes up fine, but mythfrontend does not
 realize that mysqld is available. Instead, it keeps retrying. It would
 seem to me that it tries to connect to localhost instead of using
 ~/.mythtv/mysql.txt. I'm running trunk r14355. Please see attached log:

 {{{
 laga at prometheus:~$ mythfrontend
 2007-08-31 14:07:36.242 Using runtime prefix = /usr
 2007-08-31 14:07:36.245 DPMS is disabled.
 2007-08-31 14:07:40.402 Cannot find (ping) database host 192.168.0.118 on
 the network
 2007-08-31 14:07:40.422 New DB connection, total: 1
 2007-08-31 14:07:40.427 Using WOL to wakeup database server (Try 1 of 5)
 2007-08-31 14:08:10.441 Using WOL to wakeup database server (Try 2 of 5)
 2007-08-31 14:08:40.451 Using WOL to wakeup database server (Try 3 of 5)
 2007-08-31 14:09:10.465 Using WOL to wakeup database server (Try 4 of 5)
 2007-08-31 14:09:40.477 Using WOL to wakeup database server (Try 5 of 5)
 2007-08-31 14:10:10.489 WOL failed, unable to connect to database!
 2007-08-31 14:10:10.490 Unable to connect to database!
 2007-08-31 14:10:10.490 Driver error was [1/1045]:
 QMYSQL3: Unable to connect
 Database error was:
 Access denied for user 'mythtv'@'localhost' (using password: YES)

 QSqlQuery::exec: database not open
 QSqlQuery::exec: database not open
 2007-08-31 14:10:10.545 DB Error (KickDatabase):
 }}} etc..

 I've taken a look at mythdbcon.cpp but I couldn't find the root of the
 problem - I'm not a coder, though. I also made sure that the mysqld was
 indeed available by logging in remotely.

 Regards,

 Michael

 p.s.: here's my mysql.txt with the comments removed:

 {{{
 DBHostName=192.168.0.118
 #DBHostPing=no
 DBUserName=mythtv
 DBPassword=<deleted>
 DBName=mythconverg
 DBType=QMYSQL3
 #LocalHostName=my-unique-identifier-goes-here
 WOLsqlReconnectWaitTime=30
 WOLsqlConnectRetry=5
 WOLsqlCommand=sudo etherwake -i eth1 <deleted>
 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3913>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list