Kodi Community Forum
Unable to connect to MythTV backend - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: MythTV (https://forum.kodi.tv/forumdisplay.php?fid=170)
+---- Thread: Unable to connect to MythTV backend (/showthread.php?tid=145406)



Unable to connect to MythTV backend - ecoelho - 2012-11-16


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



RE: Unable to connect to MythTV backend - fetzerch - 2012-11-17

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).


RE: Unable to connect to MythTV backend - nix881 - 2012-11-20

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>


RE: Unable to connect to MythTV backend - twojciac - 2012-11-21

(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.



RE: Unable to connect to MythTV backend - nix881 - 2012-11-28

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.


RE: Unable to connect to MythTV backend - fetzerch - 2012-12-01

Please post a debug log (with 'Include more debug information in the log file' enabled)


RE: Unable to connect to MythTV backend - pocster - 2013-02-26

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


RE: Unable to connect to MythTV backend - Bedlore - 2014-05-06

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


RE: Unable to connect to MythTV backend - Bedlore - 2014-05-06

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!


RE: Unable to connect to MythTV backend - nickr - 2014-05-08

Debug log


RE: Unable to connect to MythTV backend - turbolx5oh - 2014-07-12

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


Re: Unable to connect to MythTV backend - nickr - 2014-07-12

On the mythbackend, is MySQL listening on 127.0.0.1 or on the eth0 address?