Resolved - Odd Permissions Issue With Media Folders

Need help? Post your questions here.

Moderator: moderators

Resolved - Odd Permissions Issue With Media Folders

Postby FlintIronstag » Sun Jul 25, 2021 4:10 am

I've got an issue I can't figure out with my Subsonic install. I am running standalone Subsonic in a FreeBSD jail on a TrueNAS server. I have a mount point for my audio storage set within TrueNAS with recursive read-only permissions for the subsonic user. All is working well and I'm able to stream music successfully, except that things got weird when I started refining my media folders within the subsonic web interface.

My media folders are set up as follows. My intent is to keep music and audio books separate, and have a separate folder of curated music for the kids' tablets to stream whenever they want.

Audio Main: /media/audio
Music: /media/audio/Music
Audio Books: /media/audio/Audio Books
Kids Music: /media/audio/Kids

All of these media folders work and stream correctly as long as the "Audio Main" folder is enabled and the user is given access to it under the Users tab. If I disable or delete the Audio Main folder from the subsonic web interface, or if I uncheck access to Audio Main under the Users tab, then none of the other media folders will stream or give track listings. Instead, the client brings up an error message complaining about permissions being insufficient.

This isn't a big deal for the main users, but for the Kids account, allowing access to Audio Main defeats the purpose of having a curated limited-access folder. It looks like the permissions for the other media folders are somehow dependent on the Audio Main path. As soon as I re-enable Audio Main or give the user access to it, all of the other media folders begin working again.

Any ideas on what's going on here? I wasn't able to find any helpful logs, but I may be looking in the wrong place. I can work around the issue by creating multiple mount points within TrueNAS, one for each media folder, but that's not very elegant, and I'd rather keep it all within the Subsonic configuration.
Last edited by FlintIronstag on Thu Jul 29, 2021 3:23 am, edited 1 time in total.
FlintIronstag
 
Posts: 3
Joined: Sun Jul 25, 2021 1:30 am

Re: Odd Permissions Issue With Media Folders

Postby FlintIronstag » Sun Jul 25, 2021 10:58 pm

Follow-up: I thought the issue might be arising because the subsonic user's uid and gid within the jail were different than the uid and gid for subsonic within the base OS, even though the user name and group name were the same. But after modifying the jail uid and gid to match the base OS, nothing changed. The Audio Main media folder still has to be enabled and given to each user within the subsonic web interface in order for streaming to work.
FlintIronstag
 
Posts: 3
Joined: Sun Jul 25, 2021 1:30 am

Re: Odd Permissions Issue With Media Folders

Postby FlintIronstag » Thu Jul 29, 2021 3:23 am

Closing this out, in case anyone else has a similar issue.

The solution ended up being to use the TrueNAS GUI to mount the audio collection under /var/music instead of /media/audio. Apparently, /var/music is where Subsonic is expecting the media library to be, and pointing it to a different folder made it act weird.

Within Subsonic, I now have the following media folders:

Audio Books: /var/music/Audio Books
Music: /var/music/Music
Kids Music: /var/music/Music/Kids

All media folders and users now work correctly, without needing access to the top of the library tree.
FlintIronstag
 
Posts: 3
Joined: Sun Jul 25, 2021 1:30 am


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests