PlexKodiConnect: Kodi Plex Integration Done Right

@bigbadrabbit said:
Since PKC 1.1.10 i’m getting the “Sync had to skip some items because they could not be processed…” error.

  • Tried a full reset → error message pops up “check the log”

  • Did a full Kodi and PKC reinstall → sync works the first time but after a Kodi restart it won’t sync, video directories are empty and the “Sync had to skip…” error shows up.

Here’s the log. Thanks.

Github link.

Reinstall does not help because it does not delete the add-on settings. Always go to PKC settings - advanced - Full reset of db and PKC (in red), then 3x yes.

Looks like your database got corrupted

@bigbadrabbit said:
Since PKC 1.1.10 i’m getting the “Sync had to skip some items because they could not be processed…” error.

  • Tried a full reset → error message pops up “check the log”

  • Did a full Kodi and PKC reinstall → sync works the first time but after a Kodi restart it won’t sync, video directories are empty and the “Sync had to skip…” error shows up.

Here’s the log. Thanks.

Github link.

Reinstall does not help because it does not delete the add-on settings. Always go to PKC settings - advanced - Full reset of db and PKC (in red), then 3x yes.

Edit - or was that your full reset?

Looks like your database got corrupted

@croneter said:

@bigbadrabbit said:
Since PKC 1.1.10 i’m getting the “Sync had to skip some items because they could not be processed…” error.

  • Tried a full reset → error message pops up “check the log”

  • Did a full Kodi and PKC reinstall → sync works the first time but after a Kodi restart it won’t sync, video directories are empty and the “Sync had to skip…” error shows up.

Here’s the log. Thanks.

Github link.

Reinstall does not help because it does not delete the add-on settings. Always go to PKC settings - advanced - Full reset of db and PKC (in red), then 3x yes.

Edit - or was that your full reset?

Looks like your database got corrupted

With reinstall i mean:

Complete deletion of the Kodi application and it’s /Application Support/ folder. I mean deleting everything and begin with a complete fresh install of Kodi and then PKC via it’s repo.

Thanks. I’ll have to check my hard drives then. :frowning:

Im getting crashing and reboot during library scan, never completes.

Using Raspberry Pi 2, LibreELEC, 1000+ Movies, Reduced to 1 thread still does not help.

@whitewidows said:
Im getting crashing and reboot during library scan, never completes.

Using Raspberry Pi 2, LibreELEC, 1000+ Movies, Reduced to 1 thread still does not help.

Logs please, otherwise I cannot help you. See wiki on github

@croneter said:

@whitewidows said:
Im getting crashing and reboot during library scan, never completes.

Using Raspberry Pi 2, LibreELEC, 1000+ Movies, Reduced to 1 thread still does not help.

Logs please, otherwise I cannot help you. See wiki on github

Ok give me a moment Im flashing a fresh img

@croneter said:

@whitewidows said:
Im getting crashing and reboot during library scan, never completes.

Using Raspberry Pi 2, LibreELEC, 1000+ Movies, Reduced to 1 thread still does not help.

Logs please, otherwise I cannot help you. See wiki on github

Fresh libreELEC install, still crashing on sync

I believe this is the log you need

@croneter Just bought you some coffee - hoping for support for Plex playlists soon :slight_smile:

@whitewidows said:

@croneter said:

@whitewidows said:
Im getting crashing and reboot during library scan, never completes.

Using Raspberry Pi 2, LibreELEC, 1000+ Movies, Reduced to 1 thread still does not help.

Logs please, otherwise I cannot help you. See wiki on github

Fresh libreELEC install, still crashing on sync

I believe this is the log you need

Try going to the PKC settings, sync options, and reduce both Limit artwork cache threads and Limit download sync threads to the bare minimum.

If Kodi still crasheds, then something about your libreELEC installation is off - Kodi cannot start another thread. I myself use a Raspi 2 with OpenELEC and never had any issues without the measures above. Any weird other Kodi plugins installed? Try downloading an official libreELEC build again and start from scratch by installing PKC at the very beginning if above does not work.

17:28:15 386.607605 T:1507840928  NOTICE: PlexKodiConnect Items -> add_update : Traceback:
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 318, in add_update
                                                self.run_add_update(item, viewtag, viewid)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 521, in run_add_update
                                                artwork.addArtwork(allartworks, movieid, "movie", kodicursor)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 355, in addArtwork
                                                cursor=cursor)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 438, in addOrUpdateArt
                                                self.CacheTexture(imageUrl)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 300, in CacheTexture
                                                self.addWorkerImageCacheThread(url)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 274, in addWorkerImageCacheThread
                                                newThread.start()
                                              File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-RPi2.arm-7.0.1/Python-2.7.11/.install_pkg/usr/lib/python2.7/threading.py", line 736, in start
                                            error: can't start new thread

@MartinAyla said:
@croneter Just bought you some coffee - hoping for support for Plex playlists soon :slight_smile:

That’s a load of coffee - many thanks!! :smiley:

@croneter said:

@MartinAyla said:
@croneter Just bought you some coffee - hoping for support for Plex playlists soon :slight_smile:

That’s a load of coffee - many thanks!! :smiley:

No, thank you! Looking forward to future updates and features :slight_smile:

@croneter said:

@whitewidows said:

@croneter said:

@whitewidows said:
Im getting crashing and reboot during library scan, never completes.

Using Raspberry Pi 2, LibreELEC, 1000+ Movies, Reduced to 1 thread still does not help.

