PlexKodiConnect: Kodi Plex Integration Done Right

Unable to find client profile error has returned.

“ERROR - Unable to find client profile for device; platform=Linux, platformVersion=unknown, device=Linux, model=unknown” writes to log file every 2 seconds.

I have a “PlexkodiConnect.xml” profile installed, and for a long time the error had disappeared. With the same xml file, the error has returned.
Plex is running on Ubuntu 16.04. I am using a Shield Android TV with Kodi 17.6 and the latest stable version of PKC.

Anyone else have this issue return?
Any ideas how to make it stop again?

Hi,
I have run across a movie title that will not show up in KODI. It shows up in Plex Web and other Plex apps fine. The title of the movie is: The Good, the Bad and the Ugly (1966).dvd.mkv. I’ve reset PKC but no change. Any thoughts?

Thx

Very weird! I’ll be releasing a new beta version soon where synching will be entirely rewired. Hold on and try that first, I’d say…

1 Like

How does PKC affect the server? Many who have large libraries don’t allow the use of PKC - why is that? Is it triggering something on the server or causing it to run slow?

PKC should not affect the server (Plex should aim to design the PMS in such a way that e.g. a client could not possibly crash it).

Current PKC versions load a lot of the Plex library into memory while synching. This could crash a client with low RAM like a Raspberry Pi. I’m currently finishing up a new PKC BETA version where this issue is solved.
This is the reason why people with giant libraries (>x’000 movies) experience issues using PKC.

Revisiting PKC for a family member and I’m noticing a playlist related issue.

I synced a Plex playlist to Kodi, and select it, it will not play. If I use the Plex Option context menu and tell it to play via PMS it works.

I can get you some logs but wanted to ask if either of this was a known issues since I haven’t used PKC in some time.

I have been getting an error since 2.4.10 but haven’t had time to look in to it. Rolling back to 2.4.9 cured the problem.
Today I thought I would start with a fresh install but get an error whether I use 2.4.9 or .10
I have had a look in the logs and I’m guessing this is the problem:

10:16:28.704 T:3589456640   DEBUG: -->Python Interpreter Initialized<--
10:16:28.704 T:3589456640   DEBUG: CPythonInvoker(5, /home/osmc/.kodi/addons/plugin.video.plexkodiconnect/service.py): the source file to load is "/home/osmc/.kodi/addons/plugin.video.plexkodiconnect/service.py"
10:16:28.705 T:3589456640   DEBUG: CPythonInvoker(5, /home/osmc/.kodi/addons/plugin.video.plexkodiconnect/service.py): setting the Python path to /home/osmc/.kodi/addons/plugin.video.plexkodiconnect:/home/osmc/.kodi/addons/script.module.certifi/lib:/home/osmc/.kodi/addons/script.module.chardet/lib:/home/osmc/.kodi/addons/script.module.defusedxml/lib:/home/osmc/.kodi/addons/script.module.idna/lib:/home/osmc/.kodi/addons/script.module.requests/lib:/home/osmc/.kodi/addons/script.module.urllib3/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0
10:16:28.705 T:3589456640   DEBUG: CPythonInvoker(5, /home/osmc/.kodi/addons/plugin.video.plexkodiconnect/service.py): entering source directory /home/osmc/.kodi/addons/plugin.video.plexkodiconnect
10:16:28.705 T:3589456640   DEBUG: CPythonInvoker(5, /home/osmc/.kodi/addons/plugin.video.plexkodiconnect/service.py): instantiating addon using automatically obtained id of "plugin.video.plexkodiconnect" dependent on version 2.1.0 of the xbmc.python api
10:16:30.301 T:3589456640   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: ''
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.plexkodiconnect/service.py", line 8, in <module>
                                                service_entry.start()
                                              File "/home/osmc/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/service_entry.py", line 277, in start
                                                DELAY = int(utils.settings('startupDelay'))
                                            ValueError: invalid literal for int() with base 10: ''
                                            -->End of Python script error report<--
10:16:30.316 T:4077011536   DEBUG: ------ Window Init (DialogNotification.xml) ------
10:16:30.429 T:3589456640    INFO: Python script stopped

No idea what it means though!
This is the first time I have had an issue with plexkodiconnect and I’ve been a user ever since it came out :slight_smile:

