Trying to setup new server, "There are no items in this library"

Hi,

I’m a very new Plex user, and I’m trying to setup a server for the first time. I went through the setup process, and added the folders on my hard drive which contain my movies and TV shows. However, when I go to either the movies or TV shows library, Plex says “There are no items in this library”. I’ve followed the instructions on the support page for preparing media, as well as the instructions on the page for troubleshooting in the event that content is not found. Any help would be greatly appreciated.

One of the most important things to understand when setting up PMS on Linux is how strict Linux is with permissions.

By default, unless you give a user (plex) permission to read files you own (your media), Linux will not let that user see any of it

You’ll most likely want to start here.

Read through and experiment. https://support.plex.tv/articles/200288596-linux-permissions-guide/

If your media is somewhere in your ‘home’ directory you’ll have extra problems. It should be moved out of there to a more neutral location that you control and Plex can read

@ChuckPA said:
One of the most important things to understand when setting up PMS on Linux is how strict Linux is with permissions.

By default, unless you give a user (plex) permission to read files you own (your media), Linux will not let that user see any of it

You’ll most likely want to start here.

Read through and experiment. https://support.plex.tv/articles/200288596-linux-permissions-guide/

If your media is somewhere in your ‘home’ directory you’ll have extra problems. It should be moved out of there to a more neutral location that you control and Plex can read

I read that page, and subsequently created a folder in the root of my hard drive called plexmedia. I set the ownership to my user, and changed the permissions to 755, recursively so that it was the same for any files or subdirectories. I then moved all my media from where it was before, in my home folder, to this new directory, and created new libraries in Plex for TV Shows and Movies with the new subdirectories added to each. However, when I look in those libraries in Plex I still cannot see my media.

If you’ve opened up permissions that way, I need to see what’s happening.

Can you get me the log files (settings - server - help - download logs) and attach the ZIP

Also can you show me some of your structure (naming) as you have it? If not compliant, Plex won’t see anyhing

@ChuckPa said:
If you’ve opened up permissions that way, I need to see what’s happening.

Can you get me the log files (settings - server - help - download logs) and attach the ZIP

Also can you show me some of your structure (naming) as you have it? If not compliant, Plex won’t see anyhing
I’ve attached the logs ZIP

Here is a screenshot of my movies folder

And here is a screenshot of my TV Shows folder

Your naming is good and the logs show no errors.
I do see where you’re pushing on it pretty hard (you’ve deleted and created libraries a few times)

Please do the following for me:

  1. Delete all sections
  2. Empty Trash
  3. Clean bundles
  4. Optimize database
  5. Create a movie section listing only the movies directory as its root
  6. BEFORE clicking ADD, go to Advanced and disable Chapter Thumbnails & the other images. I want this to match as fast as possible.
  7. ALSO do not allow it to use embedded metadata
  8. It should automatically start scanning
  9. You will see the progress indicator at the bottom of the window
  10. After it completes, if still no matches, grab the logs for me again without restarting

I am beginning to think you have embedded metadata in your MP4 files which are preventing a match. This said, something should show regardless.

I did what you said, however I’m still not getting any matches. I didn’t see an option to disable chapter thumbnails in the add library advanced settings, however I did disable video preview thumbnails as that seemed to be the closest in name to disabling chapter thumbnails. I also disabled local media assets under agent settings, I assume that’s the same thing as embedded metadata?

You’re doing great but something about that installation is, pardon my French, really pissing me off :smiley:

Time to break out the big hammer and begin again with it

  1. Close all browser windows
  2. Stop PMS
  3. sudo rm -rf /var/lib/plexmediaserver/Library
  4. Start PMS
  5. Wait 30 seconds for it to perform basic initialization
  6. Open browser to http://127.0.0.1:32400/web
  7. Begin first-run setup

@ChuckPA said:
You’re doing great but something about that installation is, pardon my French, really pissing me off :smiley:

Time to break out the big hammer and begin again with it

  1. Close all browser windows
  2. Stop PMS
  3. sudo rm -rf /var/lib/plexmediaserver/Library
  4. Start PMS
  5. Wait 30 seconds for it to perform basic initialization
  6. Open browser to http://127.0.0.1:32400/web
  7. Begin first-run setup

I did that, I’m still not seeing any media.

@Nayviler said:
I set the ownership to my user, and changed the permissions to 755, recursively so that it was the same for any files or subdirectories. I then moved all my media from where it was before, in my home folder, to this new directory

You moved the media AFTER you had set permissions of the directory plexmedia, is that right? So I have to assume, the permissions are still not correct. Please set the permissions NOW, e.g. chmod -R a+rX plexmedia. This will allow any user to read the files and any user to enter each sub-directory. Permissions on Linux are not automatically inherited (by default), -R does only change the permissions of the existing files at the time chmod is issued.

Edit: if this does not work, please tell us about the file system of your hard drive and your entry in /etc/fstab.

Just for verification, May I have a 25 MB sample of any of the files?

dd if=filename.ext of=sample.ext bs=1M count=25

ZIP and attach here please

@uglymagoo said:

@Nayviler said:
I set the ownership to my user, and changed the permissions to 755, recursively so that it was the same for any files or subdirectories. I then moved all my media from where it was before, in my home folder, to this new directory

You moved the media AFTER you had set permissions of the directory plexmedia, is that right? So I have to assume, the permissions are still not correct. Please set the permissions NOW, e.g. chmod -R a+rX plexmedia. This will allow any user to read the files and any user to enter each sub-directory. Permissions on Linux are not automatically inherited (by default), -R does only change the permissions of the existing files at the time chmod is issued.

Edit: if this does not work, please tell us about the file system of your hard drive and your entry in /etc/fstab.

That did it. Success. Thanks.

I just had a thought;

The library type is “Movies”
The directory to browse to is /plexmedia/movies.
As confirmation, you will all your movies show up in the right pane when you’re at the right place
This is where you ADD

This failing, I will give you 1.12.2 PMS to back down to as our next test

@ChuckPA said:
I just had a thought;

The library type is “Movies”
The directory to browse to is /plexmedia/movies.
As confirmation, you will all your movies show up in the right pane when you’re at the right place
This is where you ADD

Sorry, I’'m not sure I understand?

Is this machine in your home or hosted somewhere?

Your Library reference should be the top of where the media files are. Like this:

@ChuckPA said:
Is this machine in your home or hosted somewhere?

It’s in my home.

I don’t know why but it appears you’re working now?

It looks like the forum went for a long lunch on us.

As final confirmation, Are you seeing your movies and TV episodes now?

@ChuckPA said:
I don’t know why but it appears you’re working now?

It looks like the forum went for a long lunch on us.

As final confirmation, Are you seeing your movies and TV episodes now?

Yes, I’m seeing my movies and TV Shows now. Thanks for your help.

My profound apologies for the forum. I’ll reach out too our forum guy and bring it up with the provider on Monday…

This was insufferable.