Not sure if this solves your issue, but I was just having the same issue on a brand new install on a Raspberry Pi 4 with mounted external drives.
After setting up a Library I noticed that nothing was being imported (I should have been tipped off as I was trying to select the folder nothing was showing up in the UI). In the logs ("/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log") I kept seeing the following line:
Aug 15, 2020 14:56:57.364 [0x9d2f6440] ERROR - Couldn't check for the existence of file "/media/pi/gemini1/Media/TV Shows/.grab": boost::filesystem::status: Permission denied: "/media/pi/gemini1/Media/TV Shows/.grab"
This confused me because I had made sure to set permission so that the world could read and execute (I even tried read, write, and execute) on the folder:
pi $ ls -l /media/pi/gemini1/Media/
drwxr-xr-x 7 pi pi 4096 Aug 15 13:14 'TV Shows'
I didn’t believe that this was file system issue until I ran:
pi $ sudo -u plex ls -l /media/pi/gemini1/Media/TV\ Shows/
ls: cannot access '/media/pi/gemini1/Media/TV Shows/': Permission denied
Eventually, I tracked it down to the ‘+’ in the permission of one of the parent folders:
pi $ ls -l /media
total 4
drwxr-x---+ 5 root root 4096 Aug 15 13:39 pi
I have seen the ‘+’ before but have always dismissed it. Turns out that it’s letting you know that there are ACLs on this directory (and it’s sub-directories).
Sure enough:
pi $ getfacl pi
# file: pi
# owner: root
# group: root
user::rwx
user:pi:r-x
group::---
mask::r-x
other::---
Not sure if this was overkill, but I’d been at this for way longer than I cared for, I ran:
pi $ sudo setfacl -m plex:7 pi
pi $ getfacl pi
# file: pi
# owner: root
# group: root
user::rwx
user:plex:rwx
user:pi:r-x
group::---
mask::r-x
other::---
Went back to the UI and clicked ‘Scan Library Files’ and it worked - files started showing up.
Hope this helps others.
FYI: If you don’t have getfacl, setfacl, and tune2fs run the following:
sudo apt-get install nfs4-acl-tools acl