[SOLVED] Unable to fully import episode, then container gets stuck

Sonarr version (exact version): Latest according to linuxserver.io (v3 preview release)
OS: Ubuntu 18.04.2 LTS (GNU/Linux 5.0.0-23-generic x86_64)
Mono version: Mono JIT compiler version 5.14.0.177 (tarball Mon Aug 6 09:07:45 UTC 2018)
Docker-compose version 1.23.2
Docker server version 19.03.1

Debug logs:
Debug dump

I think the most important lines are:

System.IO.IOException: Lock violation on path /tv/Rick_and_Morty/Season 02
Unable to write data to the transport connection: The socket has been shut down. ---> System.Net.Sockets.SocketException: The socket has been shut down

Description of issue:
After the download client finished the download Sonarr copies the file to the right folder. When Sonarr should rename the file from tvserie.mkv.partial to tvserie.mkv the whole container gets stuck.
Im using CIFS to mount an SMB share on Ubuntu. I think this is related with the problem. The following thread says something about that issue. Link Also, after the Sonarr container gets stuck I have to force reboot the whole system to get it up and running again.

This isn’t an issue, it’s due to a browser session disconnecting, but can be safely ignored.

Sonarr running under mono definitely has issues with CIFS/SMB, using NFS solves a lot of those issues.

Duplicati also runs under mono and there is a thread on their forums that might be of some help https://forum.duplicati.com/t/system-io-ioexception-lock-violation/1746

Thanks for your quick answer.
Looks like the following threads are somehow related:
https://forums.sonarr.tv/t/permission-issues-after-mono-6-upgrade/22876/10
https://forums.sonarr.tv/t/permission-denied-despite-being-able-to-write-to-location/22967

Unfortunately im not able to use NFS without hacking/breaking my NAS.
I’ll try to downgrade Mono tonight

Upgrading to mono 5.20.1.34 according to this link fixes the issue for me.

Used the following commands

apt-get remove mono-runtime
Edit your /etc/apt/sources.list.d/mono-official-stable.list and change:
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
to:
deb https://download.mono-project.com/repo/ubuntu stable-bionic/snapshots/5.20.1.34 main
apt-get update -y
apt install mono-devel -y

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