Sonarr version (exact version): 2.0.0.5163
Mono version (if Sonarr is not running on Windows): 5.16.0.187
OS: Linux CentOS 7 3.10.0-862.14.4.el7.x86_64
Debug logs: https://pastebin.com/cxSz1xRY
Description of issue:
Hi everyone, I have recently ran into an issue with Sonarr being able to read files in a specific directory (this might not be Sonarr related though). When I press the ‘Update series info’ button it fails to find any of the episodes in a directory and the selected directory suddenly gets emptied out. If I am logged in via SSH and am looking at the same directory after pressing the button I get stale link errors.
For my set-up I have a host server (running CentOS 7) with 6 data drives in it, all pooled together using MergerFS. I am using NFS to export that merged directory. On the same server I have a variety of VMs one of which runs Sonarr, these VMs mount the NFS share previously mentioned. When I do the update series button it doesn’t affect the rest of the NFS mount, I can still access every other folder without issue and running the update series task for other series causes no issues either.
I have tried a variety of things to debug this, I have used lsof on repeatable mode (lsof -Nr I think) to monitor the NFS share though saw no access from mono when I pressed the Update series button. I also turned on nfs debugging on client side but didn’t really get any useful information, though not 100% sure what I am looking for though. I did turn on nfs debugging on the server end but only got 1 extra line in messages file which was moaning about no hostname, I have the NFS export set to just export to everyone and not locked down at all. I also tried a strace but again couldn’t see anything useful. I also used smartmontools to check my hard drives for any errors, they all passed. nfsstat also reports no retransmitted data. On the client side NFS is being mounted with nfs4
When this odd disappearing act happens, unmounting and remounting will solve it and sometimes touching a couple of files in the same directory on client and server can cause the files to show again. I feel this issue is more of a linux related issue but thought I would check on here in case anyone has any ideas.
Does anyone have an idea of what could be causing this odd behaviour or can offer any assistance in debugging this issue.
In fact I just confirmed that is is probably more linux related as plex (in another VM) is also having trouble reading this specific directory, I will still post here in case anyone has any ideas. I did try renaming the directory but that didn’t work either.
Thanks