Logs please, otherwise I cannot help you. See wiki on github

Fresh libreELEC install, still crashing on sync

I believe this is the log you need

Try going to the PKC settings, sync options, and reduce both Limit artwork cache threads and Limit download sync threads to the bare minimum.

If Kodi still crasheds, then something about your libreELEC installation is off - Kodi cannot start another thread. I myself use a Raspi 2 with OpenELEC and never had any issues without the measures above. Any weird other Kodi plugins installed? Try downloading an official libreELEC build again and start from scratch by installing PKC at the very beginning if above does not work.

17:28:15 386.607605 T:1507840928  NOTICE: PlexKodiConnect Items -> add_update : Traceback:
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 318, in add_update
                                                self.run_add_update(item, viewtag, viewid)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 521, in run_add_update
                                                artwork.addArtwork(allartworks, movieid, "movie", kodicursor)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 355, in addArtwork
                                                cursor=cursor)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 438, in addOrUpdateArt
                                                self.CacheTexture(imageUrl)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 300, in CacheTexture
                                                self.addWorkerImageCacheThread(url)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 274, in addWorkerImageCacheThread
                                                newThread.start()
                                              File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-RPi2.arm-7.0.1/Python-2.7.11/.install_pkg/usr/lib/python2.7/threading.py", line 736, in start
                                            error: can't start new thread

This was a fresh official libreELEC install. No other plugins. Just PKC. Limits reduced. Still issues persists.

Going to try openELEC now.

Is there a way to have KODI ignore articles (such as “The” ) when sorting a sync’d Plex database? I accidentally started a new thread below if you want to answer the question in there.

@whitewidows said:

@croneter said:

@whitewidows said:

@croneter said:

@whitewidows said:
Im getting crashing and reboot during library scan, never completes.

Using Raspberry Pi 2, LibreELEC, 1000+ Movies, Reduced to 1 thread still does not help.

Logs please, otherwise I cannot help you. See wiki on github

Fresh libreELEC install, still crashing on sync

I believe this is the log you need

Try going to the PKC settings, sync options, and reduce both Limit artwork cache threads and Limit download sync threads to the bare minimum.

If Kodi still crasheds, then something about your libreELEC installation is off - Kodi cannot start another thread. I myself use a Raspi 2 with OpenELEC and never had any issues without the measures above. Any weird other Kodi plugins installed? Try downloading an official libreELEC build again and start from scratch by installing PKC at the very beginning if above does not work.

17:28:15 386.607605 T:1507840928  NOTICE: PlexKodiConnect Items -> add_update : Traceback:
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 318, in add_update
                                                self.run_add_update(item, viewtag, viewid)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 521, in run_add_update
                                                artwork.addArtwork(allartworks, movieid, "movie", kodicursor)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 355, in addArtwork
                                                cursor=cursor)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 438, in addOrUpdateArt
                                                self.CacheTexture(imageUrl)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 300, in CacheTexture
                                                self.addWorkerImageCacheThread(url)
                                              File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/artwork.py", line 274, in addWorkerImageCacheThread
                                                newThread.start()
                                              File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-RPi2.arm-7.0.1/Python-2.7.11/.install_pkg/usr/lib/python2.7/threading.py", line 736, in start
                                            error: can't start new thread

This was a fresh official libreELEC install. No other plugins. Just PKC. Limits reduced. Still issues persists.

Going to try openELEC now.

@Grumpy70 - I know you are using libreELEC with PKC. Did you have similar issues?

I have an odd issue, mine only connects to my flex server via my remote ip, it doesn’t see it locally. Anyone had this issue?

@CrispyXUK said:
I have an odd issue, mine only connects to my flex server via my remote ip, it doesn’t see it locally. Anyone had this issue?

Yes, same problem. The web app and iOS app see the local server so it looks like that it is not a problem from plex.

@croneter said:

@Grumpy70 - I know you are using libreELEC with PKC. Did you have similar issues?

Nope…all working here.

I am using Milhouse’s builds which change nightly, so maybe @whitewidows try a different build.

I will say when i first got the pi, i had to lower the Limit artwork cache threads and Limit download sync threads to the bare minumium or it would crash Kodi.

Ended up going through a few different cards before i found one that i didn’t need to change the settings.

@vampyrex13 said:
Is there a way to have KODI ignore articles (such as “The” ) when sorting a sync’d Plex database? I accidentally started a new thread below if you want to answer the question in there.

https://forums.plex.tv/discussion/219108/is-there-a-way-to-have-kodi-ignore-articles-such-as-the-when-sorting-a-syncd-plex-database

@vampyrex13, the built in Kodi setting for this doesn’t work for you?

http://kodi.wiki/view/Settings/Appearance

@TheMystery said:

@CrispyXUK said:
I have an odd issue, mine only connects to my flex server via my remote ip, it doesn’t see it locally. Anyone had this issue?

Yes, same problem. The web app and iOS app see the local server so it looks like that it is not a problem from plex.

Same problem. With every 24 reconnect I have to manually chose the server in the settings, otherwise PKC still connects to my old IP

@sylus said:

@TheMystery said:

@CrispyXUK said:
I have an odd issue, mine only connects to my flex server via my remote ip, it doesn’t see it locally. Anyone had this issue?

Yes, same problem. The web app and iOS app see the local server so it looks like that it is not a problem from plex.

Same problem. With every 24 reconnect I have to manually chose the server in the settings, otherwise PKC still connects to my old IP

Connection manager re-wiring is in the works…