Jump to content

Emby for Kodi - Server address resets to IP when restarting the server


aarocaes

Recommended Posts

Hi,

 

I'm having some problems to maintain sync between Kodi and Emby in my RPI3 (OSMC distribution) with Emby for Kodi plugin. I'm using Samba, so I could use "localhost" or "osmc" as a host, as both Emby and Kodi are running in the same machine, but for some reason it resets the host to an 192.168.1.x IP (not necessarily the current one) everytime I restart the server. That's happening with both "emby connect" and "manual" options.

 

I've found something similar in these posts:

 

https://emby.media/community/index.php?/topic/57270-emby-for-kodi-doesnt-find-my-server-after-kodi-restart/

https://emby.media/community/index.php?/topic/57243-kodi-keep-lan-address/

 

But I don't know where should I configure the host that Emby is sending to the plugin. In the dashboard is showing the internal IP address, but it has been always the same when using Raspbian or Retropie, and host settings were never lost.

 

My environment:

  • Hardware: Rapsberry PI 3, model B (UK Version)
  • OS: OSMC 2018.08-2
  • Kodi: 17.6
  • Emby: 3.5.2.0
  • Emby for Kodi: 3.0.34

I don't know if I'm missing any configuration option in OSMC. I've read about option "cleanonupdate" that should be turned off in the advancedsettings.xml, but in fact this option doesn't exist in the (quite brief) advancedsettings.xml from OSMC.

 

My last try was:

  1. Searching files with the IP address shown in the configuration.
  2. Found "data.txt" and "settings.xml" in /home/osmc/.kodi/userdata/addon_data/plugin.video.emby.
  3. Edited those files, replacing the IP by localhost, and save the changes.
  4. Set readonly permissions for these files (sudo chmod 0444) so they could be read, but couldn't be modified anymore.

After restarting the server it's showing the host http://localhost:8096 in the configuration (what should really be) but a pop-up message appears with an emby error.

Edited by aarocaes
Link to comment
Share on other sites

The error shown was due to this:

17:20:09.182 T:1707078400  NOTICE: EMBY.connectionmanager -> Found Servers: [{u'Name': u'retropie', u'Id': u'66c5e9430ef44d33b853f025bc5b95c4', u'Address': u'http://192.168.1.133:8096'}]
17:20:09.226 T:1707078400   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IOError'>
                                            Error Contents: (13, 'Permission denied', u'/home/osmc/.kodi/userdata/addon_data/plugin.video.emby/data.txt')

Even with login method set to "Manual", Emby is retrieving info from Emby Connect and trying to update "data.txt" (set to read only). Not sure if this is correct.

 

After setting this file to writable again, now it's working. Only "settings.xml" is set as readonly, server host remains as http://localhost:8096 in the configuration even after restarting the server and sync between Emby and Kodi is ok without need of changing anything everytime.

 

But it's still a dirty fix. I'm still curious about which options should I tweak in Emby, Kodi (OSMC), Emby Connect or Emby for Kodi for modifying this behaviour...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...