[2018/08/19 21:56:58] upnphttp.c:1061: warn: HTTP Connection closed unexpectedlyTo get rid of these :
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warninto :
log_level=general,artwork,database,inotify,scanner,metadata,ssdp,tivo=warn,http=errori.e. :
log_level
line so that you can apply custom log levels to different entitieshttp
, change the log level from the default (warn) to errorinotify.c:199: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [991] 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.
The reported numbers of configured / used watches are seldom close to each other, and there should be no need to report an alert for that...
Ce type de fichier n'est pas pris en charge. Voulez-vous lire le fichier suivant ?English version :
Unsupported file type. Do you want to read the next file ?
upnphttp.c:1366: error: Rejecting wide link /symlink/to/some/video -> /path/to/this/video
For security reasons, by default, MiniDLNA is taught not to follow symlinks.
echo 'wide_links=yes
' >> /etc/minidlna.conf && kill -15 $(pidof minidlnad) && minidlnad -R
[2016/09/12 22:18:52] minidlna.c:293: fatal: ERROR: Failed to open sqlite database! Exiting...
chown -R bob:users /path/to/db/directory
And restart MiniDLNA, I get :[2016/09/12 22:20:03] minidlna.c:1004: warn: Starting MiniDLNA version 1.1.2. [2016/09/12 22:20:03] minidlna.c:354: warn: Creating new database at /path/to/db/directory/files.db
^db_dir=
/ s/db_dir=
// p' /etc/minidlna.conf)/*db=
' '/^db_dir=
/ {print $2}' /etc/minidlna.conf)/*db^log_dir=
/ s/log_dir=
// p' /etc/minidlna.conf)/*log=
' '/^log_dir=
/ {print $2}' /etc/minidlna.conf)/*log^log_dir=
/ s/log_dir=
// p' /etc/minidlna.conf) && { pwd; ls -lh *log*; }=
' '/^log_dir=
/ {print $2}' /etc/minidlna.conf)/*log | less^log_dir=
/ s/log_dir=
// p' /etc/minidlna.conf)/*log{,.?}=
' '/^log_dir=
/ {print $2}' /etc/minidlna.conf)/*log && systemctl restart minidlnaFor those who don't want / need to investigate, jump to a solution that works (at your own risk).
Several problems for me :Even though this error message is very likely to be found in the logs, it looks rather unrelated to the current issue : the database not being updated. Moreover, the reported numbers of configured / used watches are seldom even close to each other, so better not spending too much time on this.
See the Inotify max_user_watches [8192] is low dedicated article.^db_dir=
/ s/db_dir=
// p' /etc/minidlna.conf)/art_cache ! -user $(ps -aux | awk '/\/usr\/sbin\/minidlnad/ {print $1}')=
' '/^db_dir=
/ {print $2}' /etc/minidlna.conf)/art_cache ! -user $(ps -aux | awk '/\/usr\/sbin\/minidlnad/ {print $1}')=
' '/^db_dir=
/ {print $2}' /etc/minidlna.conf)/*db && systemctl restart minidlnaThis is a 2-step procedure. Don't forget the step 2 or it won't work AT ALL !!!
media_dir=V,/path/to/videos media_dir=A,/path/to/music friendly_name=theNameOfMyDlnaServer
db_dir=/path/to/db/directory
log_dir=/path/to/log/directory
Step | systemd-style | Upstart-style |
---|---|---|
reload settings, as root | systemctl restart minidlna.service | service minidlna force-reload |
check status | systemctl status minidlna.service | service minidlna status |
view logs | journalctl -u minidlna.service | visit the log directory defined in the configuration file |
# User and group the daemon should run as USER="bob" GROUP="users"