croneter / PlexKodiConnect

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

Plex titles dissapear from kodi and ends up empty #1350

Closed djmulder closed 2 years ago

djmulder commented 3 years ago

Sorry for not using the template as I feel it's more a setting somewhere that I just can't find.

Here's the problem: After a few days both my list of movies AND my list of tvshows is empty. Today for the first time it was only the TVShows, so it seems like it's because of some syncing.

If I do a full reset in the addon all return to normal. But then again after a few days everything gone.

Is this some setting I'm overlooking? It looks a lot like: https://github.com/croneter/PlexKodiConnect/issues/586 but it's not this issue. I have those settings done and they are not even available to movies.

My plex setup isn't at all special, it's pretty much setup standard with movies in separate folders and tv shows in separate folders with seasons in subfolders.

Subquestion, which might be related but I'm not sure: I'm using the Simple IPTV addon from kodi, sure it doesn't touch movies/tvshows but you do write to let the plexkodi addon to handle everything. If this could be the case is there a way to get IPTV to work with this? And I don't want it in some submenu from the addon, it has to be under the "TV" menu (so different from TV Shows).

croneter commented 3 years ago

Pretty much impossible to troubleshoot right now. Could you please try to capture some DEBUG logs of episodes/movies disappearing? See https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug

Please triple check that you tried the workaround in issue #586

djmulder commented 3 years ago

Hmm I'll try my best but going to be hard, I normally find out "after the fact" ofc and I'm still trying to pinpoint in what timeframe it happens (also for debugging) added to that it's a nvidia shield so going to be interesting to get to the logfiles.

And about 586: 2021-02-20 20_37_09-Plex

croneter commented 3 years ago

Any news?

djmulder commented 3 years ago

Today it was empty again... it's not related to a theory I had... at first I thought it was related to either "reset watch position" (or whatever that option is called) or "Mark as watched" .. but I used that function 3 days ago.

I'll debug log kodi start soon.. but gf is hogging the tv (and I don't blame her: simpsons)

djmulder commented 3 years ago

kodi.log There that's the log.. it's near the end apparently... it's getting empty messages I guess?

Ps I think I removed all passwords/tokens from the file..if you find one please tell me :D

croneter commented 3 years ago

Something is really off with your movie Alien: These log lines are repeated over and over again. Seems like the PMS is stuck with scanning that movie.

ERROR: PLEX.websocket_client: PMS_Websocket: Error decoding message from websocket
ERROR: PLEX.websocket_client: {"NotificationContainer":{"type":"progress","size":1,"ProgressNotification":[{"message":"Scanning Alien?"}]}}
ERROR: PLEX.websocket_client: PMS_Websocket: Error decoding message from websocket
ERROR: PLEX.websocket_client: {"NotificationContainer":{"type":"progress","size":1,"ProgressNotification":[{"message":"Scanning Alien?/extrathumbs"}]}}
ERROR: PLEX.websocket_client: PMS_Websocket: Error decoding message from websocket
ERROR: PLEX.websocket_client: {"NotificationContainer":{"type":"progress","size":1,"ProgressNotification":[{"message":"Scanning Alien?/extrafanart"}]}}

Try completely deleting that movie from the PMS. Then re-adding it again.

croneter commented 3 years ago

Other than that, I can't see why some items were deleted on the Kodi side. Could you kindly reset the Kodi database (in the PKC settings under Advanced, hitting YES, then NO) and try to capture another log file of items "getting lost"?

croneter commented 3 years ago

What's the status here?

djmulder commented 3 years ago

