sloflin72 / mythbox

Automatically exported from code.google.com/p/mythbox
GNU General Public License v2.0
0 stars 1 forks source link

error: (-5, 'No address associated with hostname') #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Launch MythBox
2.Launch Watch TV
3.Select any channel

What is the expected output? What do you see instead?
Expect to see live TV but get "error: (-5, 'No address associated with 
hostname')".

What version of the product are you using? On what operating system?
Backend: Mythbuntu 10.04 MythTV 0.23
Frontend: Ubuntu 10.04 Mythbox RC1

Please provide any additional information below.
The Mythbuntu box also hosts the DHCP and DNS servers. I have tried using 
hostnames in MythTV and MythBox and IP addresses but get the same error message 
with any combination.

Original issue reported on code.google.com by a...@ncs.co.nz on 19 Jun 2010 at 5:31

Attachments:

GoogleCodeExporter commented 9 years ago
I too am getting this when I try and watch live TV, or a recording.  /etc/hosts 
and hostname are correct.  Anyone manage to find a solution to this?  

Original comment by jasge...@gmail.com on 21 Jun 2010 at 6:18

GoogleCodeExporter commented 9 years ago
I also have this problem for attempts at LiveTV and Recordings.

Original comment by mikeg...@gmail.com on 25 Jun 2010 at 4:14

GoogleCodeExporter commented 9 years ago
I have managed to get this going, on my setup at least, and I guess the clue 
was in the error message all along.

I modified my hosts table and extended the localhost entry from:
127.0.0.1   localhost.localdomain   localhost

to:
127.0.0.1   localhost.localdomain   localhost myhostname.mydomain myhostname

Original comment by a...@ncs.co.nz on 25 Jun 2010 at 6:58

GoogleCodeExporter commented 9 years ago
in progress..

Original comment by semir.pa...@gmail.com on 12 Jul 2010 at 3:27

GoogleCodeExporter commented 9 years ago

Original comment by semir.pa...@gmail.com on 12 Jul 2010 at 3:27

GoogleCodeExporter commented 9 years ago
Please try this revision from trunk and let me know if that fixes the problem:

http://code.google.com/p/mythbox/source/detail?r=367a82ade8746eb27d9b610be2fe598
5fe8e582c

Original comment by semir.pa...@gmail.com on 12 Jul 2010 at 4:51

GoogleCodeExporter commented 9 years ago
Thank you for the update. I have loaded the new revision and can confirm that I 
do not get the "error: (-5, 'No address associated with hostname')" message 
after I restored my hosts file to its original state. However, I can also load 
the original RC-1 (I didn't overwrite it with the new release) without the 
error - so I'm not sure how much use my findings are for you. Whether the new 
revision contained other fixes too, I don't know but it does appear to be much 
more responsive.
I really appreciate your efforts - Mythbox is a very nice package.

Original comment by a...@ncs.co.nz on 12 Jul 2010 at 7:04

GoogleCodeExporter commented 9 years ago
Issue 99 has been merged into this issue.

Original comment by semir.pa...@gmail.com on 12 Jul 2010 at 6:50

GoogleCodeExporter commented 9 years ago
Issue 102 has been merged into this issue.

Original comment by semir.pa...@gmail.com on 12 Jul 2010 at 7:04

GoogleCodeExporter commented 9 years ago
Issue 103 has been merged into this issue.

Original comment by semir.pa...@gmail.com on 12 Jul 2010 at 7:05

GoogleCodeExporter commented 9 years ago
Well I've tried the new version. But now I'm getting a new error:Settings 
Error,Connection to MythTV failed: 'dbPool',7000

Thank for your effort.

Original comment by yuko...@gmx.net on 16 Jul 2010 at 9:07

Attachments:

GoogleCodeExporter commented 9 years ago
According to line 57 in your attached mythbox.log, you're not using the version 
in comment #6.

Your log file:
  File "/home/station2/.xbmc/scripts/MythBox/resources/src/mythbox/settings.py", line 235, in verifyMythTVConnectivity
    session = Connection(self, translator=self.translator, platform=self.platform, bus=EventBus(), db=None)

My source code:
http://code.google.com/p/mythbox/source/browse/resources/src/mythbox/settings.py
#225

See the difference?  
Yours: db=None   
Mine : db=db

I would suggest your delete the MythBox directory entirely and create a fresh 
clone.

http://code.google.com/p/mythbox/source/checkout

Original comment by semir.pa...@gmail.com on 16 Jul 2010 at 9:46

GoogleCodeExporter commented 9 years ago
Hi, I tired the new trunk and now get "Cannot map backend host 
Localhost.localdo..."
I'm using a remote backend and trying to specify by IP...

I think the relevant log file snip is: 
File 
"/home/mythserver/.xbmc/scripts/mythbox/resources/src/mythbox/mythtv/conn.py", 
line 1070, in transferFile
    raise Exception, 'Cannot map backendHost %s to backends in db: %s' % (backendHost, self.db().getBackends())
Exception: Cannot map backendHost localhost.localdomain to backends in db: 
[Backend {ip = 192.168.2.5, hostname = mythserver2, port = 6543, master = True}"

Let me know if you need me to try anything else or provide more info.

Original comment by mikeg...@gmail.com on 19 Jul 2010 at 5:17

GoogleCodeExporter commented 9 years ago
Mikeg321, please attach your logfile. Tnx

Original comment by semir.pa...@gmail.com on 19 Jul 2010 at 1:49

GoogleCodeExporter commented 9 years ago
Mythbox Log file attached:

Original comment by mikeg...@gmail.com on 23 Jul 2010 at 5:02

Attachments: