Page 1 of 1

bug in LibraryHelper

PostPosted: Fri Oct 01, 2021 12:13 am
by badger
hello

I have my media directory mounted via cifs on Linux, only about 900 out of 10000 of my files were registering.

I turned on all the logging, reinstalled and got nowhere

eventually I attached the debugger and I can see LibraryHelper.waitForFileToBeCompleteUsingLock is stuck looping on one file which returns access denied when opened:

$ strace cat "/srv/videos/abc.mkv"
openat(AT_FDCWD, "/srv/videos/abc.mkv", O_RDONLY) = -1 EACCES (Permission denied)

serviio is looping forever trying to re-open that file, java seems to return FileNotFoundException for EACCESS

easy enough for me to fix but I thought you'd like to know

Re: bug in LibraryHelper

PostPosted: Fri Oct 01, 2021 12:18 am
by badger
oh and stat() / File.canRead() says it's readable even though it isn't... the wonders of network filesystems

(there's a race there regardless of the network filesystem though)

Re: bug in LibraryHelper

PostPosted: Mon Oct 04, 2021 4:35 pm
by zip
great, thanks