Jump to content

How to (re)connect to the Emby server once it is available?


Recommended Posts

Posted (edited)

Hi,

sometimes I start Kodi before the Emby server has finished booting up. Unfortunately, Emby for Kodi Next Gen doesn't (re)connect to the Emby server automatically then.

I have to restart Kodi on the Nvidia Shield for it to connect to the Emby Server. Is there a way that the connection can be established automatically or with a click on a button once the Emby Server is available?

Thank you very much!

Edited by peffe
quickmic
Posted

Well, next-gen should reconnect automatically. What was the status of Kodi and Emby server. Was Kodi in sleep mode or powered off. Was it the first attempt to reconnect etc

btw, which version of the plugin?

 

Posted

Hi,
thank you for your response.

The Kodi Server is installed on my Window 10 Computer. 
Kodi 20.2 with Emby for Kodi Next Gen (latest stable) is installed on my Nvidia Shield.

The computer is shutdown. Kodi on the Shield is not running (ended before).

When I start Kodi first and then boot up my computer, Kodi is running before the Emby Server is running. Then Emby for Kodi Next Gen doesn't connect to the Emby Server when it is available. I have to end and restart Kodi to establish a connection. It seems that the plugin doesn't retry to connect when it fails on the first attempt.

The Emby for Kodi next-gen plugin is set to update to the latest stable version automatically (Emby stable repo).


Versions:
Emby for Kodi Next Gen: 8.2.14
Kodi: 20.2
Emby Server: 4.7.14.0 (Kodi Companion 2.2.1 is installed)

quickmic
Posted

I'll check that, but please send me also a kodi.log when the issue appears.

Posted

Thank you very much. As soon as I have some time for it and figure out how to get to the kodi.log on the Shield, I'll share it here.

Posted (edited)

I managed to transfer the log file to my computer. I hope this helps.

Edited by GrimReaper
Log deleted
Posted (edited)

Sorry. Please remove my uploaded log file. It contains data that I do not want to share publicly. Tank you!

 

What I found out is, that the plugin first tries to connect to the local IP address of the emby server, but when it fails, it only retries to connect to my public IP address. But my emby server is only accessible on local network. It never tries to connect to the local IP again.

 

2023-12-19 20:09:33.364 T:24137   debug <general>: EMBY.emby.http: [ ServerUnreachable ] {'url': 'http://[LOCAL IP]:8096/emby/system/info/public', 'timeout': (15, 300), 'verify': True}
2023-12-19 20:09:33.364 T:24137    info <general>: EMBY.emby.emby: Skip Emby server connection test: EmbyConnectLocalAddress
2023-12-19 20:09:33.364 T:24137    info <general>: EMBY.emby.emby: Skip Emby server connection test: EmbyConnectRemoteAddress
2023-12-19 20:09:33.364 T:24137    info <general>: EMBY.emby.emby: Skip Emby server connection test: ManualAddress
2023-12-19 20:09:33.364 T:24137    info <general>: EMBY.emby.emby: tryConnect url: http://[PUBLIC IP]:8096
2023-12-19 20:09:33.364 T:24137   debug <general>: EMBY.emby.http: [ http ] {'url': 'http://[PUBLIC IP]:8096/emby/system/info/public', 'timeout': (15, 300)}
2023-12-19 20:09:33.374 T:24137   error <general>: EMBY.emby.http: [ ServerUnreachable ]
2023-12-19 20:09:33.374 T:24137   debug <general>: EMBY.emby.http: [ ServerUnreachable ] {'url': 'http://[PUBLIC IP]:8096/emby/system/info/public', 'timeout': (15, 300), 'verify': True}
2023-12-19 20:09:33.374 T:24137 warning <general>: EMBY.emby.http: Request no send, retry: 1
2023-12-19 20:09:33.382 T:24137   error <general>: EMBY.emby.http: [ ServerUnreachable ]
2023-12-19 20:09:33.382 T:24137   debug <general>: EMBY.emby.http: [ ServerUnreachable ] {'url': 'http://[PUBLIC IP]:8096/emby/system/info/public', 'timeout': (15, 300), 'verify': True}
2023-12-19 20:09:33.382 T:24137    info <general>: EMBY.emby.emby: Tested all connection modes. Failing server connection
2023-12-19 20:09:33.382 T:24137    info <general>: EMBY.emby.emby: THREAD: ---<[ establish_existing_connection ]
2023-12-19 20:09:34.353 T:24182    info <general>: EMBY.emby.emby: Reconnect try again: ****** / ******************************
2023-12-19 20:09:34.353 T:24182    info <general>: EMBY.emby.emby: tryConnect url: http://[PUBLIC IP]:8096
2023-12-19 20:09:34.353 T:24182   debug <general>: EMBY.emby.http: [ http ] {'url': 'http://[PUBLIC IP]:8096/emby/system/info/public', 'timeout': (15, 300)}
2023-12-19 20:09:34.363 T:24182   error <general>: EMBY.emby.http: [ ServerUnreachable ]
  ...

 

Edited by peffe
Posted

I solved the problem.

I had to disable remote connections on the Emby server and then remove and re-add the server in the Emby for Kodi Next Gen settings. Now the addon only tries to establish a connection locally. So the error was due to my incorrect Emby server settings. Sorry!

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...