Movies and tv shows are getting removed? Pls help I'm losing my mind

Yesterday I finally updated to 1.13.2.5154 (Win10). I’m not sure if this is the cause of the issue I’m currently dealing with, but it is the only change made to my setup. I don’t understand how it could be the cause, but I’m at a loss and will shortly lose my sanity trying to figure it out.

I have PMS set up on it’s own machine, along with sonarr/radarr/deluge etc. Sonarr and radarr do all of my file handling. Yesterday morning after I updated, some of my movies and tv shows disappeared. From what I can tell, it’s pretty much everything that has been added in the past month or so.

After processing, everything eventually ends up in two folders called S:\TV and S:\Movies. The missing files are no longer in either of those folders. I tried to figure out what was happening yesterday with no success. I re-downloaded a couple of movies and tv episodes yesterday, they stayed on the server for a couple of hours, and they are gone again. I’m at a loss as to what is going on.

I don’t know what else to check, I’m out of ideas and patience. Any suggestions?

Thanks.

Plex doesn’t delete media ever unless you have specially clicked the setting to allow it to.
Have you set the recycle bin in Sonarr & Radarr?
If so check in there. If not set it now to monitor anything that might be happening on that side.

This is happening to me on one TV show as well. It’s the same few episodes in the same season folder every night. Allow deletion is off, all automated tasks and maintenance is off. but sure enough, every morning Plex logs show those same episodes deleted from the Plex and from the NAS they’re stored on. The only thing I can do is turn off all permissions but write on the folder.

No idea what’s going on. I’m the only person with access and permissions so it’s not a client or another user. And the fact that it’s a random set, but the same random set of episodes is weird. I re-upload them, scan the library to update it, and they’re fine until the auto scan, which I turned off, deletes them. Started with 1.13.

Is that a show you have set to record in your DVR?

If so, the retention settings for episodes are located in two places. Deletions tie to the show as a whole, not just recordings.

Not a DVR show, at least for me.

I just did that a few hours ago, so no results yet. It’s unlikely though, but worth a shot.

It happened to me with about 4 tv series and 10 or so movies. Maybe it’s worth noting also, that every time I manually upload something, it disappears. Sometimes it takes hours, sometimes days, but it’s inevitable. Not all my disappearing stuff is manual uploads though.

No DVR.

have y’all looked in scanner server logs? if it was server making the call to delete it ( or a player app requesting it) then it should be in logs.

I did but my logs reset every day. The plan is to reset all my settings back to original and grab the logs the next day after the episodes get deleted. Hopefully it can help diagnose iPiedras and my issues. I should have them tomorrow to share.

This is one of the files in the scanner log. I only have 6 of this type and I’m missing way more than that.

Jul 11, 2018 09:41:59.630 [4204] INFO - Plex Media Scanner v1.13.2.5154-fd05be322 - Microsoft PC x64 - build: windows-i386 - GMT -06:00
Jul 11, 2018 09:41:59.630 [4204] INFO - Windows version: 6.2 (Build 9200), language en-US
Jul 11, 2018 09:41:59.630 [4204] INFO - 8 3392 MHz processor(s): Architecture=0, Level=6, Revision=10759 Processor Identifier=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
Jul 11, 2018 09:41:59.630 [4204] DEBUG - "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe" --analyze --log-file-suffix " Analysis" --item 64781 
Jul 11, 2018 09:41:59.505 [1084] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
Jul 11, 2018 09:41:59.677 [1084] DEBUG - Analyzing media parts for item 64781 (Episode 3): 109448
Jul 11, 2018 09:41:59.677 [1084] DEBUG - [ID 112818] Media part analysis: S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv
Jul 11, 2018 09:41:59.677 [1084] DEBUG - [MI] Opening input file: "S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv"
Jul 11, 2018 09:41:59.677 [1084] DEBUG - [FFMPEG] - Opening 'S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv' for reading
Jul 11, 2018 09:41:59.677 [1084] DEBUG - [FFMPEG] - Setting default whitelist 'file,crypto'
Jul 11, 2018 09:41:59.771 [1084] WARN - [FFMPEG] - Format matroska,webm detected only with low score of 1, misdetection possible!
Jul 11, 2018 09:41:59.771 [1084] ERROR - [FFMPEG] - Read error at pos. 1 (0x1)
Jul 11, 2018 09:41:59.771 [1084] ERROR - [FFMPEG] - EBML header parsing failed
Jul 11, 2018 09:41:59.787 [1084] DEBUG - [FFMPEG] - Statistics: 1048576 bytes read, 0 seeks
Jul 11, 2018 09:41:59.787 [1084] ERROR - Exception analyzing media file 'S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv' (Could not parse S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv (error=-1094995529): Invalid data found when processing input)
Jul 11, 2018 09:41:59.787 [1084] DEBUG - Streams didn't change in analysis, not saving.
Jul 11, 2018 09:41:59.787 [1084] DEBUG - Updating media item 109448, size=882376704, metadata_item_id=64781
Jul 11, 2018 09:41:59.787 [1084] DEBUG - Updating part with ID=112818 [S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv]
Jul 11, 2018 09:41:59.814 [1084] DEBUG - [MI] Opening input file: "S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv"
Jul 11, 2018 09:41:59.814 [1084] DEBUG - [FFMPEG] - Opening 'S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv' for reading
Jul 11, 2018 09:41:59.814 [1084] DEBUG - [FFMPEG] - Setting default whitelist 'file,crypto'
Jul 11, 2018 09:41:59.883 [1084] WARN - [FFMPEG] - Format matroska,webm detected only with low score of 1, misdetection possible!
Jul 11, 2018 09:41:59.883 [1084] ERROR - [FFMPEG] - Read error at pos. 1 (0x1)
Jul 11, 2018 09:41:59.883 [1084] ERROR - [FFMPEG] - EBML header parsing failed
Jul 11, 2018 09:41:59.883 [1084] DEBUG - [FFMPEG] - Statistics: 1048576 bytes read, 0 seeks
Jul 11, 2018 09:41:59.883 [1084] ERROR - Exception extracting thumbnail from media file 'S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv' (Could not parse S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv (error=-1094995529): Invalid data found when processing input)
Jul 11, 2018 09:41:59.883 [1084] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jul 11, 2018 09:41:59.883 [1084] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jul 11, 2018 09:41:59.883 [1084] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jul 11, 2018 09:41:59.883 [1084] DEBUG - Updating metadata item (save) () with ID 64781
Jul 11, 2018 09:41:59.883 [5320] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jul 11, 2018 09:41:59.898 [5320] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jul 11, 2018 09:41:59.914 [5320] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=64781&metadataType=4&state=-1&mediaState=analyzing
Jul 11, 2018 09:41:59.930 [5320] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=64781&metadataType=4&state=-1&mediaState=analyzing
Jul 11, 2018 09:41:59.930 [5320] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=64781&metadataType=4&state=-1&mediaState=thumbnailing
Jul 11, 2018 09:41:59.930 [5320] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=64781&metadataType=4&state=-1&mediaState=thumbnailing
Jul 11, 2018 09:41:59.930 [5320] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=64781&metadataType=4&state=-1&mediaState=idle
Jul 11, 2018 09:41:59.945 [5320] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=64781&metadataType=4&state=-1&mediaState=idle

