[SOLVED]minidlna doesn't work

This forum is for all other ARMv5 devices

[SOLVED]minidlna doesn't work

Postby cscw » Sun Dec 04, 2011 7:16 pm

Hi guys, I bought a new pogoplug pro several days ago and installed archliunx on it. After that, I installed samba and transmission, and both of them have been working well. Then I tried to install minidlna according to this article http://archlinuxarm.org/support/guides/ ... s/minidlna. The installation seems no problem. However, every time I tried to start the minidlna failed at last. I noticed that when I tried to start minidlna , a log file named /var/log/auth.log updated itself with the following content:

Dec 4 13:13:34 alarm su: pam_unix(su:session): session opened for user nobody by root(uid=0)
Dec 4 13:13:35 alarm su: pam_unix(su:session): session closed for user nobody

Any suggestions? I really appreciate your help.


[root@alarm /]# /etc/rc.d/minidlna start
:: Starting minidlna [DONE]
[root@alarm /]# /etc/rc.d/minidlna stop
:: Stopping minidlna [FAIL]
[root@alarm /]# /etc/rc.d/minidlna start
:: Starting minidlna [DONE]
[root@alarm /]# ps -ef|grep minidlna
root 4469 2743 0 13:13 pts/0 00:00:00 grep minidlna
Last edited by cscw on Sun Dec 04, 2011 8:02 pm, edited 1 time in total.
cscw
 
Posts: 5
Joined: Tue Nov 29, 2011 7:20 pm

Re: minidlna doesn't work

Postby slycat » Sun Dec 04, 2011 7:32 pm

Check your /etc/minidlna.conf, make sure each "media_dir" has a leading and ending "/"
Make sure that the log_dir and db_dir are set to folders that minidlna has permission for.

I had this issue a few weeks ago, it was just caused by the "/" problems when adding a new media_dir. Also i've found calling "minidlna" explicitly rather than "/etc/rc.d/minidlna start" works best. You can still kill it with "/etc/rc.d/minidlna stop" but for some reason calling it directly kick-starts the minidlna.log and db caching.

Here's my copy of the .conf:
$this->bbcode_second_pass_code('', '# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200

# network interfaces to serve, comma delimited
#network_interface=eth0

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
# can prepend the type, 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)
media_dir=A,/media/Harddrive/Downloads/
media_dir=V,/media/Harddrive/Videolinks/

# set this if you want to customize the name that shows up on your clients
friendly_name=PlugDLNA

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/media/Harddrive/minidlna/

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
log_dir=/var/log/

# 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

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

# set this to 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.
strict_dlna=no

# default presentation url is http address on port 80
presentation_url=http://192.168.1.185:8200

# notify interval in seconds. default is 895 seconds.
notify_interval=600

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# specify the path to the MiniSSDPd socket
#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=.
')
I followed the same guide on the front page when i first set it up months ago. Should work.
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: minidlna doesn't work

Postby cscw » Sun Dec 04, 2011 8:01 pm

Thank you so much!!! It works. At first, I only changed the minidlna.conf. Obviously, no lucky at all. Then I called "minidlna" directly, and succeed.

$this->bbcode_second_pass_quote('slycat', 'C')heck your /etc/minidlna.conf, make sure each "media_dir" has a leading and ending "/"
Make sure that the log_dir and db_dir are set to folders that minidlna has permission for.

I had this issue a few weeks ago, it was just caused by the "/" problems when adding a new media_dir. Also i've found calling "minidlna" explicitly rather than "/etc/rc.d/minidlna start" works best. You can still kill it with "/etc/rc.d/minidlna stop" but for some reason calling it directly kick-starts the minidlna.log and db caching.

Here's my copy of the .conf:
$this->bbcode_second_pass_code('', '# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200

# network interfaces to serve, comma delimited
#network_interface=eth0

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
# can prepend the type, 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)
media_dir=A,/media/Harddrive/Downloads/
media_dir=V,/media/Harddrive/Videolinks/

# set this if you want to customize the name that shows up on your clients
friendly_name=PlugDLNA

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/media/Harddrive/minidlna/

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
log_dir=/var/log/

# 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

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

# set this to 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.
strict_dlna=no

# default presentation url is http address on port 80
presentation_url=http://192.168.1.185:8200

# notify interval in seconds. default is 895 seconds.
notify_interval=600

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# specify the path to the MiniSSDPd socket
#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=.
')
I followed the same guide on the front page when i first set it up months ago. Should work.
cscw
 
Posts: 5
Joined: Tue Nov 29, 2011 7:20 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 6 guests