YAMDLNAP - Yet another MINIDLNA problem

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

YAMDLNAP - Yet another MINIDLNA problem

Postby janlde » Tue Feb 25, 2014 5:51 pm

This is my very first post in this forum so - for kindness -

Hi at all! :D

Now to the Problem, I've installed Arch on my Pogoplug and want to use it as a Minidlna/Samba/WEBDav server. Samba is working fine and the WEBDav server need more time for me for parctice.

But Minidlna, it drives me crazy. The server is obviously started correct:

$this->bbcode_second_pass_code('', 'systemctl status minidlna -l
minidlna.service - minidlna server
Loaded: loaded (/usr/lib/systemd/system/minidlna.service; enabled)
Active: active (running) since Thu 1970-01-01 01:00:32 CET; 44 years 1 months ago
Process: 112 ExecStart=/usr/bin/minidlnad -P /run/minidlna/minidlna.pid (code=exited, status=0/SUCCESS)
Main PID: 230 (minidlnad)
CGroup: /system.slice/minidlna.service
└─230 /usr/bin/minidlnad -P /run/minidlna/minidlna.pid

Jan 01 01:00:32 pogoplug systemd[1]: PID file /run/minidlna/minidlna.pid not readable (yet?) after start.
Jan 01 01:00:32 pogoplug systemd[1]: Started minidlna server.
')

Checking the log file leads to:

$this->bbcode_second_pass_code('', 'cat /var/log/minidlna.log | grep fatal
[1970/01/01 01:00:30] minidlna.c:356: fatal: Failed to clean old file cache! Exiting...
[1970/01/01 01:00:34] minidlna.c:356: fatal: Failed to clean old file cache! Exiting...
[1970/01/01 01:00:34] minidlna.c:356: fatal: Failed to clean old file cache! Exiting...
[1970/01/01 01:00:31] minidlna.c:356: fatal: Failed to clean old file cache! Exiting...
[1970/01/01 01:00:30] minidlna.c:356: fatal: Failed to clean old file cache! Exiting...
[1970/01/01 01:00:26] minidlna.c:931: fatal: Failed to switch to uid '1000'. [Operation not permitted] EXITING.
[1970/01/01 01:00:26] minidlna.c:931: fatal: Failed to switch to uid '1000'. [Operation not permitted] EXITING.
[2014/02/18 19:47:18] minidlna.c:284: fatal: ERROR: Failed to open sqlite database! Exiting...
[2014/02/18 19:49:42] minidlna.c:284: fatal: ERROR: Failed to open sqlite database! Exiting...
[2014/02/18 19:50:25] minidlna.c:931: fatal: Failed to switch to uid '1000'. [Operation not permitted] EXITING.
[2014/02/18 19:50:36] minidlna.c:931: fatal: Failed to switch to uid '1000'. [Operation not permitted] EXITING.
[2014/02/18 20:20:51] minidlna.c:931: fatal: Failed to switch to uid '1000'. [Operation not permitted] EXITING.
[1970/01/01 01:00:27] minidlna.c:931: fatal: Failed to switch to uid '0'. [Operation not permitted] EXITING.
[2014/02/18 22:25:27] minidlna.c:931: fatal: Failed to switch to uid '0'. [Operation not permitted] EXITING.
[2014/02/18 22:26:00] minidlna.c:931: fatal: Failed to switch to uid '0'. [Operation not permitted] EXITING.
[2014/02/18 23:21:17] minidlna.c:931: fatal: Failed to switch to uid '0'. [Operation not permitted] EXITING.
[2014/02/18 23:22:15] minidlna.c:356: fatal: Failed to clean old file cache! Exiting...
[2014/02/18 23:24:29] minidlna.c:356: fatal: Failed to clean old file cache! Exiting...
[2014/02/18 23:26:58] minidlna.c:931: fatal: Failed to switch to uid '1000'. [Operation not permitted] EXITING.
[2014/02/18 23:28:22] minidlna.c:284: fatal: ERROR: Failed to open sqlite database! Exiting...
[2014/02/18 23:30:09] minidlna.c:284: fatal: ERROR: Failed to open sqlite database! Exiting...
[2014/02/18 23:31:15] minidlna.c:284: fatal: ERROR: Failed to open sqlite database! Exiting...
[2014/02/18 23:31:18] minidlna.c:284: fatal: ERROR: Failed to open sqlite database! Exiting...')
[\code]

(I have no idea what they mean...)

Thats my minidlna.service:

$this->bbcode_second_pass_code('', '[Unit]
Description=minidlna server
After=network.target

[Service]
Type=forking
User=root
ExecStart=/usr/bin/minidlnad -P /run/minidlna/minidlna.pid
PIDFile=/run/minidlna/minidlna.pid

[Install]
WantedBy=multi-user.target')


and the minidlna.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

# specify the user account name or uid to run as
user=root

# 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=/opt

media_dir=A,/home/jan/music
media_dir=V,/home/jan/videos
media_dir=P,/home/jan/pictures

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

# 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

# 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://www.mylan/index.php

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

# 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=.')


The most confusing fact is, that the server status page at http://ipblah:8200 is reachable and shows the correct values of the files in the database. Further, if I stop and start the server maually, all is working fine.

Hope someone can help.

Kind regards,

Jan. :-)
janlde
 
Posts: 1
Joined: Tue Feb 25, 2014 5:17 pm

Re: YAMDLNAP - Yet another MINIDLNA problem

Postby pepedog » Tue Feb 25, 2014 11:38 pm

If you are using root as user, restore the .service file, then-
$this->bbcode_second_pass_code('', ' /etc/tmpfiles.d/minidlna.conf
d /var/run/minidlna 0755 root root -
d /var/cache/minidlna 0755 root root -
')
$this->bbcode_second_pass_code('', ' /etc/systemd/system/minidlna.service.d/custom.conf
[Service]
User=root
LimitNOFILE=8192')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 7 guests