MiniDLNA doesn't work

EDIT: Whoops, placed this in the wrong forum! Can a mod move it over to multimedia?

MiniDLNA, which by all accounts should be a snap to get working, doesn’t work. Here’s what I did:

Playing media content from openSUSE on a DLNA Smart TV - Blogs - openSUSE Forums

But no matter what I do, my server doesn’t show up on DLNA-enabled devices on the network.

Also post a comment in the blog. It might help :slight_smile:

Did you open the port, minidlna uses, in the firewall?

run

systemctl status minidlnad.service

and post output here. My guess too is that you need to open a port in the firewall. Stop the firewall and test again. I did not have the firewall active in the blog post. And yes, the minidlna-server machine showed up immediately.

No, I’ve definitely opened up port 8200 in my firewall. I loaded YaST, went to the Firewall module, and added opened up port 8200 (TCP) to 0/0.

I stopped minidlna last night since it wasn’t working, so I started it back up to get systemctl status minidlna.service:

minidlna.service - LSB: Minidlna server
Loaded: loaded (/etc/init.d/minidlna)
Active: active (running) since Sun, 2013-03-31 11:36:29 EDT; 3min 45s ago
Process: 24151 ExecStart=/etc/init.d/minidlna start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/minidlna.service
└ 24160 /usr/sbin/minidlna -f /etc/minidlna.conf

Mar 31 11:36:29 Lucan systemd[1]: Starting LSB: Minidlna server…
Mar 31 11:36:29 Lucan minidlna[24151]: Starting minidlna …done
Mar 31 11:36:29 Lucan systemd[1]: Started LSB: Minidlna server.

EDIT: After I disabled the firewall and restarted the MiniDLNA service, it appeared on the network. I’m still at a loss as to why it doesn’t show up with the firewall on, but I guess I’ll troubleshoot that after I get back later today.

Try opening port 8200 in your firewall. It’s the port mentioned in /etc/minidlna.conf
And, sorry for my typo, minidlnad should be minidlna

I finally got it straightened out! I forgot that openSUSE had enabled the firewall on my desktop, so all I had to do was add rules for it to accept port 8200 (TCP) and port 1900 (UDP). After that, poof!

I’ve got to be more careful :X

Alright, I’ve got a new problem, but it looks like this one isn’t something I can fix.

