Unable to connect to MythTV backend

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ecoelho Offline
Junior Member
Posts: 1
Joined: Nov 2012
Reputation: 0
Post: #1
I'm getting the following error when trying to enable the MythTV PVR add-on. I'm using the XBMC 12 beta version and cmyth 0.5. Any ideas on what is causing this issue?


Code:
mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.25.3
MythTV Branch : fixes/0.25
Network Protocol : 72
Library API : 0.25.20120506-1
QT Version : 4.8.1
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_ceton using_hdpvr using_iptv using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libxml2 using_lirc using_mheg using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_v4l2 using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_bindings_php using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_live using_mheg using_libass using_libxml2

Code:
16:24:02 T:6716   DEBUG: PVR::CPVRClients::RegisterClient - registering add-on 'MythTV cmyth PVR Client'
16:24:02 T:6716   DEBUG: PVR - PVR::CPVRClient::Create - creating PVR add-on instance 'MythTV cmyth PVR Client'
16:24:02 T:6716   DEBUG: ADDON: Dll Initializing - MythTV cmyth PVR Client
16:24:02 T:6716   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Creating MythTV cmyth PVR-Client
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_addon...done
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Checking props...
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Checking props...done
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_pvr...
16:24:02 T:6716   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_addon...done
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_gui...
16:24:02 T:6716   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_gui...done
16:24:02 T:6716   DEBUG: CAddonCallbacksAddon - ADDON::CAddonCallbacksAddon::GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'host'
16:24:02 T:6716   DEBUG: CAddonCallbacksAddon - ADDON::CAddonCallbacksAddon::GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'port'
16:24:02 T:6716   DEBUG: CAddonCallbacksAddon - ADDON::CAddonCallbacksAddon::GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'extradebug'
16:24:02 T:6716   DEBUG: CAddonCallbacksAddon - ADDON::CAddonCallbacksAddon::GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_user'
16:24:02 T:6716   DEBUG: CAddonCallbacksAddon - ADDON::CAddonCallbacksAddon::GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_password'
16:24:02 T:6716   DEBUG: CAddonCallbacksAddon - ADDON::CAddonCallbacksAddon::GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_name'
16:24:02 T:6716   DEBUG: CAddonCallbacksAddon - ADDON::CAddonCallbacksAddon::GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'livetv'
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Creating PVRClientMythTV...
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect_ctrl: connecting control connection
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_connect_addr: connecting to 192.168.1.102:3306 fd = 704
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_create {
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_create }
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_send_message
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_send_message: sending message '20      MYTH_PROTO_VERSION 8'
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_rcv_length
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_rcv_length: buffer is '[' ret = 0
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_rcv_string: string received ''
16:24:02 T:6716   ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: cmyth_rcv_version() failed
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy {
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy: shutdown and close connection fd = 704
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_destroy }
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect_ctrl: done connecting control connection ret = 00000000
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Lock 195363944
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Lock acquired 195363944
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: Unlock 195363944
16:24:02 T:6716   DEBUG: AddOnLog: MythTV cmyth PVR Client: MythConnection::IsConnected - 0
16:24:02 T:6716   DEBUG: CAddonCallbacksAddon - ADDON::CAddonCallbacksAddon::QueueNotification - MythTV cmyth PVR Client - Error Message : 'PVRClientMythTV::Connect: Failed to connect to MythTV backend 192.168.1.102: 3306'
16:24:02 T:6716   ERROR: AddOnLog: MythTV cmyth PVR Client: Failed to connect to backend
16:24:02 T:6716   DEBUG: Calling TransferSettings for: MythTV cmyth PVR Client
16:24:02 T:6716   ERROR: PVR - couldn't get the capabilities for add-on 'unknown'. Please contact the developer of this add-on: Christian Fetzer, Jean-Luc Barrière, Tonny Petersen
find quote
cfetzer Offline
Fan
Posts: 307
Joined: Jul 2011
Reputation: 16
Post: #2
Can you check the port number in the addon settings? It seems to connect to 3306 wich is the database port. You have to enter the mythbackend port number (default 6543).

MythTV PVR addon - Wiki - Development
find quote
nix881 Offline
Junior Member
Posts: 2
Joined: Nov 2012
Reputation: 0
Post: #3
Using the Frodo Beta 1 repack for Windows, I get the following message on my MythTV backend while trying to connect using the built-in MythTV client.

Nov 19 19:55:54 mythbackend mythbackend[20602]: 2012-11-19 19:55:54.256174 C MainServer::HandleVersion - Client speaks protocol version 8 but we speak 75!

