Page 1 of 1

minidlna inotify

Posted: 27 Oct 2011, 05:55
by HnLn
Hi all,

minidlna doesn't seem to pick up new files added to my media folder. The minidlna config file says inotify=yes, but each time I add files to the directory I have to manually rebuild the minidlna database to get my new files to show up (minidlna -R -d).

Tnx,

HnLn

Re: minidlna inotify

Posted: 28 Oct 2011, 11:35
by johannes
it does rescan every now and then (15 minutes I think?) so you shouldn't have to manually rebuild anything. Does this not work?

Re: minidlna inotify

Posted: 28 Oct 2011, 15:23
by HnLn
It doesn't seem to on my system. Forgot to mention that I'm working with a stripped down debian (as explained in the wiki), so maybe I still need to enable a setting somwhere or install an extra package ?

Re: minidlna inotify

Posted: 29 Oct 2011, 09:41
by johannes
Ah. Check the /etc/minidlna.conf (or similar, from memory) and make sure that regular scanning is enabled. I don't know anything about inotify though, and why that wouldn't work.

Re: minidlna inotify

Posted: 01 Nov 2011, 06:53
by HnLn
What do you mean with "regular scanning" ? I don't have any reference to that in my minidlna.conf (which looks pretty much like this one: http://forum.excito.net/viewtopic.php?f=9&t=3416#p17428

Re: minidlna inotify

Posted: 01 Nov 2011, 07:39
by johannes
i think it is notify_interval (set at 15 minutes now), but it is present. Are you sure this does not work? But the files are there and a manual re-scan solves it?

Re: minidlna inotify

Posted: 01 Nov 2011, 11:38
by HnLn
Yep, I have that line 2, but nothing seems to be picked up. A manuel scan does pick them up.

Re: minidlna inotify

Posted: 02 Nov 2011, 15:59
by meta96
... i had a similar problem at the beginning, before changing the minidlna.conf i forgot to
stop mindlna > /etc/init.d/minidlna stop
> this lead to a corrupt files.db and inotify never worked again ...
/etc/init.d/minidlna stop
rm /var/lib/minidlna/files.db
[if i change something in the conf i started to remove album art cache, as well]
/etc/init.d/minidlna start

and important > patience that means you can go to your girlfriend and say "now we can talk" or you can go to the fridge ... helps a lot in this situation ...

P.S.: In my first days of excito and minidlna i also had the problem [my fault], that i filled my minidlna.log and my b3 started to act a little strange ... so maybe you have to rm minidlna.log as well ...

Re: minidlna inotify

Posted: 03 Nov 2011, 06:51
by HnLn
Cool man removing the database did the trick !!! Tnx so much.

P.S.: how did you know my gf wants to talk all the time ? :-)

Re: minidlna inotify

Posted: 03 Nov 2011, 07:31
by Nrde
HnLn wrote:P.S.: how did you know my gf wants to talk all the time ? :-)
I think it's one law of nature.

Re: minidlna inotify

Posted: 04 Nov 2011, 12:58
by _NE_
had the same problem, removed the DB and it was back to fully working.

Thanx.