I don’t see the deletion in that scanner log bit. anything in server log?

on a side note I would not organize your files like this. S:\TV\Preacher.S03E03.720p.HDTV.x264-AVS[rarbg]\Preacher.S03E03.720p.HDTV.x264-AVS.mkv episodes should be in a folder for the main show that all episodes go in. like S:\TV\Preacher\Preacher.S03E03.720p.HDTV.x264-AVS.mkv (a season folder is useful as well but season is in file name) apps like sonarr can automate it for you ( just a suggestion, it is your computer so do whatever works for you)

https://drive.google.com/open?id=15Vjgfqf8KvyifhVYSp-W06w_aCO1mArz

Hopefully that will work, I grabbed the zip file after I noticed the files missing again this morning.

As for the naming, I do have it set up properly in sonarr, that was one of the episodes that I re-downloaded yesterday afternoon and was maybe still seeding? idk, my file names don’t generally show up that way. I’ll check settings again to be sure.

So it’s definitely something with the scheduled tasks and maintenance. I turned off Media Deletion but all other Scheduled task were clicked on.

Around noon today I uploaded the missing episodes for Bob’s Burgers, ran a library scan so they were in Plex. Then i set the Scheduled Tasks to run at 1pm today. As soon as it stopped around 1:13pm all the episodes I uploaded save for one was deleted from both the Plex and the actual files deleted from the NAS.

The one episode that wasn’t deleted was one I started watching and had time left on it to finish. I looked through the logs but can’t find anything besides Plex successfully scanning the show. Maybe I’m looking in the wrong place though.

Most recent logs: https://www.dropbox.com/sh/xmtdb3nci1htwji/AAAG-ZiNgoDFhiP-Dlewg1Dqa?dl=0

Hmm okay, I just checked my scheduled tasks and everything is checked with the exception of “Update all libraries during maintenance”. For me, this runs at 1am, and my files are missing in the morning. I’ve never changed anything in this section. What would need to be unchecked? I’ll see if doing that will let me keep those files for more than a day.

How the heck does it select what to keep and what not to keep? Most of my shows and movies are untouched, it’s always the same ones that are disappearing, and I mostly use the same profiles when I ask sonarr/radarr to grab them.

I’m pretty sure it’s not sonarr/radarr deleting them, as far as I understand the logic of how they work. I have a deleted files folder set up that they dump into, and my missing stuff isn’t in there. When I check the history of the deleted files, I see “sonarr (or radarr) was unable to find the file on disk so it was removed”.

I don’t use any 3rd party stuff, so no sonarr/radarr. I hand type all the names and manually move all the shows. There’s no real rhyme or reason to why episodes 1-7 and episode 21 are the ones that get deleted, but those are the ones that always do.

I’ve re-added the files and turned off all the scheduled maintenance stuff, save for the Plex Database backup. Everything else is off. Media deletion is still off. I also just updated to the newest Plex Pass server version (Windows). We’ll see if it deletes those episodes again tonight…

Okay, I’ve also turned off everything but the backup. I’ll re-download some of my stuff AGAIN, and see what happens. Good thing I don’t have a data cap. Please let me know if your episodes survive!

I know this is happening to movies for some of y’all but for any tv show this is happening to do you have these (in image below) set to delete. Also do you use Trakt?

1 Like

The only show I have that turned on for is Stephen Colbert, it only keeps episodes for 7 days. I’ve never turned this on for anything else. I checked yesterday to be absolutely sure that this wasn’t the cause, and it is not.

I do use Trakt.

Were you able to find anything out from the log files? I have no idea what to look for in those.

Not a Trakt user either.

So I checked that Advanced setting you posted. In case you’re looking for it, navigate to your show and edit it, then go to Advanced. My problematic show had Delete episodes after watching set to 1 week. Obviously, this may be an issue, but it’d be a bug as none of the episodes were watched and they get deleted during a Scheduled Maintenance.

Fingers crossed.

i did not see anything odd in logs

Is the system clock correct? may be a bug just not sure why it would only be happening to a you guys and not more people

1 Like

I thought about that and checked yesterday. The clock was off by like 10 min. I adjusted it yesterday before the test today.