Sonarr crashes (defunct state) because of SMB/CIFS timeout

Sonarr version (exact version): 2.0.0.5322
Mono version (if Sonarr is not running on Windows): Mono JIT compiler version 6.0.0.319
OS: CentOS Linux release 7.6.1810 (Core)
Debug logs: https://pastebin.com/x10HVggZ
Description of issue: Sonarr causes dmesg trace / defunct process because of CIFS timeout

Additional info, taken from https://linux.die.net/man/8/mount.cifs:

  • Soft mount: The program accessing a file on the cifs mounted file system will not hang when the server crashes and will return errors to the user application.
  • Hard mount: The program accessing a file on the cifs mounted file system will hang when the server crashes

My CIFS mount is set to ‘soft’. The alternative ‘hard’ causes the complete VM to ‘crash’ (become unusable). Even local console (not SSH) hangs until a hard reboot is given.

Because the ‘soft’ mount should return an error to the application (as noted by the documentation), I presume this is solvable by Sonarr/Mono to attempt file operations, maybe even check mount state, and keep re-attempting maybe for x-period, finally resulting in a ‘failed to import / run file operation’ in stead of crashing completely.

anyone there?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.