Hi, I have recently installed MiniDLNA according to the first post and it works fine. Thanks for writing it!
However it seems that after some hours (I did not discover how long exactly) the service dies.
This happens every time I start the service.
My FreeNAS build version:
Build FreeNAS-9.3-STABLE-201506292332
I tried starting the service in debug mode via the GUI console feature but the output stops after a second. The same happens when I start the service in debug mode from a console on my Linux box using SSH to get to the jail.
Code:
root@miniDLNA:/ # minidlnad -d
[2015/08/23 17:52:49] minidlna.c:1029: warn: Starting MiniDLNA version 1.1.4.
[2015/08/23 17:52:49] minidlna.c:1077: warn: HTTP listening on port 8200
[2015/08/23 17:52:49] getifaddr.c:338: info: Enabling interface 192.168.1.10/255.255.255.0
[2015/08/23 17:52:49] minissdp.c:743: maxdebug: Sending ssdp:byebye [7]
[2015/08/23 17:52:49] inotify.c:844: debug: GOING WILD!
[2015/08/23 17:52:49] minissdp.c:743: maxdebug: Sending ssdp:byebye [7]
[2015/08/23 17:52:49] minissdp.c:300: maxdebug: Sending ssdp:alive [7]
After CTRL-C I get a final message:
Code:
inotify.c:857: warn: kevent polling failure: Interrupted system call
Could these inotify messages be a clue?
In the minidlna.log I found this:
Code:
[2015/08/19 21:54:45] inotify.c:857: warn: kevent polling failure: Interrupted system call
[2015/08/19 21:54:50] minidlna.c:1266: error: accept(http): Too many open files
The last line repeated forever and the logfile is 2.6G!
I use MiniDLNA for music only but I have about 23000 songs. Could that be an issue? I noticed the below remark on ArchWiki:
Code:
If default number of inotify watches is non-sufficient to have MiniDLNA monitor all your media folders, increase inotify watches through sysctl
It could be related to the " Too many open files" error messages?
The following are the sysctl output on my MiniDLNA jail:
Code:
root@miniDLNA:/boot/defaults # sysctl kern.maxusers
kern.maxusers: 1333
root@miniDLNA:/boot/defaults # sysctl kern.maxfiles
kern.maxfiles: 510585
For now I changed minidlna.conf
And will see if it makes a difference...
Any suggestions for further troubleshooting?
Thanks