On Deck suddenly started showing new episodes of shows I have never watched (yes really!)

As a long time user of plex for several years, I am somewhat stumped by a problem which has started happening over the last couple of days.

On deck is now listing;

  • Random episodes of newly added content, from shows I have never watched. In fact when looking at the show summary plex confirms I have never watched any episode. After marking the entire show as watched and then unwatched, the show was removed from On Deck as you would expect if I had watched one by accident. For example my last update added new episodes for around 15 shows. 2 of these shows then appeared OnDeck - and no I’ve never watched them. The previous update I performed made 3 new episodes appear, again I have NOT watched any of them and the plex & web GUI confirm this when looking at the show information.
  • Season 1 Episode 1 of an unwatched show suddenly appeared on deck and would not go away until I used the web UI to mark it as watched/unwatched. Marking it as watched/unwatched made no difference via the PlexMediaPlayer (embedded) interface. An episode from that show was added, but not s01e01 - and again, I really have never watched it, not ever and the roku/web GUI confirms this. It was a show with no specials also so why on earth s01e01 would appear OnDeck (unwatched) is … well its wrong.

My question is, has this started happening for anyone else? If so, are plex aware of an issue? If not then I’ll start looking in the logs and provide more information :neutral:

Just thought I’d ask the community first before I spend the time investigating/providing info/rebuilding my database. Thanks!

Cheers,

ClanBear

##1
Are you using the trakt.tv plugin? If so, it might sync playback from your other users back to your account due to a missing filter.
https://github.com/trakt/Plex-Trakt-Scrobbler/wiki/FAQ---Scrobbling#2-why-are-videos-watched-by-other-users-being-scrobbled-to-my-profile

##2
Have you taken a look at your server logs?

  1. activate debug logging (not ‘verbose’!)
  2. quit Plex Server
  3. wait 1 minute
  4. start Plex Server
  5. wait 5 minutes
  6. fetch log files and attach them here

Or inspect them yourself. Take a look at the Plex Media Server.log file and seek for messages about database corrupt or malformed.
If you find these, you may have to repair your database.
https://support.plex.tv/hc/en-us/articles/201100678-Repair-a-Corrupt-Database

##3
Have you activated the DLNA server in Plex recently or did you add some new device to your local network recently, which supports DLNA?
Some DLNA client devices have a habit of randomly play a few seconds from a DLNA server to create a thumbnail picture or gain other data about the file.
Try disabling the DLNA part of Plex and monitor the issue a few days.
(Settings - Server - DLNA)

Many thanks for your prompt reply.

  1. Not using trakt.tv
  2. A snapshot of a debug log does not show any matches for corrupt/malformed so luckily I don’t need to try and repair my database. I’ll leave the log running and check again tomorrow sometime.
  3. DLNA is enabled. I will disable it as I don’t use it, and monitor if this helps. Edit: No new devices/updates on the network so this is likely to be a red herring. I’ll try it though.

Will library size be impacting a limit imposed by whatever queries you are using or some other limit?

Cheers,

ClanBear

@ClanBear said:
Will library size be impacting a limit imposed by whatever queries you are using or some other limit?

I am not sure what you mean here, sorry!

On what kind of device are you running Plex server?

Will the size of my library, specifically the database, be causing knock on problems with the SQL queries you are using to determine OnDeck entries? I would guess not but there may be other implications of a large library over and above SQL queries which may impact the correct determination of what is ‘On Deck’ in Plex Media Server.

Ubuntu 17.04, 32GB RAM, Intel 4770K

How big is your library? I’m just passing 10tb and all is still well.

More than 10 times that.

I need a list of all of your shows. lol

Impressive. I have a new goal.

@ClanBear said:
More than 10 times that.

Let me put up the batsignal for @cayars who has a big library as well.
He might be able to answer you that particular question better than I do.

Saw the signal!

I’ve never experienced any problems like this at all. I do run my Plex install on an SSD for added speed but everything is still fast and I have no abnormalities like those described here.

I’ve also played around adding fake entries to my system and know I’m good for at least 5 times my current library size. The only thing I’ve seen that slows my system down is music since I’ve got a decent size music collection. I moved that to a different/old computer running plex that doesn’t have to worry about transcoding video and everything is peachy now.

If you want to shut down your plex server, ZIP up the database files and PM them to me I’d be happy to run a few diagnostic queries against it to check for any type of corruption and make sure there are no problems.

Carlo

PS on a decent size system you might need to Empty Trash, Clean Bundles and then Optimize Database once in a while or after you’ve made substantial changes to any library to keep things in tip-top-shape.

R U positive no one else has access to your account and could start watching something?
R U positive you aren’t using TrakT? Ever had it installed in the past?

If not using, I highly recommend installing and using PlexPy. You will wonder why you never used it prior. This can help you look back at a something that pops up in your continue watching to see who/if/when another user played that and when. Might have a small glitch in a table that is linking the wrong user to your account or something and PlexPy could help with that.

Carlo

Thanks for your response fellow hoarder of media… :wink:

It’s good to know it’s nothing intrinsically limiting about how plex processes onDeck.

I can confirm I have never used trakt. I was running plexpy but then removed it as I do not share my library due to upload restrictions (severe restrictions) so its use was academic. However in this case it would have been extremely useful to check that my account was not accessed! I’ll re-add plexpy to help me track this down - after I change my password.

I’d like to avoid sharing my sqlite db at this time :smile: When I get home however I will run an integrity check on it. I’ll empty trash, clean bundles and optimize db now.

Aside from the above all I can do is wait until my next update over the weekend and check if anything else miraculously appears. The debug log is still running.

Thanks for your suggestions.

Cheers,

Sean

Sending you a PM.

A quick update in case anyone is interested!

PlexPy does not show any access to my library on my account since installing it and the issue has not happened again. The database looks ok as far as I can tell with no errors logged over the period since I started debug logging.

After drilling down on a couple of the problem issues I highlighted above it may be the case that some of the ‘recently added’ tv episodes were played by my son by accident on his iPad. Normally this would never happen as his iPad is setup to use guided access when he uses it. Obviously though this is prone to human error and I suspect what has happened is that he accidentally played a few of these after we forgot to start guided access.

I still can’t explain other behaviour such as s01e01 of a show appearing on deck (unwatched) with no specials, but I’m happy now and found at least a couple of examples of behaviour which explained what I saw previously. So in summary I jumped the gun a little bit as I hadn’t considered my sons iPad usage in the above manner.

Thanks to everyone for their help and suggestions.

Cheers,

Sean

ClanBear, we all jump the gun now and then.

I’ve been known to do that on occasion. :slight_smile:

I’m just glad to hear your system is working as it should. Keep an eye on things and use PlexPy to check any abnormalities of play times.

Carlo