File Name Corruption

Server Version#: 1.28.2.6151-914ddd2b3
Player Version#: (All… macOS, tvOS, iOS, Amazon Firestick)

Nothing to log really… I have been seeing file names corrupted after upload. All players see it. On the server, you can sometimes see the file name has been actually changed (FileNameRegular → WBEGF~1, etc.).

Do a search on the odd file name and it’s not physically on the server but the original file is. Delete it, force library scan, wait for it to go away, add it back in, scan again, comes back with the bad info.

These odd names are only in the Plex db and not the actual file names.

Screen Shot 2022-09-04 at 9.32.36 AM


Sounds like you have enabled the prefer local metadata option and got some files with very bad embedded metadata… it’s not necessarily corrupted; just somebody decided to put that garbage into the files.

You are blurring out the file path but that shows that the underlying file has the same name. If you provided the full path (you can censer C:\Users\<UserID> ) it might help

I bet your medias are located on a NAS

So please share more details here, since what I could digest from the VERY LIMITED INFO YOU PROVIDED is that you access a share on a NAS, and it presents it’s filenames as windows short names (8.3)

I did find 1 instance like that (local metadata) and changed it back. Thanks.

Yes it’s a NAS. No it’s not an 8.3 Windows file name. It (DSM) supports long file names as well as text cases and (some) special characters.

The path is nothing but s:/[shared path]/filename in the Plex edit screen. If you search the NAS for that file name, sometimes (rarely) it really has been changed to that but usually you just can’t find it because the original name is still out there. BUT if you hit play on the mixed-up file “poster” in Plex, it still plays. So even though nothing in the Plex Edit screens reflect the real file name, clearly Plex has it mapped to the original file in some way.

How exactly are you sharing your media from the Syno? The problem dane22 had described is not limited to 8.3 Windows/DOS based file systems but can impact certain file transfer protocols if the two endpoints fail to communicate properly.

I suppose it’s not Plex that’s mismatching your file names but that’s how they show up on your server’s host system?

Interesting question and I’ll admit to being a little vague on xfer protocols in use. NAS is a Synology, running DSM (current). Server is Wintel (Win10) and maps a drive to the NAS.

I know the NAS shows the Plex server connection using Samba (SMB2).

It’s been running like this for years (drive upgrades IAW Syn’s approved list along the way) and this is a recent issue. I first thought it was an issue with something on the cusp of failing (drive of the NAS controller itself). All drives pass deep deep SMART tests as well as a monthly “data scrub” within Syn scheduler. All logs and stats show healthy drives at normal op temps.

So I came here when I saw nothing seemed to be changing the file name itself but some way the Plex plugged in an odd name while some way keeping a connection that played the un-renamed file.

Sure seems to be at the Plex level.

In windows if you go to the file path \\fileserver\movies\Movies (same computer that has plex on it) what does it show for file names?

Without the server logs, and given censored file paths its difficult to troubleshoot.

And adding here…

When you look at the filesystem on your NAS directly, does any filenames or paths contain any of the following characters:

> : " / \ | ? *

Path is x:\folder\folder\file.ext

Each folder is without spaces or special characters (only upper, lower, numerals).

Logs: Since I don’t know when it will happen, just enable and leave running until it does?

NAS
\NAS\Data\Movies\File.name [mapped to X]

Local
c:\ProgramFiles\Plex\Plex[lots of files and folders]

I’m trying folks but with the recent concerns about system compromises, I suspect you can at least understand.

So… just enable logs and wait?

Try and do a Plex Dance on a media, then zip the logs and upload

Edit: And how does it look in File Explore, when you look at your X drive?

I can do the PD! Thanks.

As mentioned somewhere above, the direct file (file expolrer) USUALLY looks normal. On rare occasions the target file name has also been renamed… say 1 in 20.

Above indicates, that you are not faced with a Plex problem, but a problem between your Windows and Synology!

Not a Synology guy, but regardless, look here:

That was about where I was after getting to this point. I’ll do that “dance” but my next step was to check Syn.

Just the trouble shooting, eliminating possibilities process.

Thanks everyone for all the help.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.