Author |
Message |
borgednow
|
Posted: Mon Apr 02, 2007 12:57 pm |
|
Joined: Wed Aug 23, 2006 3:07 pm
Posts: 339
|
Well, now my master backend keeps giving me messages about not being able to connect to the master backend server. It seems to happen every time I go in and play with the slave.
I had 2 perfectly working mbe's, but I just had to mess with them. Now I have 1 mbe that I don't trust, and a slave that won't work.
Do you guys still claim the mbe/sbe system is elegant and not a kludge?
|
|
Top |
|
 |
jigawho
|
Posted: Mon Apr 02, 2007 3:13 pm |
|
Joined: Thu Feb 09, 2006 7:18 pm
Posts: 112
|
I assume the problem is that the frontend on the same machine is what's giving that error.
If I remember correctly I had this problem too, I think I had forgotten to change one of the addresses in myth-setup on the mbe ( i.e. change it from localhost to the actual IP). I have also had a problem with the backend not starting reliably which someone posted a fix for. I'd try checking to make sure the backend is in fact going.
I use a mbe/sbe setup in my house, and while I wouldn't describe it as a kludge, I agree that setting it up isn't as elegant as it could be. However, I think it's pretty darn good considering the price.
|
|
Top |
|
 |
slowtolearn
|
Posted: Mon Apr 02, 2007 4:32 pm |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
borgednow wrote: Do you guys still claim the mbe/sbe system is elegant and not a kludge? I do, as it allows for many different configurations. Is it perfect? No. Could it be easier to setup? Absolutely.
With that said, you may want to check out the user's forum at http://www.mythtv.org/mailman/listinfo/mythtv-users/ . Cecil & Co. put Knoppmyth together, but the core MythTV and modules are developed by Isaac & Co. at www.mythtv.org You may want to browse http://svn.mythtv.org/trac/ to see if they are already working on changes that would suit your requirements.
|
|
Top |
|
 |
borgednow
|
Posted: Mon Apr 02, 2007 6:30 pm |
|
Joined: Wed Aug 23, 2006 3:07 pm
Posts: 339
|
jigawho wrote: I assume the problem is that the frontend on the same machine is what's giving that error.
If I remember correctly I had this problem too, I think I had forgotten to change one of the addresses in myth-setup on the mbe ( i.e. change it from localhost to the actual IP). I have also had a problem with the backend not starting reliably which someone posted a fix for. I'd try checking to make sure the backend is in fact going.
I use a mbe/sbe setup in my house, and while I wouldn't describe it as a kludge, I agree that setting it up isn't as elegant as it could be. However, I think it's pretty darn good considering the price.
Don't get me wrong. I think mythtv is awesome. I'm sorry if I came across as frustrated. I didn't mean to take it out here.
The mbe is going. I just have to keep restarted it with alt-3 every time I muck with the sbe's settings in mythtv-setup.
MythTV *is* more than darn good. The beats the heck out of anything else for this category. If it's frustrating at times, it's only because it does more than most other products, and does it as freeware. Linux itself is frustrating at times for much the same reason.
|
|
Top |
|
 |
borgednow
|
Posted: Mon Apr 02, 2007 6:42 pm |
|
Joined: Wed Aug 23, 2006 3:07 pm
Posts: 339
|
slowtolearn wrote: borgednow wrote: Do you guys still claim the mbe/sbe system is elegant and not a kludge? I do, as it allows for many different configurations. Is it perfect? No. Could it be easier to setup? Absolutely. With that said, you may want to check out the user's forum at http://www.mythtv.org/mailman/listinfo/mythtv-users/ . Cecil & Co. put Knoppmyth together, but the core MythTV and modules are developed by Isaac & Co. at www.mythtv.org You may want to browse http://svn.mythtv.org/trac/ to see if they are already working on changes that would suit your requirements.
Absolutely. I'm not bitching about KnoppMyth or about MythTV. I'm merely just a tad frustrated with the MBE/SBE concept and implementation itself.
I knew I was gambling when I started messing with the perfectly working systems, and I did it anyway. Now I'm stuck trying to decide whether to just wipe the slave and reinstall, or spend the rest of the week trying to figure out what exactly is wrong.
The beautiful thing about KnoppMyth is that it makes installation relatively easy and painless. But there is no simple and painless setup program for configuring a machine to be a slave back end.
The devil is in the details, and the details are a bitch to find. It could be that the problem lies in that I set up the cards and inputs (but no video source) when I set up the backend ip address. The cards weren't there after a reboot, so I had to re-enter them. It makes sense, because the backend at first was connecting to the local mysql, but on the reboot it was connecting to the mbe mysql database.
Also, I've got some suspicions that some relevent data isn't stored in mysql, but I haven't had the energy to pick up the source code and start hunting.
|
|
Top |
|
 |