1 Like

You’re correct. Kodi (not PKC) lost some setting. Try going into the pkc settings, Advanced, then choose e.g. “1” as startup delay. Reboot Kodi

1 Like

Tech support on a Sunday morning :smile:
All sorted - Can’t believe that’s all it was!!

Coffee on it’s way.

1 Like

Meanwhile I’m pretty sure, that collections in Kodi are built with only the first tag that is used in Plex. So one movie can only be in one Kodi collection right now. Is this a limit of Kodi collections or could this be fixed in PKC?

OK guys, this is BIG! Looking forward to your feedback and bug reports…

Changelog

version 2.5.0 (beta only):

  • Huge rewrite of the sync mechanism - it should now be faster and more stable
  • Sync huge Plex libraries now: the sync will load all data bit by bit
  • Rewrote code for the main program loop, reducing the need for separate Python threads
  • Rewrote and sped up code to access and change Kodi and Plex databases
  • Fixes to Kodi 18 Leia music library
  • Tons of other small fixes I can’t remember

EDIT
There is a Kodi (18?) bug that seems to appear only once on updating PKC. Simply reboot Kodi once you’ve updated. Details:

ERROR: PLEX.utils:         addon = xbmcaddon.Addon(id='plugin.video.plexkodiconnect')
ERROR: PLEX.utils:     RuntimeError: Unknown addon id 'plugin.video.plexkodiconnect'.
4 Likes

The fancy Plex login screen has problems with Kodi 18.0-RC1
ERROR: Control 1001 in window 13001 has been asked to focus, but it can't

I had a similar issue a few weeks back with a different beta and had to downgrade to a version before the new login screen just to sync. It’s not as bad now because i didn’t need to reset the db so i am logged in but the screen till tries to pop up on every reboot and have to keep pressing back until it disappears

1 Like

Fixed in 2.5.1 :laughing:

1 Like

Cool. As i said it’s not really an issue as just pressing back a few times fixes it but people who need to reset their db might run into problems. Can see where the problem lies though

16:47:46.427 T:4092629008   DEBUG: HandleKey: menu (0xd8) pressed, action is Back
16:47:46.428 T:4092629008   ERROR: Control 1001 in window 13001 has been asked to focus, but it can't
16:47:46.471 T:4092629008   DEBUG: ------ Window Deinit (/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/skins/Main/1080i/script-plex-options_dialog.xml) ------
16:47:46.756 T:4092629008   DEBUG: ------ Window Init (/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/skins/Main/1080i/script-plex-options_dialog.xml) ------
16:47:46.756 T:4092629008    INFO: Loading skin file: /storage/.kodi/addons/plugin.video.plexkodiconnect/resources/skins/Main/1080i/script-plex-options_dialog.xml, load type: LOAD_ON_GUI_INIT
16:47:46.765 T:4092629008   ERROR: Control 1001 in window 13001 has been asked to focus, but it can't
16:47:47.488 T:4092629008   DEBUG: HandleKey: menu (0xd8) pressed, action is Back
16:47:47.488 T:4092629008   ERROR: Control 1001 in window 13001 has been asked to focus, but it can't
16:47:47.529 T:4092629008   DEBUG: ------ Window Deinit (/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/skins/Main/1080i/script-plex-options_dialog.xml) ------

Updated to 2.5.1 and the latest kodi 18 nightly. It rebuilt the database successfully as it requested but afterwards it wouldn’t sync what was currently playing. I attempted to rebuild the DB again but it failed, I rebooted the shield and it won’t rebuild the DB. If you need logs tell me where to find them and I can post them.

Please use Kodi 18 RC1 - Nightly versions are NOT supported by PKC. Logs would help, see here How to Report A Bug · croneter/PlexKodiConnect Wiki · GitHub

New version isn’t syncing properly for me, some non-watched TV shows are seen as On Deck…

Is it because I am using RC2?

Im using RC1 and every time I restart Kodi PKC is scanning my library 100% meaning a full complete scan.

Also no playback what so ever is being reported back to PMS after updating to the newest beta.

That’s by design and has always been that way. Should be faster than an initial sync though

No, there’s definitely an issue with watched-statuses. On it…