Removed alien3 (that was the "alien" movie it was stuck on, it had like the 3 euh forgot the english word, when it's floating higher like the "to the power")

Now trying.. but also having a server upgrade, went for an Epyc. But ordered wrong mem >.< so waiting on that

croneter commented 3 years ago

I would still need another debug log to investigate further

djmulder commented 3 years ago

Yeah no problem.. mem should arrive before wednesday.. then it's back to testing.

Tho I have to say... now the server been offline for a few days (think last online was wednesday) and all lists are still in tact. So it's indeed to do when it reindexes or something.

croneter commented 3 years ago

Any news here?

djmulder commented 3 years ago

Sorry .. still waiting on memory. The shop I ordered my server upgrade from apparently has a hard time getting memory for an Epyc :(

djmulder commented 3 years ago

Ok server upgrade done.. Running a day or 2 now with Alien3 removed... so far all movies/series still there. Looking up

croneter commented 3 years ago

Closing for now.come back if the issue returns

djmulder commented 3 years ago

kodi.log and it's back... even did a full clear. (again if you see tokens/passwords pls tell, I tried to remove them all)

2 nights ago I thought I caught it at the moment. I saw the popup "cleaning database" and then everything was gone, but then I read the log and saw that alien3 was still there.. but now it's really not here.

djmulder commented 3 years ago

@croneter did you see the message? (I'm not sure, rarely use github;)

djmulder commented 3 years ago

Any progress here? Today it happened again. Still trying to pinpoint the "when", only had 1 time where I saw it happening .. but yeh hard to log that as it happens randomly it seems.

I think making a new log other than the one from 21 days ago wouldn't help as it will show same info.

djmulder commented 3 years ago

I'm starting to think it's related to the backend adding new series/ movies. The last week it's almost happening daily and this week I had quite a few movies/series coming in.

wormvortex commented 2 years ago

This is happening to mine more and more. Keep having to do a full library rebuild to get my shows back. Always seems to be after something new has been added.

djmulder commented 2 years ago

I haven't had a problem in ages.. fully forgot to mention (busy period)

I think I fixed it by not having kodi clean database and stuff (had it every night at 2)

wormvortex commented 2 years ago

My library isn't set to clean/update at all so don't think that's my issue

croneter commented 2 years ago

@wormvortex No log no help possible: https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug

wormvortex commented 2 years ago

Hi. I'm not sure how to prove this with logs. What happens is I will turn the tv back on and suddenly 99% of the programs are missing and will not come back until full library rebuild.

It seems to be linked to when Plex reboots. I'll try and attach the log and previous log when I next notice it.

I did try purposely rebooting the Plex server but it didn't replicate the issue however. Will try leaving it off for longer and see if that makes a difference.

wormvortex commented 2 years ago

Noticed it again this morning. All tv shows are empty. Here's the latest log since I've noticed it.

https://paste.kodi.tv/ecedexotug.kodi

croneter commented 2 years ago

Really difficult to troubleshoot this issue. I'm guessing that not PKC but Kodi is deleting entries in the Kodi video database. I see this in the log:

INFO <general>: CleanDatabase: Starting videodatabase cleanup ..
INFO <general>: CleanDatabase: Cleaning videodatabase done. Operation took 00:11

11 seconds seems a bit long to do nothing - here, deletion might've taken place. But that's just a guess since debug logging was not enabled, unfortunately.

croneter commented 2 years ago

Try this: deactivate Update library on startup for both Video and Music libraries. You find this in the Kodi settings under Media, then Library. Make sure that Expert level is enabled (bottom left)

image

wormvortex commented 2 years ago

Just doubled checked and it's not enabled for either library.

croneter commented 2 years ago

Your log clearly states that your library got cleaned! Do you have any Kodi add-ons that could be causing Kodi database cleanups?

wormvortex commented 2 years ago

None that I can see. Nearly all are disabled except up next and the ones that come with the skin.

I do sometimes delete files by using the context menu and going Plex options and remove from server to delete watched things. Could it be that??

croneter commented 2 years ago

No, that's not it.

croneter commented 2 years ago

Have you tried to completely reset Kodi? That might help, but is a hassle 😞

croneter commented 2 years ago

Any updates here, @wormvortex ?

wormvortex commented 2 years ago

Yes a full reset seems to have sorted it. I reformatted the SD card and just started all over and as of now it's been fine :)