giof71 / minidlna-docker Goto Github PK
View Code? Open in Web Editor NEWEasily run MiniDLNA with Docker
License: Apache License 2.0
Easily run MiniDLNA with Docker
License: Apache License 2.0
Allow to run the container as a specified user with the --user switch (or user: in docker-compose)
As mentioned in this issue
Hi,
If I use your image and deploy the stack in portainer I get this error message in the log files of the container
"minidlna.c:1028: fatal: Failed to open log file '/log/minidlna.log': Permission denied"
could you please check and advise ?
THX
Matthias
I got this error in the log.
minidlna.c:1028: fatal: Failed to open log file '/log/minidlna.log': Permission denied.
And I think the container keeps restarting.
I've got the user 1000:1000 as per default.
If /db and /log result to not be writable in user mode, redirect them to /tmp/db and /tmp/log respectively.
Hi @GioF71
first and foremost, many thanks for your nice work!
I've been using Twonky Server till now but it used to be quite unreliable recently, hence I found your minidlna-docker project and it seems to be quite fast.
Regarding stability it's too early for me to judge about, but I'm sure it will be performing pretty well!
So, I am running this minidlna on my Synology NAS inside docker.
Typically, there is in each and every folder another folder (hidden one) that's called @eaDir
.
And I'm currently looking for a method how to exclude all of these, e.g. by adding some ENV variable to the container.
The reason why I want to exclude all @eaDir
is because they do not contain real data (files) so to say, just "extended attributes".
And in the minidlna.log I thus get a flood of errors, for example:
monitor.c:130: error: inotify_add_watch(/music/Neu/Full CD/@eaDir) [No space left on device]
In Twonky Server UI there used to be an option to exclude desired folder via comma separated list.
So, is there already some (hidden) option to exclude dirs with a specific name or could you probably add such option as ENV variable?
Many thanks!
Hello. Thanks for the great implementation of minidlna in docker(-compose). Unfortunately the environment-option
" - MINIDLNA_NOTIFY_INTERVAL=20"
in the docker-compose.yml-file won't be implemented in the "/app/conf/minidlna.conf" in the container. The option will be ignored. Is there an hidden option to set for implementing it?
The option "notify_interval" set the time to broadcast and the value of 20 is the only way to getting recognized by my TV after powering on.
Great thanks for checking.
Hi,
Could you add log level parameter to the list?
Thank you!
As emerged from #21
SIGTERM/SIGINT are not being proxied to the process which makes shutting down the container to time out instead.
Hello, i have this error :
monitor.c:222: warn: WARNING: Inotify max_user_watches [54938] is low or close to the number of used watches [6] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
How we can changed the "max_user_watches" ?
Thanks in advance
Regards
Hi there
I'm trying to run MiniDLNA using your Docker image. Unfortunately, I'm getting this error message:
/app/bin/run-minidlna.sh: line 97: [: too many arguments
/app/bin/run-minidlna.sh: line 97: [: too many arguments
I use this command to start the container:
$ docker run -d --name=minidlna \
-e USER_MODE=Y \
-e MINIDLNA_ROOT_CONTAINER=V \
-e MINIDLNA_DIR_V_1=/media/videos \
-e MINIDLNA_ENABLE_INOTIFY=YES \
-e MINIDLNA_FRIENDLY_NAME=MiniDLNA \
-v /.../videos:/media/videos \
-v /.../log:/log \
-v /.../db:/db \
--net=host \
giof71/minidlna
$ docker logs minidlna
Current user id is [0]
t=A
Processing media_dir for ENV_NAME=[]
t=P
Processing media_dir for ENV_NAME=[]
t=V
Processing media_dir for ENV_NAME=[/media/videos]
t=A
Processing media_dir for ENV_NAME=[]
t=P
Processing media_dir for ENV_NAME=[]
t=V
Processing media_dir for ENV_NAME=[]
t=A
Processing media_dir for ENV_NAME=[]
t=P
Processing media_dir for ENV_NAME=[]
t=V
Processing media_dir for ENV_NAME=[]
t=A
Processing media_dir for ENV_NAME=[]
t=P
Processing media_dir for ENV_NAME=[]
t=V
Processing media_dir for ENV_NAME=[]
t=A
Processing media_dir for ENV_NAME=[]
t=P
Processing media_dir for ENV_NAME=[]
t=V
Processing media_dir for ENV_NAME=[]
/app/bin/run-minidlna.sh: line 97: [: too many arguments
/app/bin/run-minidlna.sh: line 97: [: too many arguments
# MINIDLNA CONFIG
media_dir=V,/media/videos
db_dir=/db
log_dir=/log
root_container=V
port=8200
friendly_name=gioDLNA
inotify=yes
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
force_sort_criteria=
CMD_LINE=/usr/sbin/minidlnad -S -f /tmp/minidlna.conf -P /tmp/minidlnad.pid
USER_MODE=[N]
$ cat /.../log/minidlna.log
minidlna.c:521: warn: Unset locale
minidlna.c:1126: warn: Starting MiniDLNA version 1.3.0.
sql.c:88: error: prepare failed: no such table: SETTINGS
SELECT VALUE from SETTINGS where KEY = 'UPDATE_ID'
minidlna.c:393: warn: Creating new database at /db/files.db
minidlna.c:405: fatal: Failed to clean old file cache! Exiting...
Am I doing something wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.