Unable to Add/Scan Library with new install

Server Version#: 1.28.2.6151
I can not seem to get the server to scan and add ANY library. Any ideas?

I have checked everything. The path to the files is correct, permissions look right but nothing with add.

I am at a loss. Can anyone help? I can provide logs if I knew what logs I need to provide.

Need details please

You’re in the Linux forum but that’s all we know.

Logs will help but this is 99% likely a permissions problem (the most common)

What kind of details do you need. Here is the first part of the Plex Media Server Log: With the first verbous

Sep 20, 2022 11:43:03.465 [0x7fd9ed6cab00] INFO - Plex Media Server v1.28.2.6151-914ddd2b3 - Ubuntu PC x86_64 - build: linux-x86_64 debian - GMT -04:00
Sep 20, 2022 11:43:03.465 [0x7fd9ed6cab00] INFO - Linux version: 22.04.1 LTS (Jammy Jellyfish), language: en-US
Sep 20, 2022 11:43:03.465 [0x7fd9ed6cab00] INFO - Processor: 4-core Intel(R) Core™ i3-6100 CPU @ 3.70GHz
Sep 20, 2022 11:43:03.465 [0x7fd9ed6cab00] INFO - Compiler is - Clang 11.0.1 (https://plex.tv 9b997da8e5b47bdb4a9425b3a3b290be393b4b1f)
Sep 20, 2022 11:43:03.465 [0x7fd9ed6cab00] INFO - /usr/lib/plexmediaserver/Plex Media Server
Sep 20, 2022 11:43:03.464 [0x7fd9e7e5db00] VERBOSE - Library section 11 (Movies) will be updated because of a change in “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log”

The issue is it will not ADD my movies to the library.
the path is /media/cnutter/Disk1/MOVIES

When I Scan Library files it does not find anything.
This is the log i have for it;
ep 19, 2022 20:11:56.394 [0x7fddf7f67b00] INFO - Plex Media Scanner v1.28.2.6151-914ddd2b3 - Ubuntu PC x86_64 - build: linux-x86_64 - GMT -04:00
Sep 19, 2022 20:11:56.394 [0x7fddf7f67b00] INFO - Linux version: 22.04.1 LTS (Jammy Jellyfish), language: en-US
Sep 19, 2022 20:11:56.394 [0x7fddf7f67b00] INFO - Processor: 4-core Intel(R) Core™ i3-6100 CPU @ 3.70GHz
Sep 19, 2022 20:11:56.394 [0x7fddf7f67b00] INFO - /usr/lib/plexmediaserver/Plex Media Scanner --analyze --log-file-suffix Analysis --item 2
Sep 19, 2022 20:11:56.393 [0x7fddfb9f0140] VERBOSE - [FFMPEG] - Rescanning for external libs: ‘/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/c4efa15-4365-linux-x86_64/’
Sep 19, 2022 20:11:56.393 [0x7fddfb9f0140] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Sep 19, 2022 20:11:58.398 [0x7fddfb9f0140] INFO - SQLITE3:0x80000001, 283, recovered 1005 frames from WAL file /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Sep 19, 2022 20:11:58.476 [0x7fddfb9f0140] DEBUG - Analyzing media parts for item 2 (Firmware): 1
Sep 19, 2022 20:11:58.477 [0x7fddfb9f0140] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Sep 19, 2022 20:11:58.477 [0x7fddfb9f0140] DEBUG - [HCl#1] HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Sep 19, 2022 20:11:58.477 [0x7fddf75a7b00] WARN - [HttpClient/HCl#1] HTTP error requesting GET http://127.0.0.1:32400/library/changestamp (7, Couldn’t connect to server) (Failed to connect to 127.0.0.1 port 32400: Connection refused)
Sep 19, 2022 20:11:58.477 [0x7fddfb9f0140] ERROR - HTTP -7 downloading url http://127.0.0.1:32400/library/changestamp
Sep 19, 2022 20:11:58.478 [0x7fddfb9f0140] ERROR - Exception thrown during analysis: Unable to allocate a changestamp from the server

Hope this helps

I’m going to need the full logs because even in this snippet (which is nearly impossible to diagnose) is already telling me things are messed up.

Chuck

This is a link to the exported logs. If this is a issue let me know and I can just copy and paste but there is a large amount of logs. Figure it is easier to just give a link.

Got the logs, you can dispose of them.

Normally, we upload here because it’s easier for everyone

Got a few mistakes here .

  1. You put media (Movies) in /var/lib/plexmediaserver/Library or is the section folder list incorrect ??
Sep 20, 2022 11:43:13.166 [0x7fd9e7e5db00] VERBOSE - Library section 11 (Movies) will be updated because of a change in "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.3.log"
Sep 20, 2022 11:43:13.167 [0x7fd9e7e5db00] VERBOSE - Library section 11 (Movies) will be updated because of a change in "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.4.log"
  1. You turned on VERBOSE … Please NEVER do that unless requested. We lose too much data when that’s done plus it’s way harder to read.

Your logs are full of PMS logging itself and therefore they’re totally useless.

At this point, please do the following:

  1. Settings - Server - General - Turn VERBOSE OFF again. Keep Debug ON.
  2. EDIT your Movie library section – Folders tab – and fix that

After both are complete, Restart PMS

Turned off VERBOSE
Did the EDIT
Restarted the server via sudo systemctl stop plexmediaserver the restarted it.

Still nothing.

New logs Here.

I don’t see any Scanning attempts

How about sharing with me what you’re trying to achieve ?

What’s the path you’re trying to add and where is it? (Local, NAS. etc)

Under Libraries I show 1 Liibrary MOVIES. I click the scan libraries files and it does not scan anything. (does not locate any of the movies that are in /media/cnutter/Disk1/MOVIES

PlexServer—Libraries

1 library
[Movies]
Movies path is /media/cnutter/Disk1/MOVIES

It is local on the machine.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc 5813178480 470085036 5050050932 9% /media/cnutter/Disk1

all files are drwxrwxrwx 211 plex plex 12288 Sep 14 12:01 MOVIES

Hope this helps.

Should I consider removing the install and doing a new
clean install?

Thank you. Now I understand.

You’re using the automounter. ( /media/Your_username/<SOMETHING>)

Gnome totally hoses this up. No matter what you do, the automouter will mount it such that ONLY YOU can see it. User plex won’t .

To resolve this, make a manual mount point somewhere and make the entries in /etc/fstab

This contains everything:

What you should look at is probably:

Thank you chuck. I will mount it with in fstab and see if this sorts it. Will advise.

Well chuck I have no idea. NOT WORKING. Will not scan media files in /home/cnutter/HD1/MOVIES

cnutter@MediaServer:~/HD1$ ls -la
total 53
drwx------   5 cnutter cnutter  4096 Sep 14 14:31 .
drwxr-x---  16 cnutter cnutter    22 Sep 20 14:19 ..
drwx------   2 root    root    16384 Sep 13 11:16 lost+found
**drwxrwxrwx 211 plex    plex    12288 Sep 14 12:01 MOVIES**

cnutter@MediaServer:~/HD1$ 
cnutter@MediaServer:~$ df
Filesystem                                        1K-blocks      Used  Available Use% Mounted on
**/dev/sdc                                         5813178480 470085036 5050050932   9% /home/cnutter/HD1**
**/dev/sdb                                         2883131016        28 2736601276   1% /home/cnutter/HD2**

This is what I have in /etc/fstab 
cnutter@MediaServer:~/HD1$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# /boot/efi was on /dev/sda1 during installation
UUID=17B3-AE0A  /boot/efi       vfat    umask=0022,fmask=0022,dmask=0022      0       1
/boot/efi/grub  /boot/grub      none    defaults,bind   0       0
UUID=fca0c374-0a05-4565-b5ad-96d6d655d783       none    swap    sw      0       0

# Addtions for external and internal drives
# Mount (ext4)  at /home/cnutter for Plex
UUID=d3181b5b-ef22-45ab-a7a9-07e823acc6d6 /home/cnutter/HD1 ext4 defaults,auto,rw,nofail 0 1
UUID=ba479708-e9b7-463a-86b8-06e22081e414 /home/cnutter/HD2 ext4 defaults,auto,rw,nofail 0 1

Any ideas. It does not scan any files.

MODERATOR EDIT: Readability

YEP… I can see it immediately

cnutter@MediaServer:~/HD1$ ls -la
total 53
drwx------   5 cnutter cnutter  4096 Sep 14 14:31 .

What’s wrong with that permission setting?

waits for :man_facepalming:

:slight_smile:

you didn’t do as I had suggested in my Linux tips? (missed a few steps)

HINT:

Never put media in your home directory.

It’s better practice, if you need it on the /home partition to create something like /home/media with you as the owner and appropriate permissions where you mount the external drives or store the actual files

:grimacing:

let me see what I can do here.

Thanks Chuck, its working now. Apparently, it was the mounting issue then the permissions and ownership.

I changed the fstab mounting points and moved it out of my /home into its own /plexmedia/HD1 and /plexmedia/HD2.

thanks for the help man,

Yep,

there is a trick:

  1. mkdir
  2. chmod (the base dir)
  3. mount
  4. chmod (the mounted filesystem – if needed)

Fun, isn’t it ? :slight_smile:

In your case, the top of HD1 had 700 permissions and not 755

Chuck honestly, I have not used Linux or Unix in 10 years ish. Last thing I used was FreeBSD 8.x back in 2012/13 ish. and that was on a colo I had for years. Again, thanks for the help. I am very very rusty. I figured it was something stupid I was missing. Again, thanks it seems to be working well now.