Thread: Problem connecting to backend

Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. Default Problem connecting to backend #1
    Solter is offline MythTV Friend in Training
    Join Date
    Sep 2004
    Posts
    5
    MythTV Gallery
    0
    I have a frontend box that I'm trying to get to connect to a mythbackend on a separate box.

    mysql access works fine, and I can telnet from the mythfrontend box to the mythbackend box, but whenever mythfrontend tries to speak to the backend I get this:




    Code:
    Could not connect to the master backed server -- Is it Running? Is the address set for it in the setup program correct?
    The logged output form mythfrontend shows:

    Code:
    Connecting to backend server: tux:6543 (try 1 of 5)
    Connection timed out.
    Like I said, I can telnet to that port on the backend machine (tux). I've also tried using the IP address and the fqdn in the backend setup, but still doesn't work.

    Other relevant (?) details...
    mythbackend box = P4 running Gentoo 2.6.8-r3
    mythfrontend box = AMD64 running Gentoo 2.6.8-r4

    Anyone got any suggestions?
    Reply With Quote  

  2. Default #2
    laga is offline Cornerstone of the Community
    Join Date
    May 2004
    Location
    Saarland, Germany
    Posts
    2,047
    MythTV Gallery
    0
    Are you sure you've entered the ip adress of the backend correctly in mythsetup? Dont use 127.0.0.1 but the real ip.


    www.mythwiki.de - Das deutsche MythTV Wiki!

    [..]denn sie legten die Köpfe auf die Seite und blickten verständig drein, was gerade sogut ist, wie eine Sache verstehen, und sehr viel bequemer. - Oscar Wilde
    Reply With Quote  

  3. Default Check mysql.txt file on frontend #3
    shadowlord is offline MythTV Friend
    Join Date
    Sep 2004
    Posts
    41
    MythTV Gallery
    0
    mythfrontend is very picky about being able to access the mySQL database. If it can't access the mySQL, the frontend won't start; even if everything else if okay.

    It sounds to me like you need to check your mysql.txt file (on the frontend machine) and ensure that the DBHostName field is set to the IP address of your backend server.

    mysql.txt is found in (on RedHat 9, anyway):

    /usr/share/mythtv


    Reply With Quote  

  4. Default #4
    Solter is offline MythTV Friend in Training
    Join Date
    Sep 2004
    Posts
    5
    MythTV Gallery
    0
    Accessing mysql (on the backend) from the frontend is fine - works perfectly.

    I know this because when I try using ip address vs hostname vs fqdn in the mythbacked setup program, the frontend picks up the new setting fine.

    It just refuses to connect to that hostort combination . (the error message on the frontend includes the correct host/ip address of the backend).

    I can telnet to the backend port fine. It's got me stumped.


    Reply With Quote  

  5. Default #5
    shadowlord is offline MythTV Friend
    Join Date
    Sep 2004
    Posts
    41
    MythTV Gallery
    0
    Well, if you can telnet through to that port, that means the problem lies somewhere on your frontend machine.

    Does your backend split out any messages (either to the console or the /var/log/myth/mythbackend.log)? If the connection is established, the backend splits out a message like:

    Code:
    2004-09-23 08:26:08 adding: p3 as a client (events: 0)
    ... where p3 would be substituted with the name of your frontend.

    Do you have any kind of firewall on either your machines? Obviously there isn't one blocking telnet; but that doesn't mean there isn't some other blockage of the mythfrontend app.[/code]


    Reply With Quote  

  6. Default #6
    wbrokow1 is offline MythTV Friend
    Join Date
    Jan 2005
    Posts
    25
    MythTV Gallery
    0
    I am getting the same exact problem connecting to the backend.

    The log file for the backend(0.17 mythtv) is:

    tarting up as the master server.
    Starting up as the master server.
    ICE default IO error handler doing an exit(), pid = 7642, errno = 107
    Couldn't open database
    Couldn't open database
    Couldn't open database
    Couldn't open database
    Couldn't open database
    Couldn't open database

    Any help?


    Reply With Quote  

  7. Default Same problem here #7
    mrreload is offline MythTV Rookie
    Join Date
    Mar 2005
    Location
    Huntington Beach, CA
    Posts
    4
    MythTV Gallery
    0
    Has anyone found a solution?
    my specs
    backend: knoppmyth R5A12
    frontend: Mandrake 10.1 2.6.8.12

    Setup previously worked with backend on Mandrake 10.1 but due to performance issues and just overall stupidity on my part I decided to try Knoppmyth out.

    I can connect to backend from frontend running on same box but from nowhere else. But I had to modify mysql access just to connect locally. I did set mysql to allow connections from mythtv@"%" like directions state. but no go.

    I thought Knoppmyth was supposed to be the easy way to install? So far it looks like Mandrake is a no-brainer ( easy install with thacs rpms) , just have the well known no sound issues at first.

    any help provided is much appreciated! I would really like to use Knoppmyth but....


    Reply With Quote  

  8. Default #8
    scotbrady is offline MythTV lil' Helper
    Join Date
    Oct 2004
    Location
    Miami, FL, US
    Posts
    59
    MythTV Gallery
    0
    The only two things you should edit for a backend Knoppmyth install are
    /etc/mysql/my.cnf
    Go to line 26.
    comment out skip-networking.
    If you upgraded mysql-server or did a dist-upgrade then this line in the file will be different and you have to look for the new equivalent (allow hosts maybe?).
    Then restart mysql
    /etc/init.d/mysql restart

    and in mythtv-setup 1.General - change the two IP addresses, then restart mythtv-backend.

    You shouldn't have to do anything else, specifically the allow connections from mythtv@"%". I don't think you have to worry too much about the security of a database like this.

    The frontend for .17 allows you to set the IP for the backend.


    Reply With Quote  

  9. Default #9
    mrreload is offline MythTV Rookie
    Join Date
    Mar 2005
    Location
    Huntington Beach, CA
    Posts
    4
    MythTV Gallery
    0
    Thank you scotbrady!
    I will try editing that file tonight .
    No upgrades performed yet, straight up automatic install from R5A12 CD.

    Since this is my first foray into a debian dist, what command do I use to install software? Do I need to add sources to get things like plf like with Mandrake? I am much more familiar with Suse, Mandrake, Red Hat/Fedora and FreeBSD.

    Is there someplace I am not finding that has docs on Knoppmyth? url?


    Reply With Quote  

  10. Default #10
    scotbrady is offline MythTV lil' Helper
    Join Date
    Oct 2004
    Location
    Miami, FL, US
    Posts
    59
    MythTV Gallery
    0
    knoppmythwiki.homelinux.org
    mysettopbox.tv

    Recently the KnoppMyth forum took a hit so a large amount of the KnoppMyth knowledge is unaccessible.

    apt-get is already set up with a fair amount of sources.
    If you look at /etc/apt/sources.list you can add/uncomment some more.

    As root:
    apt-get update
    to update your sources.
    apt-cache search programName
    to find available packages.


    Reply With Quote  

Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. [Solved] Not connecting to master backend
    By cross157 in forum General
    Replies: 2
    Last Post: 03-23-2008, 05:00 PM
  2. Connecting Frontend to Backend problems. SOLVED
    By MonsterMaxx in forum Installation Issues
    Replies: 2
    Last Post: 01-14-2008, 07:30 PM
  3. frontend won't talk to backend on same system,not connecting
    By belljo in forum Installation Issues
    Replies: 4
    Last Post: 05-17-2007, 02:40 AM
  4. Help with connecting to master backend server
    By roofchop in forum Installation Issues
    Replies: 1
    Last Post: 02-27-2007, 09:21 PM
  5. problem connecting to backend from remote frontend - SOLVED
    By laminac in forum Installation Issues
    Replies: 3
    Last Post: 07-18-2006, 04:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts