This library is currently empty

Server Version#: Version 1.21.0.3711
Player Version#:
Several times over the last year I get the error: “This Library is currently EMPTY” when trying to add new content. The directory shows up, but noting is in it.

It is NOT the files, because if I copy the same video files to another already used directory and then SCAN the Content shows up fine. Or, If I edit another already working listing and delete the path of the working files and add the path where the new video content is it will most likely show up. I say most likely because sometimes this doesn’t work, and I delete this selection and pick another work folder listing and do the same thing and it then works.

Can user plex read the files?

Linux is very strict with permissions.

Just because you can see it (your username) does not guarantee user plex can.
(this is how Linux works ).

Please show me the directory listing (top level) for a library section which isn’t working.

(ie. “Movies” section uses “/nas/movies”)

please show me ls -la /nas/movies

copy / paste that text with your reply.

The files are located at > /media/pi/MYSTERY/MidsomerMurders/MidsomerMurdersS20

I did NOT think it was a rights issue because the error of “The Library is EMPTY” only shows up when trying to create a new Library item. It works OK when I direct an existing working Library to this new directory. If it makes a difference, I connect to my Plex Server from a Windows 10 computer (laptop and desktop) and see the same thing.

This is what shows up when running (note: MYSTERY is the name of the USB stick in the server)

pi@raspberrypi:~ $ ls -la /media/pi/MYSTERY/MidsomerMurders/MidsomerMurdersS20
total 6251708
drwxrwxrwx 1 pi pi 4096 Jun 27 11:16 .
drwxrwxrwx 1 pi pi 0 Jun 27 11:11 …
-rwxrwxrwx 1 pi pi 978481903 Aug 26 2019 ‘Midsomer Murders S20E01 - The Ghost of Causton Abbey.mp4’
-rwxrwxrwx 1 pi pi 1037384145 Aug 26 2019 ‘Midsomer Murders S20E02 - Death of the small Coppers.mp4’
-rwxrwxrwx 1 pi pi 1149761049 Aug 26 2019 ‘Midsomer Murders S20E03 - Drawing Dead.mp4’
-rwxrwxrwx 1 pi pi 1039522781 Aug 26 2019 ‘Midsomer Murders S20E04 - The Lions of Causton.mp4’
-rwxrwxrwx 1 pi pi 1024316059 Aug 26 2019 ‘Midsomer Murders S20E05 - Till Death do us Part.mp4’
-rwxrwxrwx 1 pi pi 1172266600 Aug 26 2019 ‘Midsomer Murders S20E06 - Send in the Clowns.mp4’

Thanks

David

@drcdavesr_gmail_com

The /media directory, is a special case on any system which has the Gnome desktop.

If you look /media/pi/MYSTERY permissions are probably set for you exclusively.

When running Gnome, and here’s what gets everyone, Nautilus mounts the USB EXCLUSIVE to your username. User plex can’t read it in spite of the permissions.

You’ll see it fine – Plex will be excluded.

Therefore, I suggest trying to mount it with this method:

You’re looking to use the UUID= method to mount the USB drive in a location which is not under /media.

Any non-conflicting directory, outside your home directory, will do.

Please review that and see if it might help this case. I know the Pi itself is a special case.

Thanks for offering help, but your suggestion is assuming that the plex user can not see what is there?
This is not true, because the user plex can see what is in the same directory when i select EDIT of a current working Library option in my Library and then select “Add Folders” and point it to this same directory and all videos show up.

It looks like I have maybe reached a limit of how many items are in the Library? Just counted and have 63 listings.

Need to back fill to give you more info on my custom setup for Plex on my Raspberry Pi

I did this to install drivers on server to allow recognition of NTFS, vFat and ext4 formatted drives.

sudo apt-get install ntfs-3g
sudo apt-get install vfat
sudo apt-get install ext4

sudo apt-get update

Then I gave permissions to the directory that the Desktop auto mounts any drive to when connected. This will allow the PLEX server to directly access a drive connected without having to change the mounted location.

