Issue getting music sub folders

Server Version#: 1.14.1.5488

My library for music is huge. About 100k songs. The file structure is music>artist name>album>etc… That said, it seems plex is only grabbing the top folder level songs (at the root) so I thought maybe a permission issue.

My plex is run within a docker container with a docker-compose.yml. The section for plex is:

plex:

container_name: plexms

restart: always

image: linuxserver/plex

network_mode: host

environment:

- PUID=1001

- PGID=1001

- VERSION=docker

volumes:

- /mnt/sdd/plex:/config

- /mnt/sda/movies:/data/movies

- /mnt/sdc/music:/data/music/

I set permissions as:

sudo chmod 777 mnt/sdc/music/

But the scan results is the same despite the change on permissions. My plex plexmediaserver.pid file just shows “234” in it. Not seeing what else I should/could change.

Additionally, my music is on one mounted drive, plex library setting on another, and then container info for docker on another. Plex works fine also for movies, but not sure why I am having issues with the music part. User and group for the movies is root:root, but for music, it is not the same and not sure it should be. What are suggested for running pms with these types of scenarios?

Lastly, even the ones it does add, it does not seem to play as it says that the necessary drive needs to be mounted which it is.

What else am I missing here?

Try setting permissions recursively:

sudo chmod -R 777 /mnt/sdc/music/

Have done that as well. What else can I check or provide to get some insight into this?

It’s almost always about permissions and ownership.

I run my dockers with the UID and GID of an already existing ordinary user on the system. That same user and group also own all the media files and directories. I have never had any problems with this setup.

Media directory permissions are all 2755
Media file permissions are all 644

Do I need to change something in my .yml file? When I make the permission changes, I have stopped the container and restarted it. Kept thinking of maybe some sort of cache holding onto something old, but cannot pin point.

Should not have another to do with the mounts as before running in Docker, they were in mounts there too.

Going into webmin and looking at permissions and ownership, I see:

I see you run the container as:

PUID=1001
PGID=1001

Where did these come from? Do they correspond to a real user and group on your system?

Having your media folders owned root:root is not a good idea, even if it isn’t the problem. I don’t see anything about permissions for the files within those directories. What are they?

If you haven’t read thru the below guide, you should:

https://support.plex.tv/articles/200288596-linux-permissions-guide/

Well I feel dumb. I had thought that all the files and sub folders copied when I ran this batch, but that was not the case. So the issue with porting in the files into the library was due to lack of files. But now going through this exercise, it definitely helped me understand the permissions and such much better and allowed me to get a grip on this.

Thanks for the help!

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