Navidrome cannot scan media files if running inside a jail

I set up Navidrome inside a jail, and I am nullfs mounting my music folder into the jail.

Navidrome cannot scan any media files (I only have FLAC music files), and I keep getting the following warnings in the log output:

WARN[0004] extractor: Error reading metadata from file. Skipping error="cannot parse file media file" filePath=".. .."

If I copy the same FLAC files that failed to scan into the jail so they are not nullfs mounted, those files are successfully scanned.

I tested using tagutil and it can read the flac tags just fine.
 
Thoroughly random suggestion: try enforce_statfs = "1"; in the jail.conf for the jail in question. this unweirds a lot of things w/r/t null mounts.
 
I found the problem. It's not due to NULLFS mounting. The problem shows up as though it was a NULLFS issue because my entire music collection is rather large.

The scan works so long as the number of files in my music folder is not more than 30,932. As soon as I add one more flac file (ie. 30,933 files) the scan start giving the error that it cannot parse the media file.

Emby on FreeBSD is able to scan my entire music collection, so I don't think this is a FreeBSD issue; it's some funky limit of Navidrome. I will submit an issue on the Navidrome Git site.
 
Back
Top