Despite chmod and chown, PMS still scanning MP3s but not showing them

Thank you so much!

When you say “create a new music library” - is that repointing the music library? Or is that creating a new file for music?

I’m still not able to see my external harddrive files. Should I add “pi” to the “root” group? Or should I try changing ownership of the mount to pi?

I should have said new “Plex Music Library” (in the Plex server settings). But you can also try to “Scan Library Files”. I just thought with only 6 albums scanned at the moment, it does not hurt to remove your existing Plex Music Library and start with a clean new one.

What I have seen in your logs indicates PMS is able to see / access your files but is just unable to process the files correctly. Your above ls outputs also indicate any Linux user should be allowed to at least read all files on your drive.

Your PMS runs as Linux user plex so only focus on what plex can see. A simple test to verify the access of Linux user plex to your files is to open a shell as user plex with sudo -u plex /usr/bin/bash. In this command prompt you are now plex. Just navigate to any album you do not see in Plex wit cd and try to access any mp3 with file <insert here the filename of any mp3>. file is just a small tool to identify the file type of any file.

Thanks so much.

I’ve removed the Music folder and reset it in Plex. It is scanning but still seems to be only recognizing the same six albums.

When I open a shell as plex, and use cd for the album we checked above, I get:
plex@ravenclaw:/mnt/pmsmedia/music/Mattias Martinson/Hela Universum Tillber Dig$ ls
‘01 Att Få Se Dig.mp3’ ‘08 Jesus Fyll Oss.mp3’
‘02 VI Har En Gud Och Fader.mp3’ ‘09 Helig Är Du Gud.mp3’
‘03 Gud Du Är Min Gud.mp3’ ‘10 Gud Och Ingen Annan.mp3’
‘04 Vill Du Vandra Med Mig Varje Dag.mp3’ ‘11 Det Är Du.mp3’
‘05 Hela Universum Tillber Dig.mp3’ ‘12 Ödmjukhetens Konung.mp3’
‘06 Du Är Gud.mp3’ ‘13 Du Bär På Något Som Berör Mig.mp3’
‘07 Tacksam.mp3’

The album tracks are there.

1 Like

Please also try file "01 Att Få Se Dig.mp3" and post the output.

1 Like

plex@ravenclaw:/home/pi$ file “01 Att Få Se Dig.mp3”
01 Att Få Se Dig.mp3: cannot open `01 Att Få Se Dig.mp3’ (No such file or directory)

Inside the appropriate directory of your drive of course, i.e. in /mnt/pmsmedia/music/Mattias Martinson/Hela Universum Tillber Dig :slight_smile:

HA! Sorry about that.

For the “file” command, I get this. Is it the expected outcome?
/mnt/pmsmedia/music/Mattias Martinson/Hela Universum Tillber Dig/01 Att Få Se Dig.mp3: data

Definitively not :sweat_smile: This file is 100% not an mp3. Probably encrypted or with DRM? Where did you get the files from? At least now we know why Plex is unable to index your files :wink:

Phew!

I copied my files over from my itunes (now Music) folders.

Either something went wrong during the file transfer or the files still use the old DRM format of iTunes. But the files would have to be extremely old.

You can also utilize the file command on your Mac and it will probably tell you something more than just “data”.

That album is likely extremely old. :grin:

When I try it with a newer file (done about 2 weeks ago) - “/mnt/pmsmedia/music/The Miles Davis Quintet" - it just opens up a “>” command line. I’ve tried it using the ls -ahl while in “pi” and the file or cd while in as “plex”

If I share my mnt/pmsmedia in my smb.conf file, it should be showing up in the “share” drive on my RPi’s folders, right?

I am not completely sure what you are talking about :grimacing: but I assume you want to share /mnt/pmsmedia with your Mac. Please read Sharing a folder for use by Windows in the following document. I suspect you already have a [share] entry in your samba config, so use another name for your new share. I do not like the public=yes setting in the guide, but you can add a login at a later time. Your new entry could look like this:

[pmsmedia]
    path = /mnt/pmsmedia
    read only = no
    public = yes
    writable = yes

Do not forget to restart your samba server: sudo systemctl restart smbd

Perfect. Changing the name did the trick. Thanks.

Now I’ll try looking at that Miles Davis file again.

I tried it with a file I ripped last week. (“Ripped” = using the Apple Music program).

Same results:
plex@ravenclaw:/home/pi$ file /mnt/pmsmedia/music/‘Andy Hunter’/Exodus/‘01 Go.m4a’
/mnt/pmsmedia/music/Andy Hunter/Exodus/01 Go.m4a: data

Shared drive update:
When logged in as “guest,” I can see pmsmedia on my shared folders from my MacOS. And the sub folders and their contents.

But I can’t change anything.

When I log in at “pi,” I can see the pmsmedia folder. But nothing in it shows. At all.

Is it something in the smb.config? Here’s what I used
[pmsmedia]]
Comment = plex media
path=/mnt/pmsmedia
browsable=yes
writeable=yes
only guest=no
public=no
writable=yes
create mask=0777
director mask=0777
guest ok = yes

Are these files purchased from Apple or files included in your Apple Music subscription? The later ones will obviously be encrypted.

CDs I own that I ripped.

I have sent you a private message :+1:

Thanks. Looks like it’s my encoding that needs fixing. Thank you!

On the shared drive, as “pi” I’m not seeing anything in the pmsmedia shared folder. Is this something that chown/chmod will solve?

1 Like