spp58ca
(Spp58ca)
December 5, 2025, 3:27pm
1
I’m using rygel on a couple machines one the latest ubuntu and another a raspberry pi (latest pi os). Rygel works fine when the media is on the boot drive. With media on a mounted drive (usb or sata) rygel complains that it can’t enumerate the drive and it doesn’t have permission to access the directory with the media. I set everthing to all directories rwx, minidlna and all other apps have no problem accessing the media on the mounted drives.
Is this a known issue?
jensgeorg
(Jens Georg)
December 5, 2025, 3:28pm
2
Can you check your kernel log for apparmor messages?
spp58ca
(Spp58ca)
December 5, 2025, 3:56pm
3
From kern.log
2025-12-05T10:44:14.224979-05:00 media kernel: audit: type=1400 audit(1764949454.223:721): apparmor=“DENIED” operation=“open” class=“file” profile=“rygel” name=“/media/scott/HD/MusicFlac/” pid=10637 comm=“pool-4” requested_mask=“r” denied_mask=“r” fsuid=1000 ouid=1000
2025-12-05T10:44:37.418042-05:00 media kernel: audit: type=1400 audit(1764949477.416:722): apparmor=“DENIED” operation=“open” class=“file” profile=“rygel” name=“/media/scott/HD/MusicFlac/” pid=10945 comm=“pool-0” requested_mask=“r” denied_mask=“r” fsuid=1000 ouid=1000
permissions
drwxrwsrwx 391 scott scott 20480 Dec 4 11:13 MusicFlac
user/group id
scott@media:~$ grep scott /etc/passwd
scott:x:1000:1000:scott,:/home/scott:/bin/bash
rygel status
rygel.service - Rygel DLNA/UPnP server
Loaded: loaded (/usr/lib/systemd/user/rygel.service; enabled; preset: enabled)
Active: active (running) since Fri 2025-12-05 10:44:37 EST; 10min ago
Invocation: ba02e83c8da64200b3f2c3b107dbfdba
Main PID: 10945 (rygel)
Tasks: 5 (limit: 13408)
Memory: 11.1M (peak: 22.7M)
CPU: 862ms
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/rygel.service
└─10945 /usr/bin/rygel
Dec 05 10:44:37 media rygel[10945]: Failed to enumerate folder “/media/scott/HD/MusicFlac”: Error opening directory ‘/media/scott/HD/MusicFlac’: Permission denied
jensgeorg
(Jens Georg)
December 5, 2025, 4:42pm
4
yeah, that would be this. profiles/apparmor.d/tunables/rygel · master · AppArmor / apparmor · GitLab which blocks access to anything but the XDG standard folders. Apparently this is a tunable so you can somehow override that somewhere™ - not very familiar with AppArmor, though
spp58ca
(Spp58ca)
December 6, 2025, 12:02am
5
Thanks
I removed /etc/apparmor.d/tunables/rygel and rygel can now access the mounted drives. Hopefully this doesn’t create any other problems.
jensgeorg
(Jens Georg)
December 6, 2025, 9:48am
6
That will probably re-appear again if apparmor is updated