I remember reading several comments about version 8 being hardcoded in in cmyth, <http://forum.xbmc.org/showthread.php?tid=129021&page=9>
find quote
twojciac Offline
Junior Member
Posts: 22
Joined: Nov 2012
Reputation: 2
Post: #4
(2012-11-20 04:05)nix881 Wrote:  Using the Frodo Beta 1 repack for Windows, I get the following message on my MythTV backend while trying to connect using the built-in MythTV client.

Nov 19 19:55:54 mythbackend mythbackend[20602]: 2012-11-19 19:55:54.256174 C MainServer::HandleVersion - Client speaks protocol version 8 but we speak 75!

I remember reading several comments about version 8 being hardcoded in in cmyth, <http://forum.xbmc.org/showthread.php?tid=129021&page=9>

I see the same thing in my logs, but my implementation is working flawlessly for both Live TV and Recorded TV. I think it's a non-issue at the moment.
find quote
nix881 Offline
Junior Member
Posts: 2
Joined: Nov 2012
Reputation: 0
Post: #5
With MythTV 0.25 and 0.26 backends and just using the built-in client on XBMC Windows and the Fedora XBMC RPM Fusion builds I still cannot connect.
find quote
cfetzer Offline
Fan
Posts: 307
Joined: Jul 2011
Reputation: 16
Post: #6
Please post a debug log (with 'Include more debug information in the log file' enabled)

MythTV PVR addon - Wiki - Development
find quote
pocster Offline
Junior Member
Posts: 29
Joined: Feb 2013
Reputation: 0
Post: #7
Me neither; I get:


ERROR: PVR - couldn't get the capabilities for add-on 'unknown'. Please contact the developer of this add-on: Christian Fetzer, Jean-Luc Barrière, Tonny Petersen
16:47:40 T:2699623232 ERROR: AddOnLog: MythTV cmyth PVR Client: Failed to connect to backend
find quote
Bedlore Offline
Junior Member
Posts: 18
Joined: Jul 2009
Reputation: 0
Post: #8
Hi Guys

I'm in the same boat, have updated using OpenElec 4 (XBMC Gotham) and can't connect to my 0.27 Myth server. Log:

15:16:35 T:139943070373632 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: cmyth_rcv_version() failed
15:16:35 T:139943070373632 ERROR: AddOnLog: MythTV cmyth PVR Client: Failed to connect to MythTV backend on 192.168.1.101:3306
15:16:35 T:139943070373632 ERROR: AddOnLog: MythTV cmyth PVR Client: Failed to connect to backend
15:16:35 T:139943070373632 ERROR: PVR - couldn't get the capabilities for add-on 'unknown'. Please contact the developer of this add-on: Christian Fetzer, Jean-Luc Barrière, Tonny Petersen

Is this effecting everything or something unique to just a few?

Should of mentioned the plugin is version 1.9.16
(This post was last modified: 2014-05-06 08:25 by Bedlore.)
find quote
Bedlore Offline
Junior Member
Posts: 18
Joined: Jul 2009
Reputation: 0
Post: #9
Additional server log:
May 6 15:18:44 hyssop mythbackend: mythbackend[5667]: I ProcessRequest mainserver.cpp:1432 (HandleAnnounce) adding: OpenELEC as a client (events: 0)
May 6 15:18:44 hyssop mythbackend: mythbackend[5667]: C ProcessRequest mainserver.cpp:1329 (HandleVersion) MainServer::HandleVersion - Client speaks protocol version 8 but we speak 77!
find quote
nickr Online
Donor
Posts: 8,024
Joined: May 2009
Reputation: 141
Location: Christchurch NZ
Post: #10
Debug log

If I have helped you or increased your knowledge, click the plus button and increase my reputation :)
find quote
turbolx5oh Offline
Junior Member
Posts: 13
Joined: Apr 2014
Reputation: 0
Post: #11
Did anyone find a solution to this? I'm having the same problem.

OpenELEC 4.0.7, Mythbuntu backend at 0.27.3

I can connect to the Mysql Database on the Mythbuntu server using the same user ID/Password I have coded in the MythTV PVR config in XBMC. But looking at the logs it seems to show the DB connect fails.

http://www.xbmclogs.com/show.php?id=245307
find quote
nickr Online
Donor
Posts: 8,024
Joined: May 2009
Reputation: 141
Location: Christchurch NZ
Post: #12
On the mythbackend, is MySQL listening on 127.0.0.1 or on the eth0 address?

If I have helped you or increased your knowledge, click the plus button and increase my reputation :)
find quote