nigelpearson
|
Posted: Mon Apr 02, 2007 7:33 pm |
|
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location:
Sydney, Australia
|
borgednow wrote: the file says: Code: # Instead of skip-networking the default is now to listen only on # which is more compatible and not less secure.
Aah. OK. You need to change the line: Code: bind-address = 127.0.0.1 to contain that machine's IP address ( e.g. 192.168.0.10 or 10.0.0.5)[/code] And then restart mysql with these new settings: Code: /etc/init.d/mysql restart
Both the editing and restart need to be done as root.
_________________ | Nigel Pearson, nigel.pearson.au@gmail.com| "Things you own end up owning you" - Tyler, Fight Club
|
|
Top |
|
 |
nigelpearson
|
Posted: Mon Apr 02, 2007 7:39 pm |
|
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location:
Sydney, Australia
|
borgednow wrote: Well, now my master backend keeps giving me messages about not being able to connect to the master backend server. It seems to happen every time I go in and play with the slave.
OK. Can you post the errors here? (maybe with some explaination of your machine's IP addresses or names).
Another question, do you have "custom identifier" (second page of General prefs) for either machine? Are they the same on both machines?
_________________ | Nigel Pearson, nigel.pearson.au@gmail.com| "Things you own end up owning you" - Tyler, Fight Club
|
|
Top |
|
 |
nigelpearson
|
Posted: Mon Apr 02, 2007 7:44 pm |
|
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location:
Sydney, Australia
|
borgednow wrote: Also, I've got some suspicions that some relevent data isn't stored in mysql, but I haven't had the energy to pick up the source code and start hunting.
The only stuff that isn't in the MBE database is the bootstrapping (mysql.txt, which you could have several of on one machine), and a few cached image files like the channel icons, album art, et c.
Sorry for the problems you are having. I forgot that current KnoppMyths have a newer MySQL than the Wiki documents.
P.S. You do have backups of your working setups, right?
_________________ | Nigel Pearson, nigel.pearson.au@gmail.com| "Things you own end up owning you" - Tyler, Fight Club
|
|
Top |
|
 |
borgednow
|
Posted: Mon Apr 02, 2007 10:00 pm |
|
Joined: Wed Aug 23, 2006 3:07 pm
Posts: 339
|
nigelpearson wrote: borgednow wrote: Also, I've got some suspicions that some relevent data isn't stored in mysql, but I haven't had the energy to pick up the source code and start hunting. The only stuff that isn't in the MBE database is the bootstrapping (mysql.txt, which you could have several of on one machine), and a few cached image files like the channel icons, album art, et c.Sorry for the problems you are having. I forgot that current KnoppMyths have a newer MySQL than the Wiki documents. P.S. You do have backups of your working setups, right?
It's hardly your fault that the documentation for a workaround isn't absolutely current to the most recent release. Documentation rarely can stay current with systems, especially for workarounds.
Regarding backups, not really, but the changes I made are simply the ones from the wiki, so undoing them on the master isn't going to be difficult.
The only way I know to undo the slave though, even with a backup, is to reinstall.
|
|
Top |
|
 |
borgednow
|
Posted: Mon Apr 02, 2007 10:08 pm |
|
Joined: Wed Aug 23, 2006 3:07 pm
Posts: 339
|
nigelpearson wrote: borgednow wrote: Well, now my master backend keeps giving me messages about not being able to connect to the master backend server. It seems to happen every time I go in and play with the slave. OK. Can you post the errors here? (maybe with some explaination of your machine's IP addresses or names). Another question, do you have "custom identifier" (second page of General prefs) for either machine? Are they the same on both machines?
I didn't touch the second page of general at all. The only thing that threw me for a loop at first was that the sbe, when I tried to exit out of mythtv-setup, told me that the /myth/store directory didn't exist. In general, it said it was for recordings, so I changed that back (on the sbe) to /myth/tv to match the mbe.
I didn't see error messages when it was happening. After exiting from mythtv-setup on the sbe, the mbe's backend would just stop and I'd get messages on both when trying to do anything. The messages were simply that the backend wasn't running. Pressing alt-3 on the mbe restarted it and I was fine then, except for the sbe's tuners not being able to be used.
I didn't look in the log files for errors. I assumed that running mythtv-setup on the sbe and changing things caused the mbe's backend to quit because it was supposed to do that. I'll hunt through the log files to see if anything comes up.
|
|
Top |
|
 |
borgednow
|
Posted: Mon Apr 02, 2007 10:16 pm |
|
Joined: Wed Aug 23, 2006 3:07 pm
Posts: 339
|
nigelpearson wrote: borgednow wrote: the file says: Code: # Instead of skip-networking the default is now to listen only on # which is more compatible and not less secure.
Aah. OK. You need to change the line: Code: bind-address = 127.0.0.1 to contain that machine's IP address ( e.g. 192.168.0.10 or 10.0.0.5)[/code] And then restart mysql with these new settings: Code: /etc/init.d/mysql restart Both the editing and restart need to be done as root.
Done. Thanks.
It didn't change anything, but I may need to restart the sbe and/or the mbe. If that doesn't help, I'll remove and add back the tuners on the sbe too.
Thanks
|
|
Top |
|
 |
nigelpearson
|
Posted: Tue Apr 03, 2007 12:48 am |
|
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location:
Sydney, Australia
|
1. Backups. You can easily change/rebuild the slave backend, but if it has been talking to the master backend, it will have been changing that machine's database, and it might require some fiddling to put it back. Not a big deal, though.
2. /mnt/store not existing - the Wiki needs to say change that to /myth/tv (as you guessed)
3. Log files - look in both /var/log/mythtv/mythbackend.log files, plus ~mythtv/.xsession-errors for the slave frontend
_________________ | Nigel Pearson, nigel.pearson.au@gmail.com| "Things you own end up owning you" - Tyler, Fight Club
|
|
Top |
|
 |
borgednow
|
Posted: Thu Apr 05, 2007 1:28 pm |
|
Joined: Wed Aug 23, 2006 3:07 pm
Posts: 339
|
I got it working.
Restarting the machines wasn't doing it. It turned out I still had to hit alt-3 on the sbe to get the slave's backend to start up. Once I did that, the cards were able to be used.
Unfortunately, I mucked other things up first before figuring that out. I reset the slave to be it's own mbe so that I could remove the cards it had, just in case that was the problem.
After pointing it to it's own mbe IP and restarting it, I noticed that it had a video source still. Well, since it wasn't accessing another machine any longer, or so I thought, I deleted that video source. Mistake.
It just meant that I had to remove all the tuners on both systems, recreate the video source, and add back the cards, then rerun mythfilldatabase. In the process, open mysql and delete the extra cardinput with cardid of 0 that seems to get randomly created during this process.
But it works. I'm happy. It can record 4 programs at once on the mbe now, which means I can just set up programs to record and not worry about details.
The only drawback seems to be that the available space is only whatever is on the mbe. None of the recordings seem to be stored on the sbe.
|
|
Top |
|
 |
nigelpearson
|
Posted: Fri Apr 06, 2007 5:25 am |
|
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location:
Sydney, Australia
|
borgednow wrote: I got it working. Cool! Quote: The only drawback seems to be that the available space is only whatever is on the mbe. None of the recordings seem to be stored on the sbe.
Hmmm. On my setup, when the SBE is on, my available space increases.
What does this command do on the MBE: Code: $ echo "Select cardid,videodevice,hostname from capturecard;" | mysql -u root mythconverg cardid videodevice hostname 1 0 mythtv-server 2 1 mythtv-server 3 0 mythtv-slave $
_________________ | Nigel Pearson, nigel.pearson.au@gmail.com| "Things you own end up owning you" - Tyler, Fight Club
|
|
Top |
|
 |
borgednow
|
Posted: Fri Apr 06, 2007 2:30 pm |
|
Joined: Wed Aug 23, 2006 3:07 pm
Posts: 339
|
nigelpearson wrote: Hmmm. On my setup, when the SBE is on, my available space increases. What does this command do on the MBE: Code: $ echo "Select cardid,videodevice,hostname from capturecard;" | mysql -u root mythconverg cardid videodevice hostname 1 0 mythtv-server 2 1 mythtv-server 3 0 mythtv-slave $ Code: +--------+-------------+----------+ | cardid | videodevice | hostname | +--------+-------------+----------+ | 1 | /dev/video0 | bigdog | | 2 | /dev/video1 | bigdog | | 3 | /dev/video0 | bigcat | | 4 | /dev/video1 | bigcat | +--------+-------------+----------+ 4 rows in set (0.01 sec)
bigdog is the name of my mbe. I set it that way because the other machine, which was going to be wiped and rebuilt, still had the hostname of mythtv.
bigcat is my sbe.
|
|
Top |
|
 |