Filenames changed on NAS but not reflected on Plex; now points to unavailable file

Server Version#: 1.28.2.6151-7000
Player Version#:

Hi folks. I installed Plex and had it index my library (/videos). Many of the film names were things like “01”, since the filenames were “01.avi”, so I went through and renamed those files on the NAS.

However those incorrectly-named files are still present, but it says they point to an unavailable file. This is true, that filename is gone, but how can I update the library to reflect changes? I feel like I’ve tried all the options recommended here. The files are NOT present under the now-corrected name.

This person is asking something similar but I don’t care if I have to rebuild the library fresh (hopefully I don’t have to do this every time from now on though).

NAS shared folder permissions are correct per this.

Any tips greatly appreciated. Cheers!

NAS: DS220+. DSM 7.1.42661

You should be able to fix this with the following two actions/commands from the library’s context menu:

  1. > Scan Library Filesthis will re-index your library files; you might have already done this… maybe one more scan for good measure :wink:
  2. > Manage Library > Empty Trashthis will remove any previously indexed files that are no longer visible/available to Plex.

Usually Plex is quite good in recognizing renamed files and treating them as such.
If you did a lot of file changes but haven’t spend much effort inside Plex, it might be easiest to create an entirely new library, pointing to the same library folder (and deleting the old one).

Thanks for this Tom.

  1. Only takes a half second. Is this normal/expected? Or indicative of some underlying issue?

  2. Tried this with the server and /Films (probably the same thing) and nothing happened… but I haven’t actually deleted (in Plex anyway) those files which are unavailable.

  3. Library deleted. Re-added. Re-scanned. Half second. No media. So this looks like the problem. The media folder location is /volume2/video. If I scan that location:

root@NAS:/volume2/video# du -h -d1 | sort -h -r

All those folders are large, multi gigabytes, so this is the right location where the files are present. But Scan Library, Analyse, Refresh All Metadata: all don’t work.

Any thoughts? This seems like Plex isn’t finding the files… but the location is correct, and it’s connected to the NAS since it populates the list of folders available on the NAS…

Thanks for your snappy reply, it’s much appreciated!

If the server is running on the Syno itself… can you verify the system account PlexMediaServer is granted permission to see the share / its content?

Morning. It is, KINDA:

“Plex”, not “PlexMediaServer”. So maybe this is a hangover from when I had DSM6, and now I have DSM7 it’s defunct? So per the link you shared, manually create a new used “PlexMediaServer”?

As you can see, Plex user exists and has access to the correct folders but does NOT have access to PlexMediaServer. If I give this existing user access to PMS…?

Or do I have to manually create a new user called PlexMediaServer?

Plex server doesn’t have the ability to create itself as a user no? I don’t remember having to do this manually before, but it would have been yeeeeeears ago so I probably wouldn’t remember either way.

Thanks again!

Also in Shared Folder I gave PMS the same permissions as Plex has:

But I note Plex is a user and PMS isn’t. Both are shared folders. So I probably DO need to create a user. Can I just change the username from plex to PlexMediaServer? Should it be upper or lower or camel case?

Thanks

As you’re on DSM7, you got your permissions upside/down.
You still have granted permissions to your media to the plex user – that’s the user used on DSM5/6. With DSM7, you need to give the user PlexMediaServer permission to access your media.

Also… this is not about giving anybody access to the PlexMediaServer share. That’s just the place where Plex stores its database and supporting media – no place for your media or anything to touch manually.

Ah ok groovy, thanks. So I definitely need to manually create a PlexMediaServer user right?

see the guide I had linked above… if the system user isn’t listed, there’s an instruction on how to get this done in 1 go.

Hiya, probably I’m misunderstanding but I’m not sure those instructions are still valid for DSM7. Per my screenshot under “KINDA”,

shared folder > video > properties > permissions: there’s no user “PlexMediaServer”.

From the guide link you shared:

  1. If user “Plex”/“PlexMediaServer” isn’t listed, we will need to add it to the list of username (top box)

But there’s no obvious way to do that in DSM7 within that open dialog box. But “top box” is ambiguous so:

Top box = buttons in Shared Folder: no option to create user.
Top box = taskbar: can see admin account details on the right, or go into general menu.

So I think “top box” may have changed in DSM7?

My suspicion is that I have to add the user PlexMediaServer in Control panel > user & group > create user, OR edit the existing “plex” user since that is no longer valid?

Will simply changing the username from “plex” to “PlexMediaServer” allow PMS to connect to the NAS, e.g. if it’s connecting to the NAS as a user already named “PlexMediaServer”?

Thanks

Hmm. Tried to simply change the name from “plex” to “PlexMediaServer”:

But PlexMediaServer isn’t a listed normal user…

@dez93_2000

On DSM 7, Synology does things differently.

  1. There is no user Plex anymore. It is abandoned. You can delete it.
  2. When you grant permissions,
    – “PlexMediaServer” is a “System Internal user” (it’s the application’s name)
    – You either change the “Local Users” (in the left corner) to “System Internal Users” and select “Plex Media Server”
    or
    – You create a new Read-only or Read/write permission rule

    – Check the box “Apply to this folder, sub-folders and files”
    – Click “Save”
1 Like

Supplemental:

Here’s the “OH NO!” and the “informational” versions :wink:

  1. Control panel > User & Group > Plex user deleted.
  2. Control panel > Shared Folders > video > properties > permissions > System internal users > PlexMediaServer: read/write. Save.
  3. Plex: rescan library: success.

Thanks Chuck!!

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