minidlna inotify

Got problems with your B2 or B3? Share and get helped!
Post Reply
HnLn
Posts: 28
Joined: 02 Aug 2011, 11:59

minidlna inotify

Post by HnLn » 27 Oct 2011, 05:55

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

johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Re: minidlna inotify

Post by johannes » 28 Oct 2011, 11:35

it does rescan every now and then (15 minutes I think?) so you shouldn't have to manually rebuild anything. Does this not work?
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)

HnLn
Posts: 28
Joined: 02 Aug 2011, 11:59

Re: minidlna inotify

Post by HnLn » 28 Oct 2011, 15:23

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 ?

johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Re: minidlna inotify

Post by johannes » 29 Oct 2011, 09:41

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.
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)

HnLn
Posts: 28
Joined: 02 Aug 2011, 11:59

Re: minidlna inotify

Post by HnLn » 01 Nov 2011, 06:53

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

johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Re: minidlna inotify

Post by johannes » 01 Nov 2011, 07:39

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?
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)

HnLn
Posts: 28
Joined: 02 Aug 2011, 11:59

Re: minidlna inotify

Post by HnLn » 01 Nov 2011, 11:38

Yep, I have that line 2, but nothing seems to be picked up. A manuel scan does pick them up.

meta96
Posts: 6
Joined: 19 Sep 2011, 06:22

Re: minidlna inotify

Post by meta96 » 02 Nov 2011, 15:59

... 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 ...

HnLn
Posts: 28
Joined: 02 Aug 2011, 11:59

Re: minidlna inotify

Post by HnLn » 03 Nov 2011, 06:51

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 ? :-)

Nrde
Posts: 75
Joined: 17 Nov 2010, 06:41

Re: minidlna inotify

Post by Nrde » 03 Nov 2011, 07:31

HnLn wrote:P.S.: how did you know my gf wants to talk all the time ? :-)
I think it's one law of nature.

_NE_
Posts: 11
Joined: 29 Oct 2011, 04:46

Re: minidlna inotify

Post by _NE_ » 04 Nov 2011, 12:58

had the same problem, removed the DB and it was back to fully working.

Thanx.

Post Reply