Amarok doesn’t see my MiniDLNA stuff even though other applications can. Apparently, there’s a reason for this: ‘[Bug 310250] New: Forked-daap shares don’t show up in Amarok’ - MARC](http://lists.kde.org/?l=amarok-bugs-dist&m=135316967322378)

That bug’s been listed since 2012, so I guess it won’t be fixed any time soon. Bummer >:(

Good day everybody…

I tried to make it work but not even by disabling the firewall works:

systemctl status minidlna.service
minidlna.service - MiniDLNA UPnP-A/V and DLNA media server
   Loaded: loaded (/usr/lib/systemd/system/minidlna.service; enabled)
   Active: active (running) since jue 2014-01-02 20:58:06 CST; 7s ago
  Process: 14802 ExecStart=/usr/sbin/minidlnad -P /var/run/minidlnad.pid -f /var/lib/minidlna/minidlna.conf (code=exited, status=0/SUCCESS)
  Process: 14797 ExecStartPre=/usr/sbin/minidlnaconfig (code=exited, status=0/SUCCESS)
 Main PID: 14803 (minidlnad)
   CGroup: /system.slice/minidlna.service
           └─14803 /usr/sbin/minidlnad -P /var/run/minidlnad.pid -f /var/lib/minidlna/minidlna.conf

ene 02 20:58:06 linux-0bxt systemd[1]: Starting MiniDLNA UPnP-A/V and DLNA media server...
ene 02 20:58:06 linux-0bxt systemd[1]: Failed to read PID from file /var/run/minidlnad.pid: Invalid argument
ene 02 20:58:06 linux-0bxt systemd[1]: Started MiniDLNA UPnP-A/V and DLNA media server.

This is what’s inside the .config file (the media dir its a NTFS partition, it worked well in Ubuntu):

port=8200
network_interface=eth0
user=root
media_dir=/media/sda5
friendly_name=opensuse
log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Fo$
inotify=yes
enable_tivo=no
strict_dlna=no
notify_interval=900
serial=12345678
model_number=1
root_container=.
db_dir=/var/cache/minidlna
log_dir=/var/log/minidlna

Also, in Ubuntu I usually restarted thedirecories in minidlna with “service minidlna force-reload”, I dont know if that works in opensuse 13.1 too.

Let me add the entire .config file from “/etc/sysconfig/minidlna” (I can’t edit my previous post). I forgot to mention that Im running Opensuse 13.1 64 bits and minidlna ver. 1.1.1-3.1 and trying to watch my videos on a Samsung 46eh5300 that worked fine with Ubuntu 13.10:

## Path:        Network/minidlna
## Description: Define port for HTTP traffic
## Type:        integer
## Default:     "8200"
## Config:      minidlna
# Here you can change the default port for HTTP traffic (descriptions, SOAP, media transfer).
#
# Note: the default is 8200
port="8200"
## Path:        Network/minidlna
## Description: Define network interfaces to serve
## Type:        string
## Default:     "eth0"
## Config:      minidlna
# Here you can define the network interfaces to serve, comma delimited.
#
# Note: the default is eth0
network_interface="eth0"
## Path:        Network/minidlna
## Description: Define user account name or uid
## Type:        string
## Default:     "root"
## Config:      minidlna
# Here you can specify the user account name or uid to run as.
#
# Note: the default is root
user="root"
## Path:        Network/minidlna
## Description: Define media directories to be scanned
## Type:        string
## Default:     "/mnt"
## Config:      minidlna
# Here you can define your media directories you want scanned
#
# Set this to the directories you want scanned.
#
# * if you want to restrict a media_dir to specific content types, you
#   can prepend the types, followed by a comma, to the directory:
#
#   + "A" for audio  (eg. A,/home/jmaggard/Music)
#   + "V" for video  (eg. V,/home/jmaggard/Videos)
#   + "P" for images (eg. P,/home/jmaggard/Pictures)
#   + "PV" for pictures and video (eg. AV,/home/jmaggard/digital_camera)
#
# * if you want to scan multiple directories, you have to separate
#   the directories with a vertical bar:
#
#   eq. A,/home/jmaggard/Music | V,/home/jmaggard/Videos | P,/home/jmaggard/Pictures
#
# Note: the default is /mnt
#media_dir="/mnt"

media_dir="/media/sda5"

## Path:        Network/minidlna
## Description: Define MiniDLNA server name
## Type:        string
## Default:     "MiniDLNA"
## Config:      minidlna
# Here you can customize the MiniDLNA server name that shows up on your clients.
#
# Note: the default is MiniDLNA
friendly_name="opensuse"
## Path:        Network/minidlna
## Description: Define log level
## Type:        string
## Default:     "general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn"
## Config:      minidlna
# Here you can set the verbosity of the information that is logged.
#
# Each section can use a different level.
# Possible levels are: off, fatal, error, warn, info or debug
#
# Note: the default is general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn
log_level="general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn"
## Path:        Network/minidlna
## Description: Define file names to check for when searching for album art
## Type:        string
## Default:     "Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg"
## Config:      minidlna
# Here you can set a list of file names to check for when searching for album art.
# Note: names should be delimited with a forward slash ("/")
#
# Note: the default is Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/
#                      AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/
#                      Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
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"
## Path:        Network/minidlna
## Description: Define inotify monitoring to automatically discover new files
## Type:        yesno
## Default:     "yes"
## Config:      minidlna
# Here you can enable/disable inotify monitoring to automatically discover new files.
#
# Note: the default is yes
inotify="yes"
## Path:        Network/minidlna
## Description: Define support for streaming .jpg and .mp3 files to a TiVo supporting HMO
## Type:        yesno
## Default:     "no"
## Config:      minidlna
# Here you can enable/disable support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#
# Note: the default is no
enable_tivo="no"
## Path:        Network/minidlna
## Description: Define strictly adhere to DLNA standards
## Type:        yesno
## Default:     "no"
## Config:      minidlna
# Here you can enable/disable strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
#
# Note: the default is no
strict_dlna="no"
## Path:        Network/minidlna
## Description: Define http address for default presentation url on port 80
## Type:        string
## Default:     ""
## Config:      minidlna
# Here you can set the http address for default presentation url on port 80.
#
# Note: the default is none
presentation_url=""
## Path:        Network/minidlna
## Description: Define notify interval in seconds
## Type:        integer
## Default:     "900"
## Config:      minidlna
# Here you can change the notify interval in seconds.
#
# Note: the default is 900
notify_interval="900"
## Path:        Network/minidlna
## Description: Define serial number the daemon will report to clients
## Type:        integer
## Default:     "12345678"
## Config:      minidlna
# Here you can change the serial number the daemon will report to clients in its XML description.
#
# Note: the default is 12345678
serial="12345678"
## Path:        Network/minidlna
## Description: Define model number the daemon will report to clients
## Type:        integer
## Default:     "1"
## Config:      minidlna
# Here you can change the model number the daemon will report to clients in its XML description.
#
# Note: the default is 1
model_number="1"
## Path:        Network/minidlna
## Description: Define the path to the MiniSSDPd socket
## Type:        string
## Default:     ""
## Config:      minidlna
# Here you can set the path to the MiniSSDPd socket.
#
# Example: /var/run/minissdpd.sock
#
# Note: the default is none
minissdpdsocket=""
## Path:        Network/minidlna
## Description: Define different container as root of the tree possible values
## Type:        string
## Default:     "."
## Config:      minidlna
# Here you can use different container as root of the tree possible values.
#
# "." - use standard container (this is the default)
# "B" - "Browse Directory"
# "M" - "Music"
# "V" - "Video"
# "P" - "Pictures"
#
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#
# Note: the default is "."
root_container="."

Hi,

I also had problems with minidlna since I updated from 12.4 to 13.1 (and maybe an update of minidlna also) a few days ago. However, starting the daemon with root
minidlnad -f /var/lib/minidlna/minidlna.conf
and the user defined config under /var/lib/minidlna/minidlna.conf (there was a default minidlna.conf there) works fine for me.

hope it helps
cheers

I also cannot get minidlna to work since upgrading to 13.1. It was fine under 12.3.
I have tried the suggestion from hj00001 above, but to no avail. The service does not seem to activate/stay active.

I have the firewall settings in place (1900-UDP, 8200-TCP) and can see the service listed in the services manager. I select the service, click “start” and it states that is has been activated, so I hit OK. Nothing works. If I open the Services Manager again in Yast the service is listed as inactive.

If I select “Show Details” in the Services Manager then I get the following:


minidlna.service - MiniDLNA UPnP-A/V and DLNA media server    
Loaded: loaded (/usr/lib/systemd/system/minidlna.service; enabled)    
Active: failed (Result: exit-code) since Sat 2014-01-04 11:08:23 GMT; 1min 53s ago   
Process: 32381 ExecStart=/usr/sbin/minidlnad -P /var/run/minidlnad.pid -f /var/lib/minidlna/minidlna.conf (code=exited, status=0/SUCCESS)   
Process: 32376 ExecStartPre=/usr/sbin/minidlnaconfig (code=exited, status=0/SUCCESS)  Main PID: 32382 (code=exited, status=255)

Jan 04 11:06:20 linux-jvo0 systemd[1]: Starting MiniDLNA UPnP-A/V and DLNA media server...
 Jan 04 11:06:20 linux-jvo0 systemd[1]: Started MiniDLNA UPnP-A/V and DLNA media server. 
Jan 04 11:06:20 linux-jvo0 systemd[1]: minidlna.service: main process exited, code=exited, status=255/n/a 
Jan 04 11:06:20 linux-jvo0 systemd[1]: Unit minidlna.service entered failed state.

Can anyone see anything here that would explain the problem?

Hi again,

forget my older post. Just found out that minidlna doesn’t start after rebooting with the correct config. But I found another post:

minidlna 1.1.1-1.4 (openSUSE 13.1/x86_64)

Jörg Lorenzen say: “the configuration of minidlna can’t be changed directly, you have to do this now with sysconfig: Start YaST -> System - > Editor for /etc/sysconfig Then goto network -> minidlna and change the values ​​as desired”

After that Yast -> System -> Service Manager (not runlevel manager) and enable and activate minidlna. Also Firewall must be open at port 8200TCP and 1900UDP.

After a reboot everything work fine for me (also after rebooting again).

You also can check the database at http://localhost:8200

sorry again for my older post, but I don’t reboot my computer normally so therefore the older solution worked for me.

I think, the main problem is that miniDLNA aka ReadyMedia has been updated by the developer, and a lot of old not valid anymore descriptions are out in the web…

cheers
Jürgen

Thanks, I really appreciate the help. I’ve followed those instructions but have the same problem, only with some different details.

minidlna.service - MiniDLNA UPnP-A/V and DLNA media server
   Loaded: loaded (/usr/lib/systemd/system/minidlna.service; enabled)
   Active: failed (Result: timeout) since Sun 2014-01-05 17:25:26 GMT; 1min 50s ago
  Process: 4818 ExecStart=/usr/sbin/minidlnad $RESCAN -P /var/run/minidlnad.pid -f /var/lib/minidlna/minidlna.conf (code=exited, status=0/SUCCESS)
  Process: 4812 ExecStartPre=/usr/sbin/minidlnaconfig (code=exited, status=0/SUCCESS)
 Main PID: 4819 (code=exited, status=255)

Jan 05 17:23:56 linux-jvo0 systemd[1]: Starting MiniDLNA UPnP-A/V and DLNA media server...
Jan 05 17:23:56 linux-jvo0 systemd[1]: Started MiniDLNA UPnP-A/V and DLNA media server.
Jan 05 17:23:56 linux-jvo0 systemd[1]: minidlna.service: main process exited, code=exited, status=255/n/a
Jan 05 17:25:26 linux-jvo0 systemd[1]: minidlna.service stopping timed out. Killing.
Jan 05 17:25:26 linux-jvo0 systemd[1]: Unit minidlna.service entered failed state.

After seeing the above I tried rebooting a few times. No improvement, so I uninstalled the package, rebooted again and installed the package fresh. This time generating some new errors:

 minidlna.service - MiniDLNA UPnP-A/V and DLNA media server    
Loaded: loaded (/usr/lib/systemd/system/minidlna.service; enabled)    
Active: deactivating (stop-sigterm) (Result: exit-code) since Sun 2014-01-05 18:14:58 GMT; 57s ago   
Process: 3821 ExecStart=/usr/sbin/minidlnad $RESCAN -P /var/run/minidlnad.pid -f /var/lib/minidlna/minidlna.conf (code=exited, status=0/SUCCESS)   
Process: 3801 ExecStartPre=/usr/sbin/minidlnaconfig (code=exited, status=0/SUCCESS)  Main PID: 3899 (code=exited, status=255)    
CGroup: /system.slice/minidlna.service            
`-3917 /usr/sbin/minidlnad -P /var/run/minidlnad.pid -f /var/lib/minidlna/minidlna.conf 

Jan 05 18:14:58 linux-jvo0 systemd[1]: Starting MiniDLNA UPnP-A/V and DLNA media server... 
Jan 05 18:14:58 linux-jvo0 systemd[1]: PID file /var/run/minidlnad.pid not readable (yet?) after start. 
Jan 05 18:14:58 linux-jvo0 systemd[1]: Started MiniDLNA UPnP-A/V and DLNA media server. 
Jan 05 18:14:58 linux-jvo0 systemd[1]: minidlna.service: main process exited, code=exited, status=255/n/a

I’ve rebooted a few more times and the feedback remains the same. Any further thoughts welcome!

Quick update to say it is working now. I did nothing more than described previously, except walk away in disgust leaving the PC switched on for the rest of the day. I boot this morning and everything is working as it should. Perhaps the database was taking a while to update or something, I really have no idea.

Ah, nope… got over-excited and spoke too soon :(. Whilst the service now seems to be running fine and I can get the correct status info at http://localhost:8200 I cannot see the DLNA server from any device on which I want to view content. To date I’ve tried a Samsung TV, Toshiba tablet and Sony Xperia Z phone. Have tried both the native apps on the phone/tablet and also the Bubble UPnP app. I’ve also tried with the opensuse firewall completely disabled but still no luck. Will update if I find a cure that isn’t downgrading to 12.3 and leaving alone what worked perfectly well before I started fiddling.

Apologies for spamming the thread, but it is confession time. It turns out that since installing 13.1 my network card is no longer known as eth0, as it was for as long as I can remember. For reasons unknown it is now enp6s0. Once I’d spotted that and updated the minidlna configuration accordingly, all my troubles vanished. Classic case of the problem residing somewhere between the keyboard and the chair. :shame:

Thanks, this solved the problem I was having with miniDLNA not reading my /etc/minidlna.conf file on startup like it did with SUSE 12.3. Before finding this thread I was hand-editing the minidlna.service file to change the -f parameter (after every update!)

Hi.

Minidlna works just fine. I have x86_64 version 1.1.2-1.3 installed. Posting this to help out a little :wink:

This is what i did to serve my media files to a Sony Bravia TV, Pioneer VSX-922 AV Receiver , WDTVLIVE, Pinell Supersound Radio and my android phone’s, tablets or any other dlna enabled device/computer/mac’s that connects to my network.

  1. I have no opensuse firewall. Useless for this since minidlna operates on LAN only. Becides my router takes care of the firewall from the big world out there.
  2. Delete /etc/sysconfig/minidlna. This setup is not that good. It also means that you can edit the config file directly and not via YAST>sysconfig. I find it easier.
  3. Copied my own minidlna.conf to /etc that i have used on Arch, manjaro and debian without issues. To use my config require that you symlink your media folders to 1 folder (call it ~/DLNA like i do if you wish) . Remember that if you want to share your photos your media_dir= have to look like this: media_dir=AVP,/home/xxx/DLNA I share only Audio and Video. Not Pictures. Personal choice. Replace xxx with your username.
  4. start minidlnad . First time you start minidlnad -R to scan your media folders. After the first time do it manually whenever needed.
  5. Install gupnp-tools from repo. If your dlna server is running properly you will find it in GuPnP AV Control Point and from there you can play files to any dlna enabled device on your network.
  6. Not for everybody but install MediaHouse app on your android phone/tablet and play any mediafile from your dlna server to any device on your network. I use my phone to start a movie on my TV, WDTV or on my phone/tablet. Dont know if Mediahouse app works on iphone.
  7. Autostart minidlnad from your Gnome, KDE or XFCE session or at boot after your network is up and running.

GuPnP AV Control Point in action.

https://drive.google.com/file/d/0BwS4sfB5Ww6-M0F0UjVna1BlQms/edit?usp=sharing

MediaHouse on my phone.

https://drive.google.com/file/d/0BwS4sfB5Ww6-TEVURE0xakpTVEk/edit?usp=sharing

My mindlna config: replace xxx with your username. This setup works fine on opensuse. The stuff commented out leave it. Its there for information only. It works.

port=8200
network_interface=wlan0,eth0
#user=whatever

set this to the directory you want scanned.

* if you want multiple directories, you can have multiple media_dir= lines

* if you want to restrict a media_dir to specific content types, you

can prepend the types, followed by a comma, to the directory:

+ “A” for audio (eg. media_dir=A,/home/jmaggard/Music)

+ “V” for video (eg. media_dir=V,/home/jmaggard/Videos)

+ “P” for images (eg. media_dir=P,/home/jmaggard/Pictures)

+ “PV” for pictures and video (eg. media_dir=AV,/home/jmaggard/digital_camera)

media_dir=AV,/home/xxx/DLNA

set this if you want to customize the name that shows up on your clients

friendly_name=Whatever you want to call it

set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache

db_dir=/var/cache/minidlna

set this if you would like to specify the directory where you want MiniDLNA to store its log file

#log_dir=/var/log

set this to change the verbosity of the information that is logged

each section can use a different level: off, fatal, error, warn, info, or debug

#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

this should be a list of file names to check for when searching for album art

note: names should be delimited with a forward slash ("/")

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

default presentation url is http address on port 80

#presentation_url=http://192.168.0.116:8200
notify_interval=900
serial=12345678
model_number=1
#minissdpdsocket=/var/run/minissdpd.sock# use different container as root of the tree

possible values:

+ “.” - use standard container (this is the default)

+ “B” - “Browse Directory”

+ “M” - “Music”

+ “V” - “Video”

+ “P” - “Pictures”

if you specify “B” and client device is audio-only then “Music/Folders” will be used as root

#root_container=.

For those of you who can’t figure out whats wrong with miniDLNA. Run it from cmd with “-d” debug option. Also, beware of ktorrent, which likes to steal the port 1900 which miniDLNA requires to work.