{"id":6574,"date":"2014-04-20T13:41:53","date_gmt":"2014-04-20T13:41:53","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/minidlna-directory-issues-collection-of-common-programming-errors\/"},"modified":"2014-04-20T13:41:53","modified_gmt":"2014-04-20T13:41:53","slug":"minidlna-directory-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/minidlna-directory-issues-collection-of-common-programming-errors\/","title":{"rendered":"Minidlna Directory Issues-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve done my searching and can&#8217;t find an answer to THIS specific issue. I have my minidlna set up and running &#8211; but it&#8217;s not really done properly.<\/p>\n<p>First off, when I open the server on my bluray player, all of my movies are listed twice &#8211; when they are certainly not saved on my external twice.<\/p>\n<p>Second, when I open the server &#8211; rather than reading &#8220;Movies&#8221; &#8220;TV&#8221; &#8220;Music&#8221;, etc &#8211; It just mashes all of my movies, tv, and some other folders all together with no real organization. I never had this problem when I had my Windows set up, so I know it&#8217;s something configured improperly more-so than my external drive giving me gruff.<\/p>\n<p>Here&#8217;s my minidlna.conf file:<\/p>\n<pre><code>    # This is the configuration file for the MiniDLNA daemon, a DLNA\/UPnP-AV media\n# server.\n#\n# Unless otherwise noted, the commented out options show their default value.\n#\n# On Debian, you can also refer to the minidlna.conf(5) man page for\n# documentation about this file.\n\nmedia_dir=\/media\/somnambulist\/Ghost In You\n# This option can be specified more than once if you want multiple directories\n# scanned.\n#\n# If you want to restrict a media_dir to a specific content type, you can\n# prepend the directory name with a letter representing the type (A, P or V),\n# followed by a comma, as so:\n#   * \"A\" for audio    (eg. media_dir=A,\/var\/lib\/minidlna\/music)\n#   * \"P\" for pictures (eg. media_dir=P,\/var\/lib\/minidlna\/pictures)\n#   * \"V\" for video    (eg. media_dir=V,\/var\/lib\/minidlna\/videos)\n#\n# WARNING: After changing this option, you need to rebuild the database. Either\n#          run minidlna with the '-R' option, or delete the 'files.db' file\n#          from the db_dir directory (see below).\n#          On Debian, you can run, as root, 'service minidlna force-reload' instead.\n#media_dir=\/var\/lib\/minidlna\nmedia_dir=V,\/media\/somnambulist\/Ghost In You\/Movies\nmedia_dir=V,\/media\/somnambulist\/Ghost In You\/TV\nmedia_dir=P,\/home\/somnambulist\/Pictures\n\n\n# Path to the directory that should hold the database and album art cache.\ndb_dir=\/home\/somnambulist\/serverart\n\n# Path to the directory that should hold the log file.\nlog_dir=\/home\/somnambulist\/serverlog\n\n# Minimum level of importance of messages to be logged.\n# Must be one of \"off\", \"fatal\", \"error\", \"warn\", \"info\" or \"debug\".\n# \"off\" turns of logging entirely, \"fatal\" is the highest level of importance\n# and \"debug\" the lowest.\n#log_level=warn\n\n# Use a different container as the root of the directory tree presented to\n# clients. The possible values are:\n#   * \".\" - standard container\n#   * \"B\" - \"Browse Directory\"\n#   * \"M\" - \"Music\"\n#   * \"P\" - \"Pictures\"\n#   * \"V\" - \"Video\"\n# if you specify \"B\" and client device is audio-only then \"Music\/Folders\" will be used as root\nroot_container=B\n\n# Network interface(s) to bind to (e.g. eth0), comma delimited.\n#network_interface=\n\n# IPv4 address to listen on (e.g. 192.0.2.1).\n#listening_ip=\n\n# Port number for HTTP traffic (descriptions, SOAP, media transfer).\nport=8200\n\n# URL presented to clients.\n# The default is the IP address of the server on port 80.\n#presentation_url=http:\/\/example.com:80\n\n# Name that the DLNA server presents to clients.\nfriendly_name=Somnambulist Media Server\n\n# Serial number the server reports to clients.\nserial=12345678\n\n# Model name the server reports to clients.\n#model_name=Windows Media Connect compatible (MiniDLNA)\n\n# Model number the server reports to clients.\nmodel_number=1\n\n# Automatic discovery of new files in the media_dir directory.\n#inotify=yes\n\n# List of file names to look for when searching for album art. Names should be\n# delimited with a forward slash (\"\/\").\nalbum_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\n\n# Strictly adhere to DLNA standards.\n# This allows server-side downscaling of very large JPEG images, which may\n# decrease JPEG serving performance on (at least) Sony DLNA products.\n#strict_dlna=no\n\n# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.\n#enable_tivo=no\n\n# Notify interval, in seconds.\n#notify_interval=895\n\n# Path to the MiniSSDPd socket, for MiniSSDPd support.\n#minissdpdsocket=\/run\/minissdpd.sock`\n<\/code><\/pre>\n<p>And here&#8217;s the error I get in terminal when I run:<\/p>\n<pre><code>sudo service minidlna restart\nsudo service minidlna force-reload\n<\/code><\/pre>\n<p>Force restart error:<\/p>\n<pre><code>Restarting DLNA\/UPnP-AV media server minidlna                                \n[2013\/08\/12 21:19:27] minidlna.c:474: error: Media directory \"\/media\/somnambulist\/Ghost In You\/Movies\" not accessible! [Permission denied]\n[2013\/08\/12 21:19:27] minidlna.c:474: error: Media directory \"\/media\/somnambulist\/Ghost In You\/TV\" not accessible! [Permission denied]\n<\/code><\/pre>\n<p>Force-reload error:<\/p>\n<pre><code>Restarting DLNA\/UPnP-AV media server minidlna                                \n[2013\/08\/12 21:19:46] minidlna.c:474: error: Media directory \"\/media\/somnambulist\/Ghost In You\/Movies\" not accessible! [Permission denied]\n[2013\/08\/12 21:19:46] minidlna.c:474: error: Media directory \"\/media\/somnambulist\/Ghost In You\/TV\" not accessible! [Permission denied]\nrm: cannot remove '\/home\/somnambulist\/serverart\/files.db': Permission denied\nrm: cannot remove '\/home\/somnambulist\/serverart\/art_cache\/media\/somnambulist\/Ghost In You\/Movies\/Slumdog Millionaire\/Slumdog.Millionaire.Cover.jpg': Permission denied\nrm: cannot remove '\/home\/somnambulist\/serverart\/art_cache\/media\/somnambulist\/Ghost In You\/Movies\/Zack and Miri Make a Porno\/ZackAndMiriMakeAPornoCover.jpg': Permission denied\n[2013\/08\/12 21:19:46] minidlna.c:744: warn: Failed to clean old file cache.\n                                                                         [ OK ]\n<\/code><\/pre>\n<p>I&#8217;ve spent hours on this at this point, read through various files &#8211; and even had a friend who is relatively Ubuntu-savvy try to help me via chat &#8211; no such luck.<\/p>\n<p>Thanks in advance for any help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve done my searching and can&#8217;t find an answer to THIS specific issue. I have my minidlna set up and running &#8211; but it&#8217;s not really done properly. First off, when I open the server on my bluray player, all of my movies are listed twice &#8211; when they are certainly not saved on my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6574","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6574"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6574\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}