I've read the useful question why is the minidlna database not refreshed and minidlna - not indexing files but this problem is different: It seems to stop scanning files at a certain file/after a certain directory.
Set up:
- Running on Raspberry PI
- Minidlna v1.2.1 from Raspbian Buster
- Large music collection (although it only gets up to a few hundred files), a mix of formats.
fs.inotify.maxuserwatches=65536
insysctl.conf
- User
minidlna
has read access to full media library /var/cache/minidlna
where it keeps its database files, is on an ext4 partition.- Logging is set to:
log_level=debug,artwork=debug,database=debug,inotify=debug,scanner=debug,metadata=debug,http=warn,ssdp=debug,tivo=warn
- Watching
top
, the system does not seem to run out of memory while scanning. The only error in the log is:
[2019/11/14 20:07:35] tagutils/tagutils-mp3.c:695: info: Bad header... dropping back for full frame search [/drive/files/Music/00 Various/some-song.mp3]
But the scan appears to continue after this.
The problem lines seem to be here:
[2019/11/14 20:07:35] scanner.c:730: info: Scanning /drive/files/Music/00 Various/SomeFolder
[2019/11/14 20:07:37] monitor.c:178: debug: Add watch to /drive/files/Music
where it looks like it stops scanning and starts adding watches; there's no errors or warnings.
Stumped!