sudo chmod 755 /media
sudo chmod 755 /media/pi

This was all done to allow Hot Swap of different USB sticks inserted into the system.

So the Plex server has never had a problem seeing any files in the media directory.  Just the library shows empty when trying to add a new listing.  When I go to an existing listing I delete the path it is looking at and point it to the new items I have added and then they show up.  So it looked like I had reached a LIMIT to how many directories can be listed?

Just noticed a similar problem with another directory on my Plex. Have 12 movies in a Directory under the file system MYSTERY/NEW
From the Web browser I created a Directory entry pointing to this directory and called it “Mystery New” and 2 movies from the 12 do not show up.
Daddy Dar Care 2003.mp4
Grand-Daddy Day Care 2019.mp4
I did a file COPY and copied these two files to another directory on MYSTERY / MISC
From the Web Browser I went to the already created folder “Mys MISC” and did a Scan Library Files ON Both MISC and NEW

The 2 Movies now show up in the MISC folder but not under the NEW even after multiple scans. So PLEX does recognize the 2 movies, but they dont show up in the NEW folder

Permissions!!!

can the Plex user read the directory and its contents?

  • This command was run when I setup server, so Plex user should have full access
    To verify this, in the NEW folder the Plex user can see the other 10 movies
    To verify the naming is ok, I copied these two movies to another folder and they show up when the Scan Library was performed

sudo chmod 755 /media
sudo chmod 755 /media/pi

Knowing the structure should be something like:

/media/
  pi/
    NEW/
       Movie1 (Year)/
          Movie1 (year).ext
       Movie2 (year)/
          Movie2 (year).ext
.
.
.

Can the plex user read the individual Movie Title directories ? Movie1 (Year)/ in this example.

How are the new files named? Are they standard naming?

Something very simple must be wrong here.

I gave permissions to the directory that the Desktop auto mounts any drive to when connected. This will allow the PLEX user to directly access a drive connected without having to change the mounted location.

sudo chmod 755 /media
sudo chmod 755 /media/pi

I never paid attention to the naming convention until this started happening. So looking it up I found to use what is below. Even tried putting (around date). In the NEW directory the other 10 movies show up fine but these two do not. They show up fine in the Misc directory and all I did was copy the files there. Had the same thing happen with TV show and it doesn’t show up by itself, but when I added the path to the TV show to the season before it and it shows up.

Files are in both directories NEW & Misc
/media/pi/MYSTERY/NEW/Daddy Dar Care 2003.mp4
/media/pi/MYSTERY/NEW/Grand-Daddy Day Care 2019.mp4
/media/pi/MYSTERY/Misc/Daddy Dar Care 2003.mp4
/media/pi/MYSTERY/Misc/Grand-Daddy Day Care 2019.mp4

This has been happening on a regular basis with some new items I’m trying to add.

Please do the following.

  1. Verify DEBUG logging is enabled; VERBOSE is disabled in Settings - Server - General - Show Advanced. SAVE if you make changes.

  2. Scan files for the library section (or any others which are missing files)

  3. Wait for all activity to stop

  4. Settings - Server - Troubleshooting - Download Logs.

  5. Attach the ZIP file it gives you here with your next reply.

We’ll see what PMS is not liking.

Plex Media Server Logs_2021-07-06_10-46-40.zip (4.4 MB)

While doing the scan I noticed two other movies in the same directory that did not show up after the scan.

/media/pi/MYSTERY/NEW/Overboard - 1987.mp4
/media/pi/MYSTERY/NEW/Overboard 2018.mp4

I copied the two files to the other directory and both showed up even before doing a scan

/media/pi/MYSTERY/Misc/Overboard - 1987.mp4
/media/pi/MYSTERY/Misc/Overboard 2018.mp4

Just noticed the name /Misc/ is what shows up in the PLEX library name. All the files are actually located in the File Structure name of /MYSTERY/DaVinciCode - this was the name of the directory that was working for these movies and I copied the files there

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