Ask Your Question
0

Permission denied problem with minidlna

asked 2017-01-03 10:04:55 -0500

alexove gravatar image

Hello world, I want to set up a dlna server with minidlna on F25 but I get "not accessible [Permission denied]" error, actually no logs in "/var/log/minidlna",this is the full message of "systemct status minidlna":

[root@server ~]# systemctl status minidlna
● minidlna.service - MiniDLNA is a DLNA/UPnP-AV server software
   Loaded: loaded (/usr/lib/systemd/system/minidlna.service; enabled; vendor preset: disabled)
   Active: active (running) since mar 2017-01-03 10:50:11 PET; 5s ago
 Main PID: 15637 (minidlnad)
    Tasks: 2 (limit: 512)
   CGroup: /system.slice/minidlna.service
           └─15637 /usr/sbin/minidlnad -S

ene 03 10:50:11 server.alexove.me systemd[1]: Started MiniDLNA is a DLNA/UPnP-AV server software.
ene 03 10:50:11 server.alexove.me minidlnad[15637]: [2017/01/03 10:50:11] minidlna.c:614: error: Media directory "A,/media/datadisk/Music/alexove" not accessible [Permission denied]
ene 03 10:50:11 server.alexove.me minidlnad[15637]: minidlna.c:1030: warn: Starting MiniDLNA version 1.1.5.
ene 03 10:50:11 server.alexove.me minidlnad[15637]: minidlna.c:1070: warn: HTTP listening on port 8200
ene 03 10:50:11 server.alexove.me minidlnad[15637]: inotify.c:198: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [0] and I do no
ene 03 10:50:11 server.alexove.me minidlnad[15637]: upnpsoap.c:1997: warn: SoapMethod: Unknown: GetSortExtensionCapabilities
ene 03 10:50:11 server.alexove.me minidlnad[15637]: upnpsoap.c:123: warn: Returning UPnPError 401: Invalid Action
ene 03 10:50:11 server.alexove.me minidlnad[15637]: upnpsoap.c:1997: warn: SoapMethod: Unknown: GetFeatureList
ene 03 10:50:11 server.alexove.me minidlnad[15637]: upnpsoap.c:123: warn: Returning UPnPError 401: Invalid Action

This is my minidlna.conf file:

port=8200    
user=root    
media_dir=A,/media/datadisk/Music/alexove    
friendly_name=alexove DLNA Server    
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg    
inotify=yes    
enable_tivo=no    
strict_dlna=no    
notify_interval=900    
serial=12345678    
model_number=1

Please, can anyone help me? or recomend another dnla server?

edit retag flag offensive close merge delete

Comments

Is the directory /media/datadisk/Music/alexove existent and accessible by root? Maybe selinux is preventing your server from starting? Check with getsebol.

thomaswood gravatar imagethomaswood ( 2017-01-03 11:39:41 -0500 )edit

Hello thomaswood the path exists and is accesible by root, I check the selinux booleans and I get:

[root@server Música]# getsebool -a | grep mini
minidlna_read_generic_user_content --> on
[root@server Música]#
alexove gravatar imagealexove ( 2017-01-06 16:23:35 -0500 )edit

You could try to disable selinux in /etc/selinux/config by setting SELINUX=disabled. After that you need to reboot. I am not sure if you can disable selinux on the fly with setsebool. If you need the security of selinux, you also might want to configure selinux accordingly to run minidnla.

thomaswood gravatar imagethomaswood ( 2017-01-07 03:06:29 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2017-01-03 22:03:42 -0500

SteveEbey73701 gravatar image

updated 2017-01-03 22:10:42 -0500

Do not run as root user. I have user=minidlna with no issues at all. Hope this helps.Also, open ports in your firewall program in the range of 8000-8200 and the single port 1900 to allow devices to see the server.

edit flag offensive delete link more

Comments

I change with user=minidlna but I get the same error with one issue, this is status output:

[root@server Música]# systemctl status minidlna
ene 06 17:19:35 server.alexove.me systemd[1]: Started MiniDLNA is a DLNA/UPnP-AV server software.
ene 06 17:19:35 server.alexove.me minidlnad[1605]: [2017/01/06 17:19:35] minidlna.c:614: error: Media directory "A,/media/datadisk/srv/lib/owncloud/data/alexove/files/Música" 
ene 06 17:19:35 server.alexove.me minidlnad[1605]: minidlna.c:979: error: Una
alexove gravatar imagealexove ( 2017-01-06 16:25:07 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-03 10:04:55 -0500

Seen: 2,139 times

Last updated: Jan 03 '17