inotify not working for minidlna

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

inotify not working for minidlna

Postby jerry0000 » Sun Dec 30, 2012 7:38 am

Whatever I do, I can not make inotify work for minidlna.
-- I have increased the watch # to the min that minidlna will not complain.
--I have chown the db folder to nobody:nobody.
--I have removed the db and art cache and rebuild the db (http://forum.excito.net/viewtopic.php?p=17381).
However nothing works. Minidlna will not pickup added files, or remove deleted folders. Very frustrating.

Here are a bit more detail of my minidlna setup:
-- media folders are in /dlna/sources/{video, audio, image}, which are CIFS shares on a fileserver (ro)
-- db folder is /dlna/db, which is symlinked to /var/cache/minidlna, owned by nobody

The only thing I can think of is that the /dlna/db symlink might cause some trouble, and I probably should use the /var/cache/minidlna folder directly. However with db empty, minidlna had no trouble generating the db as it owns the folder/symlink.

Log did not produce anything useful. Did not even tell me if inotify was trying. While during testing, I changed the inotify interval to 5 min (300 s).

Any hints?
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: inotify not working for minidlna

Postby jerry0000 » Sun Dec 30, 2012 7:53 am

I am trying to store the db in /var/cache/minidlna (owned by nobody) directly, rather than thru the symlink to /dlna/db. However I am not very hopful, as this should not make any difference. (/dlna/db was owned by nobody as well.)

I have read that inotify need kernel support. Does arch arm 3.1 has kernel support for inotify?

Thanks!
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: inotify not working for minidlna

Postby WarheadsSE » Sun Dec 30, 2012 4:43 pm

Yes, it has support, and works. Can you post your config, anonymized a bit of course if you are overly paranoid.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: inotify not working for minidlna

Postby jerry0000 » Sun Dec 30, 2012 5:55 pm

Thanks for willing to take a look. My conf files are very simple, purely based on the defaults.

/etc/minidlna.conf:
$this->bbcode_second_pass_code('', '
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200

# network interfaces to serve, comma delimited
#network_interface=eth0

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
# can prepend the type, followed by a comma, to the directory:
# + "A" for audio (eg. media_dir=A,/home/jmaggard/Music)
# + "V" for video (eg. media_dir=V,/home/jmaggard/Videos)
# + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
media_dir=A,/dlna/audio
media_dir=V,/dlna/video
media_dir=V,/dlna/homevd
media_dir=P,/dlna/image

# set this if you want to customize the name that shows up on your clients
friendly_name=Pogo DLNA

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/var/cache/minidlna

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
log_dir=/var/log/minidlna

# set this to change the verbosity of the information that is logged
# each section can use a different level: off, fatal, error, warn, info, or debug
log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.$

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
# which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no

# default presentation url is http address on port 80
presentation_url=http://192.168.18.30:8200

# notify interval in seconds. default is 895 seconds.
notify_interval=300

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# specify the path to the MiniSSDPd socket
#minissdpdsocket=/var/run/minissdpd.sock

# use different container as root of the tree
# possible values:
# + "." - use standard container (this is the default)
# + "B" - "Browse Directory"
# + "M" - "Music"
# + "V" - "Video"
# + "P" - "Pictures"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.
')

/etc/conf.d/minidlna:
$this->bbcode_second_pass_code('', '
MINIDLNA_USER=nobody
MINIDLNA_OPTS=""
')
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: inotify not working for minidlna

Postby WarheadsSE » Sun Dec 30, 2012 6:04 pm

ls -l /dlna
ls -l /dlna/
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: inotify not working for minidlna

Postby jerry0000 » Sun Dec 30, 2012 6:10 pm

ls -l /dlna
$this->bbcode_second_pass_code('', '
drwxr-xr-x 6 root root 4096 Dec 29 23:45 dlna
')
ls -l /dlna/
$this->bbcode_second_pass_code('', '
drwxrwxrwx 11 root root 0 Sep 15 2011 audio
drwxrwxrwx 9 root root 0 Oct 14 23:13 homevd
drwxrwxrwx 21 root root 0 Nov 12 23:48 image
drwxrwxrwx 12 root root 0 Dec 21 18:37 video
')

Add:
/dlna/{audio homevd image video} are CIFS shares on a samba server (NAS), and mounted read only. The NAS support NFS share as well. I am not sure if I mount as NFS shares will help anything. I did not use NFS because before POGO, all clients are windows and do not need NFS.
Last edited by jerry0000 on Sun Dec 30, 2012 11:16 pm, edited 2 times in total.
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: inotify not working for minidlna

Postby jerry0000 » Sun Dec 30, 2012 7:44 pm

$this->bbcode_second_pass_quote('jerry0000', 'I') am trying to store the db in /var/cache/minidlna (owned by nobody) directly, rather than thru the symlink to /dlna/db. However I am not very hopful, as this should not make any difference. (/dlna/db was owned by nobody as well.)


This made no difference. Media database is not updating, inotify is not working. Very frustrating.
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: inotify not working for minidlna

Postby WarheadsSE » Sun Dec 30, 2012 8:10 pm

Uhm, I wanted to see the permissions, hence the -l.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: inotify not working for minidlna

Postby jerry0000 » Sun Dec 30, 2012 11:04 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'U')hm, I wanted to see the permissions, hence the -l.


Sorry, I missed the -l part, and have updated above. However, in this case, the -l output does not matter much, as those are all CIFS mounting point, and all (AFAIK) Linux will give 777 after mount. The actual permission is specified in the mounting option, which is read only.

Those are the media source file, I think as long as MiniDLNA can read those directory, it (inotify) should be able to monitor, right?

Minidlna does own the databease folder.
ls -l /var/cache/minidlna
$this->bbcode_second_pass_code('', '
drwxr-xr-x 3 nobody nobody 4096 Dec 29 23:50 art_cache
-rw-r--r-- 1 nobody nobody 55963648 Dec 30 00:51 files.db
')
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: inotify not working for minidlna

Postby WarheadsSE » Mon Dec 31, 2012 2:12 am

IDK if inotify works on samba mounts.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 379 guests