2010-10-26, 06:15
no luck with the hosts file. I assume it's trying to access xbmc-live instead of ip/port?
outleradam Wrote:no luck with the hosts file. I assume it's trying to access xbmc-live instead of ip/port?
192.168.1.110 xbmc-live
outleradam Wrote:no luck with the hosts file. I assume it's trying to access xbmc-live instead of ip/port?
outleradam Wrote:no luck with the hosts file. I assume it's trying to access xbmc-live instead of ip/port?
(cmyth)cmyth_conn_connect_file: cmyth_connect(XBMC-live, 6543, 16384) failed
PhracturedBlue Wrote:hmm gethostbyname is a standard unix system call, I think it shuld work with a hosts file. Just to verify, you created /etc/hostsMy /etc/hosts file was already present and had mapping for 127.0.0.1 and 192.168.1.122, to adam-netbook. I added XBMC-live just as it should be.
with the contents:
Code:192.168.1.110 xbmc-live
dteirney Wrote:I assume you have followed all the typical instructions when you setup MythTV. http://wiki.xbmc.org/?title=MythTV#Setup_in_MythTVI did not do this
Quote:To ensure XBMC has proper access to the MythTV mysql database, run the following commands on the mysql server. Replace PASSWORD or xbmc with whatever you prefer, but keep the single quotes for syntax. <xml>mysql -u root -p (enter mysql root password when prompted) mysql> grant SELECT,INSERT,UPDATE,DELETE,CREATE,DROP on mythconverg.* to 'xbmc' identified by 'PASSWORD';</xml>XBMC is getting mysql data from the backend, not the database. All I'm missing is the video file from the backend now. cMyth is taking care of the connection. Or am I wrong?
dteirney Wrote:I'm pretty sure the following is the error I was getting until the /etc/hosts file was updated on my remote XBMC machine.I will test this when I get home.
Code:(cmyth)cmyth_conn_connect_file: cmyth_connect(XBMC-live, 6543, 16384) failed
If "ping XBMC-live" doesn't work from the command line on the machine where XBMC is running you'll need to troubleshoot why. On my remote XBMC machine the "nslookup" and "host" commands can't resolve my MythTV server name but "ping" can. Not sure why.
Quote: The Myth Protocol used by XBMC Media Center uses the IP Address configured in the Myth TV backend to determine where to stream the recordings from.Why are we using the host name?
outleradam Wrote:My /etc/hosts file was already present and had mapping for 127.0.0.1 and 192.168.1.122, to adam-netbook. I added XBMC-live just as it should be.Well I just did some experiments from a remote backend.
Quote:Why are we using the host name?
PhracturedBlue Wrote:I think the answer is that if you have a slave-backend, the only way to find it and ask it for a recording is by hostname since that is what myth stores. Since there isn't an easy way to distinguish between a master and slave backend from cmyth, it uses the hostname provided by myth for a given recording. So all remote frontends need to be able to lookup all remote backends by name (i.e. using the hosts file)
#echo "select data FROM settings WHERE value='BackendServerIP' AND hostname LIKE 'myth0%'\G;" | mysql -u**** -p**** mythconverg
*************************** 1. row ***************************
data: 10.254.2.30
--> 35 QUERY_SETTING myth0 BackendServerIP
<-- 11 192.168.1.1
#wget -q -O - 'http://mythbe:6544/Myth/GetSetting?Key=BackendServerIP&HostName=myth0'
<?xml version="1.0" encoding="utf-8"?>
<GetSettingResponse>
<Count>1</Count>
<HostName>myth0</HostName>
<Values><Value key='BackendServerIP'>192.168.1.1</Value></Values>
</GetSettingResponse>
wagnerrp Wrote:In order to know that a certain recording exists on a certain hostname, you either need access to the database or to a backend. Why not just ask them what the address for that hostname is?
PhracturedBlue Wrote:I don't have hyphens in my hostnames, and am not an expert in the hosts file, but my guess is you still ave an issue here.
Quote:MythTV Version : 26977
MythTV Branch : branches/release-0-24-fixes
svn checkout http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma/ xbmc_dharma
cd xbmc_dharma
./bootstrap
./configure
make
Quote:(cmyth)cmyth_conn_connect: asked for version 8, got version 63
(cmyth)cmyth_conn_connect: asked for version 63, got version 63
(cmyth)__cmyth_rcv_length: read() failed (0)
(cmyth)cmyth_conn_connect: cmyth_rcv_okay() failed
cd xbmc/lib/cmyth/libcmyth
svn merge -c 34874,34908,34909,34910,34911 http://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk/xbmc/lib/cmyth/libcmyth
cd ../../../../
make
Quote:(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE ....
(cmyth)cmyth_proginfo_get_detail: cmyth_proginfo_fill() failed
(cmyth)__cmyth_rcv_ulong: received illegal integer: '-1'
wagnerrp Wrote:In order to know that a certain recording exists on a certain hostname, you either need access to the database or to a backend. Why not just ask them what the address for that hostname is?It's already done like that. My source is:
myth://192.168.1.110/
outleradam Wrote:It's already done like that. My source is:
so somewhere along the way XBMC is translating 192.168.1.110 into server name. This information is only supplied by cmyth and is specified nowhere else on the computer. For some reason, XBMC is taking my information, receiving other information and overriding the server ip with the server name.Code:myth://192.168.1.110/
outleradam Wrote:Ok, I got it to work once, only after I added my server to the hosts file and rebooted everything. However, it only worked once.
It is now freezing up 90% of the time.
make clean
./configure --disable-optimizations
make
gdb <path to xbmc>
run
...get xbmc to hang...
Ctrl-C
thread apply all bt full
quit