Thank you for your donation!


Wierd permission issues
#1
I'm unable to index or play this album, I can view it in the Moode file gui but not in the indexed music.  I have two albums of his,
ls -l /mnt/NAS/Lossless/Keb\'\ Mo\'/
total 0
drwxrwxrwx 2 root root 0 Sep  3 16:52  Oklahoma
drwxrwxrwx 2 root root 0 Aug  2  2018 'Slow Down'

Slow down plays fine, Oklahoma does not.


root@moode:/home/pi# ls -la /mnt/NAS/Lossless/Keb\'\ Mo\'/Oklahoma/01\ Keb\'\ Mo\'\ -\ I\ Remember\ You.flac
-rwxrwxrwx 1 root root 27902564 Sep  5 03:43 "/mnt/NAS/Lossless/Keb' Mo'/Oklahoma/01 Keb' Mo' - I Remember You.flac"
root@moode:/home/pi# head /mnt/NAS/Lossless/Keb\'\ Mo\'/Oklahoma/01\ Keb\'\ Mo\'\ -\ I\ Remember\ You.flac
head: cannot open "/mnt/NAS/Lossless/Keb' Mo'/Oklahoma/01 Keb' Mo' - I Remember You.flac" for reading: Permission denied


I can play this album directly from a different computer though.  Any ideas?
Reply
#2
MPD requires read permission to song files and read+execute permission to all music directories and their parent directories.
https://www.musicpd.org/doc/html/user.ht...leshooting
Reply
#3
Thanks Tim, I can't work it out. The two albums directories and files have identical permissions yet  get access denied on Oklahoma even when using sudo, might be something to do with the files themselves, but can't think why.
Reply
#4
I noticed you are logging in as root which indicates "modifications have been made". Maybe one or more of these system modifications to the stock moOde image has broken something ?

Btw, there is no need to enable the root account, just login with pi and then prefix commands with sudo.
Reply
#5
No modifications made, as pi I just "sudo su -" to switch to root. This is a fresh install from the image. Pretty sure its not a bug with Moode, I suspect there's something peculiar about the album files, but I have no idea what it could be.
Reply
#6
You listed the directory permissions but not those for the contents, double-check and make sure they're the same.
Reply
#7
Thanks Swizzie

pi@moode:~ $ ls -lh /mnt/NAS/Lossless/Keb\'\ Mo\'/Oklahoma/
total 246M
-rwxrwxrwx 1 root root  27M Sep 26 23:28 '01 I Remember You.flac'
-rwxrwxrwx 1 root root  30M Sep 26 23:28 '02 Oklahoma.flac'
-rwxrwxrwx 1 root root  30M Sep 26 23:28 '03 Put a Woman in Charge.flac'
-rwxrwxrwx 1 root root  27M Sep 26 23:28 '04 This Is My Home.flac'
-rwxrwxrwx 1 root root  17M Sep 26 23:28 "05 Don't Throw It Away.flac"
-rwxrwxrwx 1 root root  18M Sep 26 23:28 '06 The Way I.flac'
-rwxrwxrwx 1 root root  18M Sep 26 23:28 "07 Ridin' on a Train.flac"
-rwxrwxrwx 1 root root  27M Sep 26 23:28 "08 I Should've.flac"
-rwxrwxrwx 1 root root  28M Sep 26 23:28 '09 Cold Outside.flac'
-rwxrwxrwx 1 root root  22M Sep 26 23:28 '10 Beautiful Music.flac'
-rwxrwxrwx 1 root root 3.4K Sep  3 16:49  AccuripResult.log
-rwxrwxrwx 1 root root 7.2M Sep  3 16:45  cover.jpg
-rwxrwxrwx 1 root root 1.4K Sep  3 16:49  dr14.txt
pi@moode:~ $ ls -lh /mnt/NAS/Lossless/Keb\'\ Mo\'/Slow\ Down/
total 354M
-rwxrwxrwx 1 root root  31M Jul  5 21:12 '01 Muddy Water.flac'
-rwxrwxrwx 1 root root  29M Jul  5 21:12 '02 I Was Wrong.flac'
-rwxrwxrwx 1 root root  27M Jul  5 21:12 '03 Everything I Need.flac'
-rwxrwxrwx 1 root root  33M Jul  5 21:12 '04 Henry.flac'
-rwxrwxrwx 1 root root  32M Jul  5 21:12 '05 Soon As I Get Paid.flac'
-rwxrwxrwx 1 root root  37M Jul  5 21:12 '06 A Better Man.flac'
-rwxrwxrwx 1 root root  24M Jul  5 21:12 "07 I Don't Know.flac"
-rwxrwxrwx 1 root root  29M Jul  5 21:12 '08 A Letter To Tracy.flac'
-rwxrwxrwx 1 root root  32M Jul  5 21:12 '09 Slow Down.flac'
-rwxrwxrwx 1 root root  26M Jul  5 21:12 '10 Rainmaker.flac'
-rwxrwxrwx 1 root root  17M Jul  5 21:12 '11 Love In Vain.flac'
-rwxrwxrwx 1 root root  29M Jul  5 21:12 '12 God Trying To Get Your Attention.flac'
-rwxrwxrwx 1 root root  14M Jul  5 21:12 "13 I'm Telling You Now.flac"
-rwxrwxrwx 1 root root 445K Mar 24  2018  cover.jpg
-rwxrwxrwx 1 root root 1.4K Aug  2  2018  dr14.txt

All the same.
Reply
#8
Try rebooting your NAS, then purge the MPD log, then regen the MPD database and search for errors.

sudo truncate /var/log/mpd/log --size 0
Reply


Forum Jump: