View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Backend Slave
PostPosted: Wed Feb 04, 2004 12:21 am 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2004 2:11 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
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

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2004 11:11 am 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
Ping is working fine. I can connect to the master backend's MySQL from my Windows box with Control Center and view all tables.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2004 11:23 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2004 11:29 am 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
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 ;).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 12, 2004 12:21 am 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 12, 2004 12:34 am 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
I forgot to mention that I can connect to MySQL on 192.168.0.101 (master backend) from my Windows box through Control Center.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 12, 2004 2:15 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
On a slave backend, I don't think you edit mysql.txt.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 12, 2004 11:16 am 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
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]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 12, 2004 11:42 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
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.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:00 pm 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:12 pm 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 15, 2004 10:27 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
"q2dUSRDq" is only used on the MBE itself. To connect over the network "mythtv" is the password.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu