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

Backend Slave
http://forum.linhes.org/viewtopic.php?f=1&t=648
Page 1 of 1

Author:  jesse [ Wed Feb 04, 2004 12:21 am ]
Post subject:  Backend Slave

I am trying to get a master backend/frontend to work with a slave backend/front end.

I followed the scant instructions here:

[url]http://www.mythtv.org/docs/mythtv-HOWTO-9.html#ss9.3[url]

I tried googling for a better tutorial/faq but couldn't find one.

I keep getting the error message:
Connection to master backend server timed out
when I try to view live tv. I have verified over and over the IP Addresses. I have my computer on static DHCP.

Is there something I am missing or is there a good tutorial for slave/master setups?

Thanks.

Author:  cesman [ Wed Feb 04, 2004 2:11 am ]
Post subject: 

Can you ping the master from the slave? Did you configure MySQL on the master to listen and allow netowrk connections?http://mysettopbox.tv/doc.html#frontend

Author:  jesse [ Wed Feb 04, 2004 11:11 am ]
Post subject: 

Ping is working fine. I can connect to the master backend's MySQL from my Windows box with Control Center and view all tables.

Author:  cecil [ Wed Feb 04, 2004 11:23 am ]
Post subject: 

The IP fields in mythtv-setup on the master backend should both be the MBE's IP. On the SBE it should be it's IP and the MBE's IP. Is this so? Are both running the same version of mythtv?

Author:  jesse [ Wed Feb 04, 2004 11:29 am ]
Post subject: 

The Setup:
Master Backend IP: 192.168.0.101
Slave IP: 192.168.0.102

Master Setup:
System IP: 192.168.0.101
Master Backend IP: 192.168.0.101

Slave Setup:
System IP: 192.168.0.102
Master Backend IP: 192.168.0.101

Both are KnoppMyth R4. I don't have R4 V2 yet ;).

Author:  jesse [ Thu Feb 12, 2004 12:21 am ]
Post subject: 

Now that R4 V2 has been released, I decided to try this again.

My first try worked. The slave would connect to the master fine!

However, the slave was getting its video from the master. So I edited /usr/share/mythtv/mysql.txt to be:

Code:
DBHostName=192.168.0.101
DBUserName=mythtv
DBPassword=q2dUSRDq
DBName=mythconverg

# Set the following if you want to use something other than the
# machine's real hostname for identifying settings in the database.
# This is useful if your hostname changes often, as otherwise
# you'll need to reconfigure mythtv (or futz with the DB) every time.
# TWO HOSTS MUST NOT USE THE SAME VALUE
#
LocalHostName=mythtv-upstairs


I get the following error when I run mythfrontend:
Code:
Unable to connect to database:
Driver error was [1/-1]:
0MYSQL3: Unable to connect
Database error was:
'192.168.0.102' (Using password: YES)

couldn't open db


By the way, the MythTV documentation says this file is at /usr/local/share/mythtv/mysql.txt but it is at /usr/share/mythtv/mysql.txt on KnoppMyth.

Author:  jesse [ Thu Feb 12, 2004 12:34 am ]
Post subject: 

I forgot to mention that I can connect to MySQL on 192.168.0.101 (master backend) from my Windows box through Control Center.

Author:  cesman [ Thu Feb 12, 2004 2:15 am ]
Post subject: 

On a slave backend, I don't think you edit mysql.txt.

Author:  jesse [ Thu Feb 12, 2004 11:16 am ]
Post subject: 

Myth TV's documention says that you are supposed to http://www.mythtv.org/docs/mythtv-HOWTO-9.html#ss9.3.

No matter what, the slave was getting the live video from the master instead of from itself. Is this normal?[/list]

Author:  cesman [ Thu Feb 12, 2004 11:42 am ]
Post subject: 

From my understand, yes it is normal. If you are watching live TV and have a tuner in the slave, then it should use that before using one on the master.

Author:  jesse [ Sat Feb 14, 2004 10:00 pm ]
Post subject: 

Ok, I finally figured out what was wrong. I should have known better :oops:. Anyway, I was editing mysql.txt with Windows. The new line characters in Windows text files are different than Linux.

Anyway, its working now!

I checked out whether the slave should stream its own video. It will not do this by default. It is normal for a slave to start live streaming based on the card id.

I couldn't find the way to change this. There is a way and once I find it, I will post it here.

Author:  jesse [ Sat Feb 14, 2004 10:12 pm ]
Post subject: 

One more tip. KnoppMyth is using "q2dUSRDq" as the password for the mythtv MySQL user. This is different than in previous versions that used "mythtv". Keep this in mind as you make your mysql.txt file.

Author:  cesman [ Sun Feb 15, 2004 10:27 am ]
Post subject: 

"q2dUSRDq" is only used on the MBE itself. To connect over the network "mythtv" is the password.

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