[mythtv-users] Mythfrontend can't ping database host

Mike Perkins mikep at randomtraveller.org.uk
Wed Dec 26 17:12:27 UTC 2012


On 26/12/12 16:04, Gabe Rubin wrote:
> On Wed, Dec 26, 2012 at 3:46 AM, Mike Perkins
> <mikep at randomtraveller.org.uk>wrote:
>
>> On 25/12/12 15:54, Tim Phipps wrote:
>>
>>> Quoting Gabe Rubin <gaberubin at gmail.com>:
>>>
>>>> Cannot find (ping) database host 192.168.1.101 on the network
>>>>
>>>
>>> That's because 192.168.1.101 is not a host name it's an IPv4 address. Try
>>> using
>>> the hostname instead. I had the same problem when I moved a lot of stuff
>>> to
>>> IPv6: mythbackend will only ping an IPv4 resolvable hostname and I didn't
>>> have
>>> an IPv4 address for my database.
>>>
>>>   You're much more likely to be able to ping an IP address than you are
>> pinging a hostname. After all, /someone/ has to resolve that hostname into
>> an IP address for the ping to work at all!
>>
>> The resolving can be done either (or both) of two ways: You either have an
>> /etc/hosts file in the machine that needs to do the resolving or someone on
>> your internal network has a DNS resolver. This last is usually your router
>> or firewall. If you are all on the same box (a combined BE/FE) then a hosts
>> file is usually enough.
>>
>> 192.168.1.101 is either: powered off, disconnected from the network, bad
>> cable, bad network configuration so that it's not listening, not mapped
>> (see above) or firewalled. Pick one.
>>
>> --
>>
>>
> It is on the same machine I am trying to do the ping from.  I can regularly
> ping the machine (and can do that from another machine in the network).  I
> could see a firewall issue, but don't think I have any firewall set up on
> the machine (aside from the NAT router it is behind).  I am  also able to
> do this, so don't understand why myth is having difficulty:
> [root at localhost mythtv]# mysqladmin ping -h 192.168.1.101 -u mythtv -p
> Enter password:
> mysqld is alive
>
That's not a ping, that's a mysql function. And what mysql can do from the 
command line bears little resemblance to what mythtv requires in its database.

It looks like you have mysql connectivity from outside the box, so that (should) 
rule out a mysql configuration issue.

You'll need to run mythv-setup to determine exactly why the myth backend doesn't 
respond. The first page of 'General' (IIRC) should have 192.168.1.101 in both 
address locations for a master back end. If that is the case I'd start looking 
for an on-board firewall or filter. Also, finding and checking all instances of 
"mysql.txt" (which has nothing to do with mysql) and "config.xml".

-- 

Mike Perkins



More information about the mythtv-users mailing list