croneter / PlexKodiConnect

Plex integration in Kodi done right
GNU General Public License v2.0
1.16k stars 77 forks source link

PKC on Vero V - Not updating episodes / syncing properly #2087

Open Matt12905 opened 4 months ago

Matt12905 commented 4 months ago

Help yourself

Describe the bug

When I restart my Vero V device, it attempts to sync the database with Plex, however this does not appear to complete successfully and I as a result now have a library on Kodi that shows each of the TV shows, however lists it as 0 episodes. I know these episodes exist as when I use Plex natively, it sees / plays them correctly. Items that do appear in the library play successfully. So I think it is some type of syncing issue.

I am running Plex via Unraid docker. No issues when using native Plex players / apps (Apple TV, LG TV etc)

You need to attach a KODI LOG FILE!

2024-05-27 13:10:09.431 T:3063 warning : PLEX.download: Unknown answer from PMS https://.plex.direct:32400/library/sections/1/allLeaves with status code 500: Internal Server Error

500 Internal Server Error

2024-05-27 13:10:09.432 T:3063 error : PLEX.plex_functions: Error while downloading chunks: {server}/library/sections/1/allLeaves, args: {'checkFiles': 0, 'includeExtras': 0, 'includeReviews': 0, 'includeRelated': 0, 'skipRefresh': 1, 'excludeAllLeaves': 1, 'sort': 'id', 'X-Plex-Container-Start': 0, 'X-Plex-Container-Size': 200} 2024-05-27 13:10:09.432 T:3063 error : PLEX.sync.full_sync: Sync at least partially unsuccessful! 2024-05-27 13:10:09.432 T:3063 error : PLEX.sync.full_sync: Error getting section iterator {'index': 5, 'name': 'TV Shows', 'section_id': 1, 'section_type': 'show', 'plex_type': 'episode', 'sync_to_kodi': True, 'last_sync': 1716781041} 2024-05-27 13:10:09.432 T:3063 debug : PLEX.sync.full_sync: Exiting threaded_get_generators 2024-05-27 13:10:09.473 T:3066 debug : PLEX.sync.full_sync: Processing 105 playstates for library section {'index': 5, 'name': 'TV Shows', 'section_id': 1, 'section_type': 'show', 'plex_type': 'show', 'sync_to_kodi': True, 'last_sync': XXXXXXXXX}

croneter commented 4 months ago

Please share your ENTIRE debug log, see https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug

croneter commented 4 months ago

And you DID try to reset the Kodi database in the PKC settings..? 😉

Matt12905 commented 4 months ago

Sorry - Thought I was helping! See attached full log file, removing the plex code. Yes I did delete the database, also did a full reinstall of PKC, also did a full wipe of the Vero V and clean install of PKC. I also experience this issue when I install Kodi on my desktop PC and install PKC.

kodi.log

croneter commented 4 months ago

Thanks for the log @Matt12905 ! Hmm, seems like something is REALLY off with one of your libraries:

warning <general>: PLEX.download: Unknown answer from PMS https://<Your_PMS_Address>:32400/library/sections/1/allLeaves?lastViewedAt>=1716780741 with status code 500: <html><head><title>Internal Server Error</title></head><body><h1>500 Internal Server Error</h1></body></html>

It's your library number 1 - probably movies. Can you try to refresh the entire library? See e.g. https://support.plex.tv/articles/200289306-scanning-vs-refreshing-a-library/

This seems a Plex issue, not a PKC issue 😞